🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Windows message question

#12926
From: Bob Gonder
Date: Thu, 06 Nov 2003 16:53
22 lines
2179 bytes
Remy Lebeau (TeamB) wrote:

>
>"Martin C" <martinc@aol.com> wrote in message
>news:3fa2df07@newsgroups.borland.com...
>
>
>Correct.  Especially since you are apparenty using WM_COPYDATA, which *must*
>be called via SendMessage(), never PostMessage().  SendMessage() waits until
>the message is processed, whereas PostMessage() does not.  This is critical
>particular when passing pointers around, to ensure that the passed memory is
>still valid by the time the message is eventually processed.
>
>> so is it possible by anyway not to keep the dll wait until all the
>> code under my exe message event finish executing.

I thought I read a function lately, but don't remember it's name, that
the receiver can send to acknowledge a SendMessage, but continue
processing.  So, if you are done with the shared memory, but have
other processing to do, you can let the caller continue on. Just
remember that as soon as you call the release function, that the
passed memory is not reliably available.
Technical Details
Message-ID: <coukqvctpb05mfv9lq7oglqssk8p1cn5cd@4ax.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: <3f9e672d@newsgroups.borland.com> <3f9ea71e$1@newsgroups.borland.com> <3f9eaa27@newsgroups.borland.com> <3f9eb458$1@newsgroups.borland.com> <3fa2df07@newsgroups.borland.com> <3faa132d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,8012e723bc3abeb
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-06 09:11:09 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Windows message question
Date: Thu, 06 Nov 2003 08:53:28 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <coukqvctpb05mfv9lq7oglqssk8p1cn5cd@4ax.com>
References: <3f9e672d@newsgroups.borland.com> <3f9ea71e$1@newsgroups.borland.com> <3f9eaa27@newsgroups.borland.com> <3f9eb458$1@newsgroups.borland.com> <3fa2df07@newsgroups.borland.com> <3faa132d$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 209.178.182.30
X-Trace: newsgroups.borland.com 1068137608 209.178.182.30 (6 Nov 2003 08:53:28 -0700)
Lines: 25
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