NikG
May 10, 2006, 07:24 AM
Okay I added a new function for the CvPlayerAI class, made it virtual for the CvPlayer class, however, the game kept crashing, then after some long error-correcting with recompiling, I made it work.
Now I finally got the debugger up and running (YEAH! it would have taken me 5 sec. to find the problem with the debugger), and testing my initial code. Somehow the problem were from the virtual function, but it wasnt anywhere near it when it crashes, it calls DLL function from the exe which in turn calls a few other functions and last it begins to read the 0x0 memory location ??? REALLY STRANGE!
Well first I would like to hear if any have had the same problem and eventually solved it without a hack (placing the virtual function in CvPlayer and not making it virtual), and if noone have had the same problem, well I just like to warn you, because I have used 10 hours solving this little shitty problem! ARGH!!!!:eek: :mad: :nuke: :nuke: :nuke:
Now I finally got the debugger up and running (YEAH! it would have taken me 5 sec. to find the problem with the debugger), and testing my initial code. Somehow the problem were from the virtual function, but it wasnt anywhere near it when it crashes, it calls DLL function from the exe which in turn calls a few other functions and last it begins to read the 0x0 memory location ??? REALLY STRANGE!
Well first I would like to hear if any have had the same problem and eventually solved it without a hack (placing the virtual function in CvPlayer and not making it virtual), and if noone have had the same problem, well I just like to warn you, because I have used 10 hours solving this little shitty problem! ARGH!!!!:eek: :mad: :nuke: :nuke: :nuke: