Jump to content

  • Log In with Google      Sign In   
  • Create Account

Zervoxe

Member Since 28 Aug 2009
Offline Last Active Today, 07:45 AM

Posts I've Made

In Topic: Angelscript Crash or Reporting null pointer access

13 August 2015 - 02:32 AM

That worked perfectly.

Thank you so much for the help! This helped me remove alot of unnecessary C++ side registered functions as I wanted this part to be done as close to Angelscript possible without needing overkill calls through registered functions in Angelscript from C++.


In Topic: Angelscript Crash or Reporting null pointer access

12 August 2015 - 06:27 PM

I am asuming you mean shared interface IController in this case, I am currently using the C++ side RegisterInterface, which is not shared I take it, and doing shared interface IController in angelscript makes the C++ side complain registering the Party class.

 

identifier 'IController' is not a data type in global namespace

Failed in call to function 'RegisterObjectMethod' with 'Party' and 'IController @+ GetCharacter(int i)' (Code: -10)

In Topic: Angelscript Crash or Reporting null pointer access

12 August 2015 - 05:20 PM

Crashes is solved.

 

Yes I found out that doing @ before doing something was obviously wrong.

 

I do compile into multiple modules, but then again each module contains all the code needed across the files, in this case do I still need to declare them as shared?

 

After sharing the Character class I noticed that my global variables can't be used anymore, how would I approach to workaround this?


In Topic: Angelscript Crash or Reporting null pointer access

12 August 2015 - 04:03 PM

Ok, so I figured I had to try adding @ before all calls to the handle, but then I get object handle is not allowed for this type, does this error occur if an object inside IController derived class does not support it, or is there something more I need to add?

without adding the @ before those calls it still complains for some reason about null pointer access.

and from my earlier post

"just to clarify the asIScriptObject does not return null from C++ side."

 

and thank you so much for the quick replies.


In Topic: Angelscript Crash or Reporting null pointer access

12 August 2015 - 03:20 PM

is one or the other method more prefered? Pros or Cons with either methods?

 

Tried both of them, its atleast not crashing anymore, but it still reports access null pointer, I guess I am doing something wrong still.

just to clarify the asIScriptObject does not return null from C++ side.


PARTNERS