PB5.20b14 WebGadget Error: Invalid memory under XP
Posted: Wed Aug 28, 2013 8:17 pm
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.
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