#174138 - JackUzi - Thu May 20, 2010 12:35 am
Hi
I've been working on porting a program to the DS for a while now and it is now running very well on Desmume. Unfortunately though, when I put it on my M3i Zero/ DSi XL it hangs at a certain point. I put a whole lot of debugging statements in and I see one displayed just before calling a function but not the one at the top of the function being called. Well, when I say the top it is the first line of code below the local variable declarations. It's not highly recursive so I don't think it is a stack overflow.
This function gets called several times successfully before the hang. The code itself is about 15 years old and has been running without trouble on many other systems so I am reasonably confident that it isn't a bug in the code itself, although I can see how sometimes bugs can lay dormant until the code is run on an unusual system.
I've read that the M3i Zero doesn't have great homebrew compatibility, so I guess I'm trying to find out if this is the likely cause and if so, is there anything that can be done about it. I see there is an M3 specific version of DSOrganize. Does anyone know what types of things get changed to make card-specific versions like that beyond the usual DLDI patch? Any other of tricks, techniques or tools for debugging this type of hang on the hardware DS only???
Thanks in advance for any advice,
Stuart
I've been working on porting a program to the DS for a while now and it is now running very well on Desmume. Unfortunately though, when I put it on my M3i Zero/ DSi XL it hangs at a certain point. I put a whole lot of debugging statements in and I see one displayed just before calling a function but not the one at the top of the function being called. Well, when I say the top it is the first line of code below the local variable declarations. It's not highly recursive so I don't think it is a stack overflow.
This function gets called several times successfully before the hang. The code itself is about 15 years old and has been running without trouble on many other systems so I am reasonably confident that it isn't a bug in the code itself, although I can see how sometimes bugs can lay dormant until the code is run on an unusual system.
I've read that the M3i Zero doesn't have great homebrew compatibility, so I guess I'm trying to find out if this is the likely cause and if so, is there anything that can be done about it. I see there is an M3 specific version of DSOrganize. Does anyone know what types of things get changed to make card-specific versions like that beyond the usual DLDI patch? Any other of tricks, techniques or tools for debugging this type of hang on the hardware DS only???
Thanks in advance for any advice,
Stuart