|
Hi there
I need to be able to have a customProperty delete itself in c#. I can make this rather suicidal stunt work in jScript as I guess jScript is very forgiving, but XSI crashes if I try the same thing in c#.
The crash is ofcourse because the thread is still running when the property is deleted from the scene.
Is there anyone who have a suggestion on how to do this (other than just keep the code in jscript).
Cheers
Jacob
|
|
|
|
[quote=RedBjarne;21341]Hi there
I need to be able to have a customProperty delete itself in c#. I can make this rather suicidal stunt work in jScript as I guess jScript is very forgiving, but XSI crashes if I try the same thing in c#.
The crash is ofcourse because the thread is still running when the property is deleted from the scene.
Is there anyone who have a suggestion on how to do this (other than just keep the code in jscript).
Cheers
Jacob
You’ve got two choices:
- use CreateObject method to create ‘temporary’ CP that will be destroyed when it’s closed.
- use the custom command or menu callback to create and delete CP from there.
|
|
|