🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: std::string to BSTR conversion function leaks memory... (Urgent please)

#11822
From: Ed Mulroy [TeamB]
Date: Fri, 16 Jan 2004 16:33
16 lines
1652 bytes
I do not know that Visual Basic handles it automatically.  It all depends
upon the code the writer of the VB part used.

You said that CodeGuard did not find any leaks yet there is a memory leak.
How do you determine that there is a memory leak?

.  Ed

> Fernando wrote in message
> news:u11g001tat37jadh02pfhdvqk99lf85p0s@4ax.com...
>
> >I can't see anything that leaks in that code.  Could it be that
> >the program which uses the function does not free the
> >returned string with SysFreeString?
>
> It's passed to VB, which handles this automaticaly... :-?
Technical Details
Message-ID: <40081253$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.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: <bjlf005pg85nvabmpc7ksd5ugs624tua53@4ax.com> <4008039f$1@newsgroups.borland.com> <u11g001tat37jadh02pfhdvqk99lf85p0s@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,61db49fd5c05f5b0
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-16 08:40:34 PST
From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <bjlf005pg85nvabmpc7ksd5ugs624tua53@4ax.com> <4008039f$1@newsgroups.borland.com> <u11g001tat37jadh02pfhdvqk99lf85p0s@4ax.com>
Subject: Re: std::string to BSTR conversion function leaks memory... (Urgent please)
Date: Fri, 16 Jan 2004 11:33:21 -0500
Lines: 18
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.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <40081253$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074270803 24.74.175.102 (16 Jan 2004 08:33:23 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail