Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
I think I'm losing my memory...   Message List  
Reply | Forward Message #12038 of 15019 |

AAARRRGGGGHHHHH...
Spent AGES trying to get my memory allocator to stop crashing, I've
tried all sorts, and re-written much of it to no avail.
So I tried a memory manager by someone else - Hakim Ferradj of Apex -
and I get the same flaky behaviour and similar crashes.

My game works flawlessly with the gcc standard allocator :-|

I'm using c++, so I'm overriding the global new and delete.

The only thing I can think of is that I have to re-compile the
libraries using my own allocator?? is this the case, might the pre-
compiled devkit libraries be invoking the original alloc and clashing
with mine?? - if so does anyone have a link to a tutorial for re-
building devkit advance

Or is it more likely that i've produced other code that works only
with the standard new and delete?

any tips for de-bugging this kind of low-level code?

any suggestions much appreciated

cheers,

col.







Tue Jul 2, 2002 12:18 am

colinraybrown
Offline Offline
Send Email Send Email

Forward
Message #12038 of 15019 |
Expand Messages Author Sort by Date

AAARRRGGGGHHHHH... Spent AGES trying to get my memory allocator to stop crashing, I've tried all sorts, and re-written much of it to no avail. So I tried a...
colinraybrown
Offline Send Email
Jul 2, 2002
12:25 am

... Strange behaviour may be caused by memory overwrites, examine this possibility. ... Hmm, I don't think this may be a reason, but you never know. I'm using...
Maciej Sinilo
yarpen2002
Offline Send Email
Jul 2, 2002
8:50 am

... Yep this is a likely reason, but if my code is overwriting the wrong memory, how can it work flawlessly with the standard allocator? Theres a LOT happening...
colinraybrown
Offline Send Email
Jul 3, 2002
2:11 am

... That's where custom memory allocator may help. My GBA memory manager is not very sophisticated, but it still should catch some problems like mem leaks...
Maciej Sinilo
yarpen2002
Offline Send Email
Jul 3, 2002
11:22 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help