playermodel = new MilkshapeModel(); bug with the "new" thingy...
I have been trying to set up Milkshape model loading in my program for some time now, and my code seems good but there''s one problem
I set Model *playermodel = NULL;
now I try to do
playermodel = new MilkshapeModel();
this doesn''t work. The compiler (VC++ 6.0) starts looking for a file new.cpp, and finally it gives an error in the middle of some assembly code it goes through... I have no idea what''s wrong but there seems to be a problem with the "new"
Anyone know what I should do? I can''t find any big differences in the NeHe lesson code which could cause the error
thanks in advance
Try this :
playermodel = new MilkshapeModel;
(without the parentheses)
Sometimes it works with VC++. Dunno y, thou.
HTH
playermodel = new MilkshapeModel;
(without the parentheses)
Sometimes it works with VC++. Dunno y, thou.
HTH

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... Nothing is submitted and after some weird assembler code (doing some stuff in the nvopengl.dll file I guess) I get an error in the middle of that asm code, the above one...
Any other suggestions?
That''s a driver "bug" (in fact really just a warning) caused by the driver to what I think is your NVidia graphics card 
It has nothing to do with the "new" you do, it''s a product of your application using OpenGL and you running in Debug mode where it reports errors like that.

It has nothing to do with the "new" you do, it''s a product of your application using OpenGL and you running in Debug mode where it reports errors like that.
It's only funny 'till someone gets hurt.And then it's just hilarious.Unless it's you.
Yeah it resembles a lot to a driver bug.
Subotron : could you make running *correctly* NeHe''s tutorial ?
Subotron : could you make running *correctly* NeHe''s tutorial ?
??
Uuhhhhhh if that''s what you mean, the lesson code re-compiled works, yes
that''s weird isn''t it?
Uuhhhhhh if that''s what you mean, the lesson code re-compiled works, yes
that''s weird isn''t it?
Obviously, that''s weird.
You could compare project settings from NeHe''s workspace and from your workspace.
Maybe there''s something to check/uncheck in there, or maybe there''s a library file to add or remove.
The project settings would be the first thing I''d compare, if I were you.
You could compare project settings from NeHe''s workspace and from your workspace.
Maybe there''s something to check/uncheck in there, or maybe there''s a library file to add or remove.
The project settings would be the first thing I''d compare, if I were you.
Already done that, it seems to be no problem
I compiled the code and tested it on a PC with a GeForce 2 MX, and it didn''t work either...
I compiled the code and tested it on a PC with a GeForce 2 MX, and it didn''t work either...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement