PDA

View Full Version : NewScene() crashes XSI if called from c#


RedBjarne
07-24-2008, 03:02 AM
Using the executeCommand function to call NewScene (or OpenScene) from a C# customProperty causes XSI to crash.
If I create the property in jScript this does not happen, but I would like to keep my plugins in c#. The crash probably have something to do with XSI suddently clearing the scene with C# code running (no change for the code to exit properly)

Does anyone have a solution or suggestion?

Thanks

StephenBlair
07-24-2008, 06:57 AM
Where do you call NewScene?

RedBjarne
07-24-2008, 07:51 AM
I call it on a button press from a customProperty (using the 'executeCommand' function obviously).
I have set up the exact same customProperty using jScript and here it does'nt crash (my workaround solution for the moment)