hi,
i've got a problem with PocketHAL (version 0.03 & 0.04). the following program crashes as soon as Swap() is called:
if i remove the GetBackBuffer() calls it does not crash, but is useless ofcourse...
any idea how to fix this?
i even tried to delete phSurface before calling Shutdown() but then the proggi crashes in Shutdown(), so this is also not the way to go...
thanks,
DANIEL
i've got a problem with PocketHAL (version 0.03 & 0.04). the following program crashes as soon as Swap() is called:
- Code:
Surface* phSurface;
Display* phDisplay = Display::Create();
// create and use the first time
//
if(!phDisplay->Initialize(hwnd, phDisplayParams))
return false;
phSurface = phDisplay->GetBackBuffer();
phDisplay->Shutdown();
// create and use a second time
//
if(!phDisplay->Initialize(hwnd, phDisplayParams))
return false;
phSurface = phDisplay->GetBackBuffer();
// now swap
//
phDisplay->Swap(); // crash!!!
if i remove the GetBackBuffer() calls it does not crash, but is useless ofcourse...
any idea how to fix this?
i even tried to delete phSurface before calling Shutdown() but then the proggi crashes in Shutdown(), so this is also not the way to go...
thanks,
DANIEL