Gamestudio Links
Zorro Links
Newest Posts
hold key code returns very high value instead of 0 or 1
by 3run
Today at 16:08
oldschool fps project
by 3run
Today at 15:46
Sam Foster Sound | Experienced Indie Game Composer for Hire
by titanicpiano14
Today at 15:02
Project Aum - Winter Contest 2017 - Update
by Ayumi
Yesterday at 22:34
[ALL STYLES] 2D Videogame Artist (pixel, vector, painted)
by DesixStudios
Yesterday at 14:45
Easy question
by jcl
Yesterday at 13:47
Cheap bouncing shells/gibs
by 3run
Yesterday at 00:36
AUM Magazine
Latest Screens
RPG PARTY
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Triton Wing
Who's Online
17 registered (Ch40zzC0d3r, Ezzett, Lobo, Hredot, AndrewAMD, 3run, alibaba, ChrstphFr, firecrest, 2 invisible), 454 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Amocfx, cme, pataba, byano, Tuguldur717
17834 Registered Users
Topic Options
Rate This Topic
#465360 - 04/21/17 14:55 error with physx on_exit event
Reconnoiter Offline
Serious User

Registered: 12/26/11
Posts: 1781
Loc: 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;
}


Top
#465361 - 04/21/17 15:22 Re: error with physx on_exit event [Re: Reconnoiter]
CodeMaster Offline
Junior Member

Registered: 10/27/10
Posts: 63
Loc: 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

Top
#465368 - 04/21/17 18:01 Re: error with physx on_exit event [Re: CodeMaster]
jcl Online

Chief Engineer

Registered: 07/22/00
Posts: 26002
Loc: 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.

Top
#465370 - 04/21/17 19:10 Re: error with physx on_exit event [Re: jcl]
Reconnoiter Offline
Serious User

Registered: 12/26/11
Posts: 1781
Loc: 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.

Top
#465375 - 04/21/17 19:45 Re: error with physx on_exit event [Re: Reconnoiter]
jcl Online

Chief Engineer

Registered: 07/22/00
Posts: 26002
Loc: Frankfurt
Ok, thanks - I'll look into it.

Top


Moderator:  jcl, Nems, Spirit, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | resources | magazine | manual | support faq | bugs

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) 3dgamestudio.net