Game Development Community

Weird Consolemethod behaviour

by Craig Fortune · in Torque 2D for the iPhone · 11/05/2009 (3:05 am) · 1 replies

I'm getting some weird behaviour from a consolemethod and the corresponding C++ method it calls on the "object".

In specific:
S32 SimXMLDocument::saveFile(const char* rFileName)

I was playing about with XML stuff and I had some difficulty in being able to load/save. So I debugged and found that, for saving at least, the incorrect argument value was being passed into the C++ method from the consolemethod. Looking into this further I noticed the following really weird behaviour:

The "object" pointer in the consolemethod doesn't match the "this" pointer in the C++ method...

Any ideas as to why this is happening? As an extra bit of info it seems that the "loadFile" consolemethod and C++ method are just fine and dandy.

#1
11/06/2009 (10:21 pm)
No one experienced the same, or no one has any suggestions?