Jump to content

  • Log In with Google      Sign In   
  • Create Account


BirdiePeep

Member Since 20 May 2007
Offline Last Active Apr 22 2013 02:30 PM

#5048118 Crash on reference obj method call OSX x64

Posted by BirdiePeep on 29 March 2013 - 02:39 PM

The configuration you suggested does solve the issue, below is the new method to register.

ret = engine->RegisterObjectType("Vector", sizeof(GtVector), asOBJ_VALUE | asOBJ_APP_CLASS_CA | asOBJ_APP_CLASS_ALLFLOATS); assert( ret >= 0 );

 

Looking at my vector class, I did have a default constructor and assignment operator, but no explicit copy constructor or deconstructor.

 

I believe part of my problem was a confusion about what I was passing in.  I had assumed the the types being passed in for constructor/deconstructor/ect... dealt with what I was going to register on the class with the engine, not the actual class itself.  I now understand the separation of these two concepts.

 

I apprecaite the help, thank you very much!




PARTNERS