Quote:
Original post by midnite
Also change your register function then to:
*** Source Snippet Removed ***
error C2100: illegal indirection
Quote:
No, you should have used &m_input and not m_input.
Sorry, I was brutally jet lagged when I wrote that (and still am a little). So if I have
TInput* input = new TInput;
, why do I want the address of the input ptr? Didn't I want just the pointer to the TInput object cast to void*?
Something is very bizzare on my end. When I try a simple little test class(pointer and otherwise), I can register it as a global, call all of its properties, methods, etc just fine. Yet when I try a pointer to a TInput instance, I get an exceptions out the wazoo (C-Runtime - not my own). When I try creating a non-pointer instance (I feel dumb, what is that techincally called?), I get the strangest debug assert:
---------------------------Microsoft Visual C++ Debug Library---------------------------Debug Error!Program: ...Module: ...is\My Documents\Programming\C++\Tempest\bin\Debug\Tempest.exeFile: c:\documents and settings\chris\my documents\programming\c++\tempest\code base\working source\angelscript_2.8.0a\source\as_callfunc_x86.cppLine: 1023Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.(Press Retry to debug the application)---------------------------Abort Retry Ignore ---------------------------
I am using asCALL_THISCALL for all the method registrations (x86 windows xp2).
Depending on the mood of my computer, I also get the general assert of "...your program just died."
Any ideas as to what I can check?