Page 1 of 1

maybe,WebGadget() And PureBasic.exe clash

Posted: Fri Nov 18, 2016 9:53 am
by gurj
maybe,WebGadget() And PureBasic.exe clash
===========
old topic:
OpenWindow() and PureBasic.exe clash
sometimes,not all times:
if winxp activate from standby mode,then if PureBasic.exe activate,
then user's pb programs read memory is unlawful,then will closed.

this question is over a long period of time, and i try many times already.

Re: OpenWindow() and PureBasic.exe clash

Posted: Fri Nov 18, 2016 11:43 am
by Fred
I don't understand the report, sorry. Could you post a sample code to replicate your issue ?

Re: OpenWindow() and PureBasic.exe clash

Posted: Fri Nov 18, 2016 5:44 pm
by gurj
sorry, my bad english.
see:
http://ataorj.ys168.com
winXPcn_pbBug/openWeb.7z:
openWeb.pb
openWeb.exe
openWeb.wmv
=========winxp-sp2-32bit:
openWeb.pb:

Code: Select all

If OpenWindow(0, 20, 20, 750, 430, "pb-bug", #PB_Window_SizeGadget|#PB_Window_MaximizeGadget|#PB_Window_MinimizeGadget|#PB_Window_Maximize|#PB_Window_ScreenCentered)
 WebGadget(0,-1,-1,WindowWidth(0),WindowHeight(0), GetCurrentDirectory()+"open.htm")
 Repeat:a=WaitWindowEvent():If a=#PB_Event_SizeWindow
  ResizeGadget(0,-1,-1,WindowWidth(0),WindowHeight(0)):EndIf
 Until  a= #PB_Event_CloseWindow
EndIf

Re: OpenWindow() and PureBasic.exe clash

Posted: Fri Nov 18, 2016 5:47 pm
by IdeasVacuum
Almost impossible to reproduce and very rare -but I have experienced something like this too, on Win7 32bit. Essentially, if a (PB created) exe is run when the PB IDE already running, that exe can crash or mis-behave (for example, buttons do nothing, window will not resize).

Re: OpenWindow() and PureBasic.exe clash

Posted: Thu Jan 19, 2017 10:50 am
by gurj
has a new case, maybe has relationships

MoveImage.exe by pb5.43/5.50/5.51
if open one MoveImage.exe,Move/drag Image,more delays.
add open one MoveImage.exe,Move/drag Image,
second MoveImage.exe ok! why?

MoveImage.exe, see:
ataorj.ys168.com
winXPcn_pbBug/

Re: OpenWindow() and PureBasic.exe clash

Posted: Sat Jan 21, 2017 10:12 pm
by gurj
I guess PureBasic use Variables,lack protect,have hole ?...
GetProp_(GadgetID, "PB_ID") ?...

Re: OpenWindow() and PureBasic.exe clash

Posted: Sun Jan 22, 2017 2:39 am
by gurj
pb5.51 winxp 86

has a new case, maybe has relationships
if run code, ImageGadget(1) is transparency
then winxp to standby mode,
then winxp to activate from standby mode,
ImageGadget(1 and 0) transparency is destroyed.

Code: Select all

If OpenWindow(0, 0, 0, 245, 105, "ImageGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
 SetWindowColor(0,#Red)
 If LoadImage(0, #PB_Compiler_Home+"Examples\Sources\Data\CdPlayer.ico") 
  ImageGadget(0,  10, 10, 100, 83, ImageID(0))
  ImageGadget(1, 130, 10, 100, 83, ImageID(0), #PB_Image_Border)
 EndIf
 Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf

Re: OpenWindow() and PureBasic.exe clash

Posted: Wed Jan 25, 2017 7:48 am
by gurj
seem is WebGadget() and pbIDE clash,see:
run pbIDE
zz.pb -> zz.exe -> run zz.exe
web1.pb -> web1.exe -> run web1.exe

winxp to standby mode
delay 10 seconds
winxp to reactivates

pbIDE to reactivates
web1.exe will automatic closed by os
zz.pb:

Code: Select all

If OpenWindow(0, 0, 0, 245, 105, "ImageGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
 SetWindowColor(0,#Red)
 If LoadImage(0, #PB_Compiler_Home+"Examples\Sources\Data\CdPlayer.ico") 
  ImageGadget(0,  10, 10, 100, 83, ImageID(0))
  ImageGadget(1, 130, 10, 100, 83, ImageID(0), #PB_Image_Border)
 EndIf
 Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
web1.pb:

Code: Select all

If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
 WebGadget(0, 10, 10, 580, 280, "")
 Repeat
 Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf

Re: maybe,WebGadget() And PureBasic.exe clash

Posted: Fri Jul 28, 2017 6:22 am
by gurj
maybe, pb IDE and iexplore clash. also more times, when ie isnt default WebBrowser.
my is winxp sp3 x86
see:
http://ataorj.ys168.com
winXPcn_pbBug/maybe pb IDE and iexplore clash.GIF

Re: maybe,WebGadget() And PureBasic.exe clash

Posted: Fri Jul 28, 2017 9:22 am
by gurj
maybe, WebGadget and ie is ok.
pb IDE has bug.

Re: maybe,WebGadget() And PureBasic.exe clash

Posted: Sat Mar 09, 2019 12:42 am
by gurj
Sorry, my previous computer had two unknown devices that used the wrong driver and have now been processed, and the PB seems to be normal because there have been no issues mentioned in the topic for a long time.

Re: maybe,WebGadget() And PureBasic.exe clash

Posted: Tue Mar 12, 2019 11:24 am
by gurj
But there is a problem with this system, and when you open a *.col and click on the index box, the col exits immediately. So I went back to the old system, and now the analysis thinks it may have caused the subject problem by upgrading to WMPLAYER11.