Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (VoroneTZ, monk12, Quad), 829 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
error with physx on_exit event #465360
04/21/17 12:55
04/21/17 12:55
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
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;
}


Re: error with physx on_exit event [Re: Reconnoiter] #465361
04/21/17 13:22
04/21/17 13:22
Joined: Oct 2010
Posts: 73
0110111
C
CodeMaster Offline
Junior Member
CodeMaster  Offline
Junior Member
C

Joined: Oct 2010
Posts: 73
0110111
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

Re: error with physx on_exit event [Re: CodeMaster] #465368
04/21/17 16:01
04/21/17 16:01
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
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.

Re: error with physx on_exit event [Re: jcl] #465370
04/21/17 17:10
04/21/17 17:10
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
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.

Re: error with physx on_exit event [Re: Reconnoiter] #465375
04/21/17 17:45
04/21/17 17:45
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Ok, thanks - I'll look into it.


Moderated by  jcl, Nems, Spirit, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1