3D Engine problems - quit unexpec
Posted: Tue May 28, 2013 11:07 am
Hi,
I am making a demo version of my 3D CAD viewer, and I converted all my software to PB 5.11 Final.
[WIN 8 - x64 - PB 5.11 Final]
First I use:
If OpenWindow(0, 10, 10, 1600, 900, "PVG", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If I use:
;- OPEN WINDOWED SCREEN TO PLAY THE DEMO
OpenWindowedScreen(WindowID(0), 5, 5, 1590, 700, 0, 0, 0, #PB_Screen_NoSynchronization)
OR
OpenWindowedScreen(WindowID(0), 5, 5, 1590, 700, 0, 0, 0, #PB_Screen_WaitSynchronization)
OpenWindowedScreen(WindowID(0), 5, 5, 1590, 700, 0, 0, 0, #PB_Screen_SmartSynchronization)
I get a POLINK ERROR
If I use this:
OpenWindowedScreen(WindowID(0), 5, 5, 1590, 700, 0, 0, 0)
After a few seconds, my demo is blocked ?
Even if I use threadsafe option
Then I use:
OpenScreen(1600, 900, 32, "PVG", #PB_Screen_WaitSynchronization, 40)
It works ...
But I need a windowed screen ??
Can some one help me here ?
I found this ??
http://www.purebasic.fr/english/viewtop ... 4f6d120eea
Tested with DirectX and OpenGL (same problems)
Marc,
I am making a demo version of my 3D CAD viewer, and I converted all my software to PB 5.11 Final.
[WIN 8 - x64 - PB 5.11 Final]
First I use:
If OpenWindow(0, 10, 10, 1600, 900, "PVG", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If I use:
;- OPEN WINDOWED SCREEN TO PLAY THE DEMO
OpenWindowedScreen(WindowID(0), 5, 5, 1590, 700, 0, 0, 0, #PB_Screen_NoSynchronization)
OR
OpenWindowedScreen(WindowID(0), 5, 5, 1590, 700, 0, 0, 0, #PB_Screen_WaitSynchronization)
OpenWindowedScreen(WindowID(0), 5, 5, 1590, 700, 0, 0, 0, #PB_Screen_SmartSynchronization)
I get a POLINK ERROR
If I use this:
OpenWindowedScreen(WindowID(0), 5, 5, 1590, 700, 0, 0, 0)
After a few seconds, my demo is blocked ?
Even if I use threadsafe option
Then I use:
OpenScreen(1600, 900, 32, "PVG", #PB_Screen_WaitSynchronization, 40)
It works ...
But I need a windowed screen ??
Can some one help me here ?
I found this ??
http://www.purebasic.fr/english/viewtop ... 4f6d120eea
Tested with DirectX and OpenGL (same problems)
Marc,