PureBasic Forum
https://www.purebasic.fr/english/

maybe,WebGadget() And PureBasic.exe clash
https://www.purebasic.fr/english/viewtopic.php?f=5&t=66981
Page 1 of 1

Author:  gurj [ Fri Nov 18, 2016 9:53 am ]
Post subject:  maybe,WebGadget() And PureBasic.exe clash

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.

Author:  Fred [ Fri Nov 18, 2016 11:43 am ]
Post subject:  Re: OpenWindow() and PureBasic.exe clash

I don't understand the report, sorry. Could you post a sample code to replicate your issue ?

Author:  gurj [ Fri Nov 18, 2016 5:44 pm ]
Post subject:  Re: OpenWindow() and PureBasic.exe clash

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:
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

Author:  IdeasVacuum [ Fri Nov 18, 2016 5:47 pm ]
Post subject:  Re: OpenWindow() and PureBasic.exe clash

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).

Author:  gurj [ Thu Jan 19, 2017 10:50 am ]
Post subject:  Re: OpenWindow() and PureBasic.exe clash

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/

Author:  gurj [ Sat Jan 21, 2017 10:12 pm ]
Post subject:  Re: OpenWindow() and PureBasic.exe clash

I guess PureBasic use Variables,lack protect,have hole ?...
GetProp_(GadgetID, "PB_ID") ?...

Author:  gurj [ Sun Jan 22, 2017 2:39 am ]
Post subject:  Re: OpenWindow() and PureBasic.exe clash

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:
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

Author:  gurj [ Wed Jan 25, 2017 7:48 am ]
Post subject:  Re: OpenWindow() and PureBasic.exe clash

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:
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:
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

Author:  gurj [ Fri Jul 28, 2017 6:22 am ]
Post subject:  Re: maybe,WebGadget() And PureBasic.exe clash

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

Author:  gurj [ Fri Jul 28, 2017 9:22 am ]
Post subject:  Re: maybe,WebGadget() And PureBasic.exe clash

maybe, WebGadget and ie is ok.
pb IDE has bug.

Author:  gurj [ Sat Mar 09, 2019 12:42 am ]
Post subject:  Re: maybe,WebGadget() And PureBasic.exe clash

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.

Author:  gurj [ Tue Mar 12, 2019 11:24 am ]
Post subject:  Re: maybe,WebGadget() And PureBasic.exe clash

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.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/