error with physx on_exit event

Posted By: Reconnoiter

error with physx on_exit event - 04/21/17 12:55

Hi JCL,

I use physx in my game so I read in the manual that physX_destroy(); needs to be called when the application is closed. Now normally when using physX_open();, on_exit is automatically set to physX_destroy(); and the application closes without error messages.
However, if I want to set my own function for on_exit it gives physx error message when closing the application even when it contains physX_destroy();. E.g. like this:

Code:
function exit_event () {
	physX_destroy();
  beep();
}

function main () {
  ...
  physX_open();
  ...
  on_exit = exit_event;
}

Posted By: CodeMaster

Re: error with physx on_exit event - 04/21/17 13:22

i've already asked about this problem in forum, looks like a bug

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Main=54687&Number=455657#Post455657
Posted By: jcl

Re: error with physx on_exit event - 04/21/17 16:01

Rename "exit_event" to something else. If I remember right there is already a function "exit_event" in the PhysX header that would be then overwritten by your function.
Posted By: Reconnoiter

Re: error with physx on_exit event - 04/21/17 17:10

Originally Posted By: jcl
Rename "exit_event" to something else. If I remember right there is already a function "exit_event" in the PhysX header that would be then overwritten by your function.
, thanks for replying but I still get the physx error messages.
Posted By: jcl

Re: error with physx on_exit event - 04/21/17 17:45

Ok, thanks - I'll look into it.
© 2024 lite-C Forums