🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13315

Re: Installing New TMemoryManger

#13315
From: CC
Date: Mon, 20 Oct 2003 15:23
48 lines
2284 bytes
Ok - i figured out mem mgr is ONLY for vcl allocations.

For a simple allocator, I was wondering what is the best winAPI memory
functions to use?

Heap, Global, etc? I'm a little confused on what mem functions to use where.

Thanks for the help.,
CUrt





"CC" <Xcurtc@tmscorp.com> wrote in message
news:3f93fb48@newsgroups.borland.com...
> Remy & Bob - thanks for the info -
> I was wondering where do I call SetMemoryManager()? I tried calling
> winmain() before application->initialize(), after, etc.
>
> My breakpoints are never accessed after the application starts running
> (forms displayed, etc). What the secret of install a mem mgr & getting it
to
> stay installed? Looks like bcb is switching out mem mgr at some point.
> Thanks,
> Curt
>
>
>
>
> "Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in
message
> news:3f904514$1@newsgroups.borland.com...
> >
> > "Bob Gonder" <notbg@notmindspring.invalid> wrote in message
> > news:v5f0pv4012f3ltel1dolfea683u35iq6qi@4ax.com...
> >
> > > GMEM_MOVEABLE returns a Handle, not an address.
> > > Need to use GlobalLock on moveable memory so the app can use it.
> >
> > Otherwise use GMEM_FIXED instead, which does return an actual address.
> >
> >
> > Gambit
> >
> >
>
>
Technical Details
Message-ID: <3f93fdbd$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f9025f1$1@newsgroups.borland.com> <v5f0pv4012f3ltel1dolfea683u35iq6qi@4ax.com> <3f904514$1@newsgroups.borland.com> <3f93fb48@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ee2b0dd0938897eb
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-20 08:39:49 PST
From: "CC" <Xcurtc@tmscorp.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f9025f1$1@newsgroups.borland.com> <v5f0pv4012f3ltel1dolfea683u35iq6qi@4ax.com> <3f904514$1@newsgroups.borland.com> <3f93fb48@newsgroups.borland.com>
Subject: Re: Installing New TMemoryManger
Date: Mon, 20 Oct 2003 10:23:18 -0500
Lines: 50
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 208.254.250.201
Message-ID: <3f93fdbd$2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066663357 208.254.250.201 (20 Oct 2003 08:22:37 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail