PDA

View Full Version : What Could Cause SwapBuffers() do disappear?



no-one
10-27-2001, 09:06 PM
exactly that,

i Create a window fine and dandy switch to windowed(eg. change device settings,destroy fullscreen window,create new window) then the program closes!! it appearently from the error i get from GetLastError()(eg. Error 127,ERROR_PROC_NOT_FOUND) somethings screwed up cause a Quit Messege is posted skipping wndproc, and the program closes.

i have absolutly no clue what could cause this so any help is greatly appreciated.

MikeC
10-28-2001, 03:16 AM
Are you sure that it's SwapBuffers causing the crash? E.g. can you set breakpoints before and after the SwapBuffers call to confirm it?

Silly questions first - you did specify PFD_DOUBLEBUFFER when creating your rendering context, right?

no-one
10-28-2001, 07:40 AM
yeah i debugged the hell out of this the RC's DC's Wnd's Inst's are all good no errors at all in the program till after the first call to SwapBuffers() after i recreate the window.

>
Silly questions first - you did specify PFD_DOUBLEBUFFER when creating your rendering context, right?
<

yeah i checked that too, it's there.



[This message has been edited by no-one (edited 10-28-2001).]