Posted By: bodden
physX_load() in Debug-run - 02/08/11 08:53
Just a small one:
I use physX_load() and physX_run() instead of physX_open().
When doing so, I think, in debug-run, the physik-engine is not been closed automatically. The first time, you run the script in debug-mode, everything is OK. But if you exit and run it again (in debug-mode), you got a "Script crash in SYS"-error. You have to close and reopen the whole editor to be able to run it again.
It's easy to solve by using "physX_close()" before leaving the script, but this is not mentioned in manual.
You can test it with a simple example:
As the problem only occurs in debug-mode, but not in "normal"-mode, I guess it's a bug.
I use physX_load() and physX_run() instead of physX_open().
When doing so, I think, in debug-run, the physik-engine is not been closed automatically. The first time, you run the script in debug-mode, everything is OK. But if you exit and run it again (in debug-mode), you got a "Script crash in SYS"-error. You have to close and reopen the whole editor to be able to run it again.
It's easy to solve by using "physX_close()" before leaving the script, but this is not mentioned in manual.
You can test it with a simple example:
Code:
function main() { void* physikengine=physX_load(); //physX_close(); }
As the problem only occurs in debug-mode, but not in "normal"-mode, I guess it's a bug.