Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, SBGuy, Petra), 801 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Chief Engineer
jcl  Offline

Chief Engineer

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