PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Problem with multiple Initialize()/Shutdown() in PocketHAL

hi,

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
I will look at this soon.

On what device are you experiencing the problem?
as far as i remember, on all devices i have: iPAQ5450, iPAQ3970, Toshiba e750 (all PPC2003). on the e750 i also have other problems but i wanted to check if they are still there with the new version...

thx,
DANIEL