Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 13,972 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: How to find out what function deletes my object [Re: Germanunkol] #377042
07/09/11 13:57
07/09/11 13:57
Joined: Feb 2011
Posts: 135
Myrkling Offline
Member
Myrkling  Offline
Member

Joined: Feb 2011
Posts: 135
lite-C doesn't have bounds checking, so invalid array indices themselves (even negative ones) won't cause errors.
But you could try the following in order to narrow down the problem:

Constantly check if ss_ledgendDeathsText == NULL. If true, log the memory locations of ss_ledgendDeathsText and all arrays, structs etc. in question. Then find the address that is closest to ss_ledgendDeathsText. This might be the evildoer.

Re: How to find out what function deletes my object [Re: Myrkling] #377044
07/09/11 14:43
07/09/11 14:43
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
Hm, interesting...
I might just do that.

Still, the number of arrays and structs I have is immense. This will take some time to do...

Another thing: if I log the address of an array, it logs the beginning of the array, right? so if the array is pretty long, can I be sure that it is always in one piece?


~"I never let school interfere with my education"~
-Mark Twain
Re: How to find out what function deletes my object [Re: Germanunkol] #377047
07/09/11 14:48
07/09/11 14:48
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Originally Posted By: Germanunkol
Another thing: if I log the address of an array, it logs the beginning of the array, right? so if the array is pretty long, can I be sure that it is always in one piece?

Physical probably not, but the OS will map one large chunk of virtual memory to the physical memory.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Page 2 of 2 1 2

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

Gamestudio download | 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