Search:

Type: Posts; User: Morglum

Search: Search took 0.01 seconds.

  1. Ah, then there's no problem, because the ratio...

    Ah, then there's no problem, because the ratio mem used / mem requested will be > 90%, because in fact I don't allocate 1 big pool, but I do allocate many small ones. For example, in a video game...
  2. Thank you very much, Coder, for your reply. I've...

    Thank you very much, Coder, for your reply. I've learned many things, and the link now works.

    There's only one point that I don't understand : why should my memory manager have any problems with...
  3. Replies
    1
    Views
    689

    I've searched "Overload operator new" in google...

    I've searched "Overload operator new" in google and I've found many interresting papers ! I'm so sorry to have posted a question here, whereas the answer was so easy to find elsewhere. On the other...
  4. Replies
    0
    Views
    1,098

    Pointers and garbage collectors

    Hi !

    I'm writing a memory manager with its own garbage collector. The garbage collector (GC for short) moves objects in memory to reduce fragmentation of free space. Of course, each time I call...
  5. Replies
    1
    Views
    689

    overloading operator new

    Hi !

    I've searched through 80+ messages of this boards, but I've found no answer.
    What is the syntax to overload operator new ? This is for a memory manager, so I'd like an operator new which is...
  6. Replies
    5
    Views
    847

    Ooops, I've just understood that pointer_cast was...

    Ooops, I've just understood that pointer_cast was not a keyword, but a function's name.
  7. Oh, and by the way, here are the reasons for...

    Oh, and by the way, here are the reasons for which I'm attempting to replace win98's standard alloc routines :

    1) win98 is very bad at reusing freed memory. When you do 1000 news and 1000 deletes...
  8. Ninebit, your post was very instructive for...

    Ninebit,

    your post was very instructive for me, because I didn't know that it was possible to replace the by-default new&delete operators. Of course, it's possible to overload them, but they do...
  9. Thanks for your replies ! Coder, by "writing...

    Thanks for your replies !

    Coder, by "writing my own memory manager", I mean : begin with the allocation of a big buffer (using a malloc or a new), and then allocate&deallocate myself memory inside...
  10. Replies
    5
    Views
    847

    Aaah, thanks ! I didn't know that the...

    Aaah, thanks ! I didn't know that the pointer_cast keyword did exist.
  11. Replies
    5
    Views
    847

    Thanks for your reply, Mario. But what should I...

    Thanks for your reply, Mario. But what should I write instead ? I don't see any other possible syntax !
  12. Is it necessary to write a specific memory manager ?

    Hi !

    I'd like to know whether it looks reasonnable to you gurus to write a whole game using the standard memory manager of the operating system. Or is it necessary to write new allocation routines...
  13. Replies
    5
    Views
    847

    template operators

    Hi !

    I'd like to know whether it's possible, for an operator, to be a template (using vc++6). More specifically, suppose I've got a template class



    template <class T> class Pointer <T>
    { T...
Results 1 to 13 of 13