maybe,WebGadget() And PureBasic.exe clash

Windows specific forum
User avatar
gurj
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

maybe,WebGadget() And PureBasic.exe clash

Post 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.
Last edited by gurj on Fri Feb 10, 2017 2:35 pm, edited 1 time in total.
my pb for chinese:
http://ataorj.ys168.com
Fred
Administrator
Administrator
Posts: 16619
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: OpenWindow() and PureBasic.exe clash

Post by Fred »

I don't understand the report, sorry. Could you post a sample code to replicate your issue ?
User avatar
gurj
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: OpenWindow() and PureBasic.exe clash

Post 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
Last edited by gurj on Fri Nov 18, 2016 6:02 pm, edited 1 time in total.
my pb for chinese:
http://ataorj.ys168.com
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: OpenWindow() and PureBasic.exe clash

Post 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).
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
gurj
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: OpenWindow() and PureBasic.exe clash

Post 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/
my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: OpenWindow() and PureBasic.exe clash

Post by gurj »

I guess PureBasic use Variables,lack protect,have hole ?...
GetProp_(GadgetID, "PB_ID") ?...
my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: OpenWindow() and PureBasic.exe clash

Post 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
my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: OpenWindow() and PureBasic.exe clash

Post 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
my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

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

Post 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
my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

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

Post by gurj »

maybe, WebGadget and ie is ok.
pb IDE has bug.
my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

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

Post 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.
my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

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

Post 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.
my pb for chinese:
http://ataorj.ys168.com
Post Reply