Jump to content

  • Log In with Google      Sign In   
  • Create Account


wdl7770016

Member Since 26 Apr 2013
Offline Last Active Apr 29 2013 05:24 AM
-----

Posts I've Made

In Topic: Why I can't register a method which recieved a script class sucessfully?

29 April 2013 - 02:52 AM

thanks 

I have learned a lot


In Topic: why I can't call a script member function successfully?

29 April 2013 - 02:48 AM

The problem is that the object you created is destroyed before you manage to call the class method. 

 

After you get the object pointer from the context with GetAddressOfReturnValue() you must increase the ref counter with a call to asIScriptObject::AddRef() because the context will release its reference when the context is reused with the next call to Prepare().

 

Don't forget to call Release() on the object again when you will no longer use the object. Otherwise you'll get memory leaks.

 


thanks  I have resolve it now


In Topic: Why I can't register a method which recieved a script class sucessfully?

27 April 2013 - 01:40 PM

well thanks

but is this means before we register the reciever function

we can add a new section from file A or memory(string)

so that engine can pass the script code and know the script class declared in file A

and when we register the reciever function the engine had know the script class type

I have try this  but it not work 

it's so strange>>>right?


In Topic: Why I can't register a method which recieved a script class sucessfully?

27 April 2013 - 12:01 AM

thanks

but there are something like this in the angelScript mannual:

Of course, since the class is declared in the script it isn't possible to know the type before the script is compiled.

but I can't work it successfully

is this because of angelScript does not support reciever a script class thich declared in the as script file?


PARTNERS