Yeah, It uses the first example. It works fine in the computer.It's not a logic question, at least not in my code. Probably a malloc corruption or maybe something with ram to vram conversion.
uLib sets the pointes to null when sending the image to vram, and when unloading it, returns the pointer ...
Search found 6 matches
- Mon Sep 07, 2009 10:39 am
- Forum: DS/DSi Development
- Topic: Memory corruption
- Replies: 13
- Views: 16912
- Thu Sep 03, 2009 12:10 pm
- Forum: DS/DSi Development
- Topic: Memory corruption
- Replies: 13
- Views: 16912
Re: Memory corruption
It should retrieve the size of the struct. But if it were worrupted, it'd never work, but it works for a while.
Stack trace is discarded since I removed the most big structures. also created the static arrays but it still crashes.
Stack trace is discarded since I removed the most big structures. also created the static arrays but it still crashes.
- Tue Sep 01, 2009 9:15 am
- Forum: DS/DSi Development
- Topic: Memory corruption
- Replies: 13
- Views: 16912
Re: Memory corruption
I understand. I am using sizeof() for retrieving the desired data. Maybe It doesn't get the right size? Also, then why it works at the start?
- Mon Aug 31, 2009 12:25 pm
- Forum: DS/DSi Development
- Topic: Memory corruption
- Replies: 13
- Views: 16912
Re: Memory corruption
Yes, I do. I have some stack traces and some of them lead to _malloc_r tag. But nothing about stack trace. I only use pointers so I really doubt its a stack overflow problem. How why the byte alignment could fail?
- Sun Aug 30, 2009 10:22 pm
- Forum: DS/DSi Development
- Topic: Memory corruption
- Replies: 13
- Views: 16912
Re: Memory corruption
Is it possible that an stack overflow exception cause memory corruption? It's possible since DS doesn't break when an exception occurs unlike in pc.
How could I help that? why the stack is filled? Maybe an excessive number of function callings with big struct instances? So, if it's an stack problem ...
How could I help that? why the stack is filled? Maybe an excessive number of function callings with big struct instances? So, if it's an stack problem ...
- Fri Aug 28, 2009 1:52 pm
- Forum: DS/DSi Development
- Topic: Memory corruption
- Replies: 13
- Views: 16912
Memory corruption
Hello. First of all, sorry for my bad english, it's not my mother language:P. I am making a port of a game from PC to DS. This game works perfectly on PC with no crashes and at full speed but I am having some problems with ds, maybe due to DS limits.
This is the situation: the game loads fine, but ...
This is the situation: the game loads fine, but ...