PDA

View Full Version : ChoosePixelFormat shuts down app



bumby
08-07-2003, 01:31 PM
Hey there,

I am at a complete loss. The first time I run my application it runs fine.
Every time after that, as soon as it hits ChoosePixelFormat, it shuts down the application. The only way i can get it to work is to restart the computer.

I have windows 98, using borland builder, nvidia 32 meg geforce DDR (44.30 detonator drivers)...1 ghz amd with 512 megs ram.

The same app works just great on windows 2000
please, any suggestions would be awesome.

Jeremy

[This message has been edited by bumby (edited 08-07-2003).]

08-07-2003, 04:04 PM
Suggestion: post the code where the crash occurs.

Jared@ETC
08-08-2003, 03:40 AM
Are you calling:

wglMakeCurrent(NULL,NULL);
wglDeleteContext(HGLRC);

at exit?

bumby
08-08-2003, 06:59 AM
Thanks,

that did the trick!

Jared@ETC
08-08-2003, 09:57 AM
glad to be of service

bumby
08-11-2003, 06:42 AM
It actually turned out to be a 2 part problem.

I hadnt destroyed the rendering context, but there was also a bug in the nvidia driver ( i have 44.03). It wasnt shutting down DDHelp properly. I cant remember exactly what the error message was but it was something about DDHelp exception in module ....

I have no idea why DDHelp was needed, but i installed an old driver 30.82 and everything worked properly.

hope this may help anyone else.

Jeremy

bumby
08-14-2003, 10:13 AM
well not quite perfectly, i actually had to re install directx 8 too.