gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > vsniprintf causeing crashes

#155037 - ingramb - Thu Apr 24, 2008 8:00 am

I uss vsniprintf all over my code to write text to a log. I noticed that adding lots of logging to certain areas were causing more frequent crashes. When I removed vsniprintf, I get no crashes.

Does vsniprintf allocate/free memory or do anything that might fail after many uses? I can look at the source, but it will take me a while to dig through the printf stuff. Has anyone had any problems with these functions before?

#155039 - simonjhall - Thu Apr 24, 2008 9:14 am

Stack usage problems?
_________________
Big thanks to everyone who donated for Quake2

#155040 - ingramb - Thu Apr 24, 2008 9:32 am

That's a good thought. I have a fair amount of data in the dtcm. How much dtcm should be reserved for the stack?