PB5.20b14 WebGadget Error: Invalid memory under XP

Just starting out? Need help? Post your questions and find answers here.
JJ
User
User
Posts: 23
Joined: Fri Feb 16, 2007 12:41 am
Location: Paris, France

PB5.20b14 WebGadget Error: Invalid memory under XP

Post by JJ »

Hello,

I have only 2 Pc to do this test. One with Seven x64 and the other with XP.
Under Seven both the x86 and x64 version ob PB works fine. But under XP If you start 2 threads with one window and one WebGadget by thread. When the second thread create the WebGadget I have an Invalid memory access.

If someone could confirm my trouble under XP. I post this small source.

Code: Select all

Procedure WebGadgetTest(param.i)
  DisableDebugger:win = OpenWindow(#PB_Any,param,param, 600, 300, "WebGadget:"+Str(param), #PB_Window_SystemMenu ):EnableDebugger
  Web = WebGadget(#PB_Any, 10, 10, 580, 280, "http://www.google.com")
  Repeat
    DisableDebugger:WinEvent.i = WaitWindowEvent(1):EnableDebugger
  Until WinEvent=#PB_Event_CloseWindow
  CloseWindow(win)
EndProcedure    

t1 = CreateThread(@WebGadgetTest(),0)     
Delay(200)
t2 = CreateThread(@WebGadgetTest(),100)   ; <- Crash with Invalid memory access.(read error at adress 0) under XP

Repeat
  Delay(1)
Until IsThread(t1)=0 And IsThread(t2)=0

End
Fred
Administrator
Administrator
Posts: 18263
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB5.20b14 WebGadget Error: Invalid memory under XP

Post by Fred »

Gadget in thread are not supported.
Post Reply