Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, alibaba), 1,184 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: function parameter and var pointer [Re: Feindbild] #431143
10/09/13 21:17
10/09/13 21:17
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
I replaced "ent_playloop" with "snd_loop" and now it seems to work. I tested my project the last three hours without a break and didn't get any crash.

Maybe it's an engine bug. The entity I passed to ent_playloop is an physX ent.

Re: function parameter and var pointer [Re: oliver2s] #431156
10/10/13 08:45
10/10/13 08:45
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
It seems there's really a bug in ent_playloop. I've posted a small example in Bug Hunt's forum. This example always crashes:
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=431154

Re: function parameter and var pointer [Re: oliver2s] #431169
10/10/13 12:28
10/10/13 12:28
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
Yes, this same happens if i run the knights_on_wheels.c sample.
But if i change ent_playloop to snd_loop seems to work, thanks!


Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P
Re: function parameter and var pointer [Re: rojart] #431173
10/10/13 13:40
10/10/13 13:40
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
That bug drove me really insane. I searched the whole source code of my project for a memory leak for almost 2 weeks. But in the end it wasn't a memory leak, "just" an engine bug...

Re: function parameter and var pointer [Re: oliver2s] #431184
10/10/13 20:13
10/10/13 20:13
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Does the same happen with ent_playsound?
Would be kind of interesting since my code randomly crashes too when physx objects have to play a sound :|
Also searchwd for a menory leak but couldnt find one...

Re: function parameter and var pointer [Re: Ch40zzC0d3r] #431185
10/10/13 20:18
10/10/13 20:18
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
I couldn't get any case where ent_playsound crashes. But I want it to be really bullet proof and removed ent_playsound instructions too.

Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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