🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: dll/memory manager question

#14041
From: Remy Lebeau (TeamB)
Date: Sat, 06 Sep 2003 20:41
25 lines
1652 bytes
"Benny Hill" <benny_hill3@yahoo.com> wrote in message
news:pan.2003.09.06.14.25.25.708900@yahoo.com...
> I understand that it is a bad idea to create an object in a dll
> and then free the memory for that object in the calling program.

Correct.

> The executable "owns" the vector but the allocation occured in the DLL.

Correct.  The DLL allocated the actual memory for the items, so the DLL
should be the one to free them before the application frees the vector
itself.


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: <3f5a4648$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <pan.2003.09.06.14.25.25.708900@yahoo.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-06 13:53:24 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <pan.2003.09.06.14.25.25.708900@yahoo.com>
Subject: Re: dll/memory manager question
Date: Sat, 6 Sep 2003 13:41:08 -0700
Lines: 27
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: <3f5a4648$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1062880840 207.175.226.26 (6 Sep 2003 13:40:40 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail