Hey,
I've got a function, func() declared in helper.h, and defined in
helper.cpp
If I call this function from mycode.cpp (which includes helper.h), and
I use the debugger to see what happens, it doesn't jump to the func()
function.
Instead it jumps to an arbitrary looking place in the code (altough in
the correct file: helper.cpp).
I haven't got a clue how I could possibly find out what's the problem,
I've tried renaming the function, changing the types of its
parameters, putting it in a namespace, all to no avail.
If I comment out the code that is being jumped to, and recompile, it
just jumps to another piece of code, somewhat further on. The piece of
code that is being jumped to is not the beginning of a function
either.
Nowhere in the code I'm doing strange voodoo things by insterting
assembly and messing with the callstack or something like that.
I'm using visual studio 6, writing a dll, with these porject settings:
/nologo /G6 /Gz /MTd /W3 /GX /ZI /Od /I "..\source" /I
"..\..\includeXDK" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FR".\Debug/"
If someone has seen something similar before, or has an idea of the
problem, I'd love to know about it.
Thanks Lucas.