Gamestudio Links
Zorro Links
Newest Posts
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
folder management functions
by 7th_zorro. 04/15/24 10:10
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Nymphodora, rki, 7th_zorro, Volkovstudio, Aku_Aku), 346 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
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