🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: dll/memory manager question

#13905
From: Remy Lebeau (TeamB)
Date: Sun, 07 Sep 2003 20:38
24 lines
2140 bytes
"Gary Setter" <setterg@worldnet.att.net> wrote in message
news:3f5b58fe$1@newsgroups.borland.com...

> Are you just saying that the exported class must define
> external constructor and destructor functions so that the
> vector is allocated/deallocated with the dlls memory allocator?

No. The vector itself exists in the application code.  Its memory belongs to
the application's memory manager.  The vector is then passed to the DLL for
filling in.  The memory for the individual items inside the vector belongs
to the DLL's menory manager instead.  Upon shudown, the application should
pass the vector back to the DLL so that the DLL can remove the memory for
the individual items using the DLL's memory manager.  Then the application
can release the vector itself using the application's memory manager.


Gambit


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/03
Technical Details
Message-ID: <3f5b972b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <pan.2003.09.06.14.25.25.708900@yahoo.com> <3f5a4648$1@newsgroups.borland.com> <pan.2003.09.06.21.16.35.249142@yahoo.com> <3f5b58fe$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,7f8fbb07565f6d83
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-07 13:39:08 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <pan.2003.09.06.14.25.25.708900@yahoo.com> <3f5a4648$1@newsgroups.borland.com> <pan.2003.09.06.21.16.35.249142@yahoo.com> <3f5b58fe$1@newsgroups.borland.com>
Subject: Re: dll/memory manager question
Date: Sun, 7 Sep 2003 13:38:34 -0700
Lines: 26
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: 207.175.226.26
Message-ID: <3f5b972b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1062967083 207.175.226.26 (7 Sep 2003 13:38:03 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail