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

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

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 #12039 of 15019 |
Re: [gbadev] I think I'm losing my memory...

On 2 Jul 2002 at 0:18, colinraybrown wrote:

>
> 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.
Strange behaviour may be caused by memory overwrites, examine this possibility.

> 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
Hmm, I don't think this may be a reason, but you never know. I'm using my own
memory manager with new/delete operators and it works flawlessly (or at least so
it seems
;-). The thing is that my new/delete operators prototypes differ a little bit
from "standard" one because new takes additional arguments (zone). If you want I
may send you
my version, you may test it and see if it still crashes.

--
-Maciej







Tue Jul 2, 2002 7:47 am

yarpen2002
Offline Offline
Send Email Send Email

Forward
Message #12039 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