PDA

View Full Version : Error running example code of RED BOOK!!



qlwuu
12-26-2001, 06:59 PM
When run through this code --
subdivide(&vdata[tindices[i][0][0],
&vdata[tindices[i][1][0],
&vdata[tindices[i][2]][0]);

i get exception message --
the value of esp was not properly save across a function call.This is usually a result of calling a function declare with one calling convention with a function pointer delcared with a different calling convention.

Help~ http://www.opengl.org/discussion_boards/ubb/frown.gif

Serge K
12-31-2001, 02:34 AM
Originally posted by qlwuu:
the value of esp was not properly save across a function call.This is usually a result of calling a function declare with one calling convention with a function pointer delcared with a different calling convention.


Actually, much more often it's a result of a stack corruption - out of range access, incorrect poiter math, etc.