🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SAPI Failure under Vista - Help!

#1116
From: JohnC
Date: Tue, 23 Oct 2007 16:47
21 lines
1856 bytes
Thanks!
There are so many varieties of strings these days that it is hard to see 
what the relationships are between them.  Also, it is not clear which need 
to be freed and which will be freed automatically.  This is the first time 
I've had to work with either BSTR or WideString.
I'll change it to the way you suggest.
Thanks,
   John

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:471e20e3$3@newsgroups.borland.com...
>
> That is a memory leak.  You are not freeing the BSTR that StrToBSTR() is 
> returning.  That is all the more reason to forget allocating the BSTR 
> yourself and just let WideString manage it for you automatically:
>
>    pVoice->Speak(WideString(Words), SPF_DEFAULT, NULL);
>
>
> Gambit
> 
Technical Details
Message-ID: <471e25b3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <471a1686@newsgroups.borland.com> <471cd115$1@newsgroups.borland.com> <471ddb48@newsgroups.borland.com> <471dde5b$1@newsgroups.borland.com> <471e20e3$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6c3b668ca80ad7d9
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "JohnC" <jcibulskis@sbcglobal.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <471a1686@newsgroups.borland.com> <471cd115$1@newsgroups.borland.com> <471ddb48@newsgroups.borland.com> <471dde5b$1@newsgroups.borland.com> <471e20e3$3@newsgroups.borland.com>
Subject: Re: SAPI Failure under Vista - Help!
Date: Tue, 23 Oct 2007 11:47:47 -0500
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 76.223.245.175
Message-ID: <471e25b3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1193158067 76.223.245.175 (23 Oct 2007 09:47:47 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
X-Original-Bytes: 1703