Article View: borland.public.cppbuilder.internet.web
Article #962Re: How display MAPIMAIL
From: Remy Lebeau (TeamB)
Date: Wed, 01 Mar 2006 01:56
Date: Wed, 01 Mar 2006 01:56
18 lines
1687 bytes
1687 bytes
"HF" <(min_charATyahooPUTADOTgr)(HellenicFire)> wrote in message news:4404d5b0@newsgroups.borland.com... > //******** Put also this *******// > MAPIFreeBuffer(&tmp); > MAPIFreeBuffer(&rec); > //**************** Do not do that. In the code you provided, none of the structure members are dynamically allocated, so there is nothing to free. The only time you should ever call MAPIFreeBuffer() is when freeing memory that the MAPI system itself allocated, which is not the case here. The only functions that allocate memory which has to be freed by the user's code is MAPIReadMail(), MAPIAddress(), and MAPIResolveName(). Gambit
Technical Details
Message-ID:
<4404ff0d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4402040f@newsgroups.borland.com> <4404bbf5$1@newsgroups.borland.com> <4404d5b0@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,b415d4e666b19fd4 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <4402040f@newsgroups.borland.com> <4404bbf5$1@newsgroups.borland.com> <4404d5b0@newsgroups.borland.com> Subject: Re: How display MAPIMAIL Date: Tue, 28 Feb 2006 17:56:23 -0800 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4404ff0d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1141178125 68.69.17.41 (28 Feb 2006 17:55:25 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail