quote:
Original post by Subotron
Debugger says:
First-chance exception in ud.exe (NVOPENGL.DLL): 0xC0000005: Access Violation.
When I do step-by-step debug it asks for new.cpp on the line where I do the new thingy...
the new.cpp can be found as
x:\...\Microsoft Visual Studio\VC98\CRT\SRC\NEW.CPP
Your problem shouldn''t be in the new operator

what is goinon with ur code and the step-by-step debug is that it shows u the statments being executed. in the case of new.cpp wasn''t found asm code is being traced, when finished with the new operator the debuger doesn''t pull back into normal code trace, even if the files are opend. it will coninue with asm untill the end of the program.
1. make sure to check if the pointer ''playermodel'' isn''t null after the ''new''. which means the ''new'' failed to allocate this pointer into the heep.
2. with ''First-chance exception 0xC0000005: Access Violation.'' you are trying to acsess a non editable data in the heep. and null pointers are non editable.
3. some known problems with some cards that makes this error is trying to change the gl extentions string. it''s read only on some cards. so u have to copy the string before editing... that might be the problem...
good luck...
"The Railgun Master"
DaHeR