🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Mutex troubles?

#4379
From: Remy Lebeau (TeamB)
Date: Fri, 24 Feb 2006 23:30
17 lines
1477 bytes
"Nate Lockwood" <RNLockwoodREMOVE@attglobal.net> wrote in message
news:43ff748a$1@newsgroups.borland.com...

> The first instance is detected but the message doesn't get through.

You are not catching the message properly.  You are trying to catch it at
from TForm, but you are doing a broadcast post which means the TApplication
will catch the message instead.  See my other reply.

>    PostMessage(HWND_BROADCAST, WM_MYMSG, NULL, NULL);
>    return NULL;     //  NULL handle

You are not freeing the mutex before returning.


Gambit
Technical Details
Message-ID: <43ff96fb@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43ff726e$1@newsgroups.borland.com> <43ff7389$1@newsgroups.borland.com> <43ff748a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7b6bdf1fac3d7d96
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <43ff726e$1@newsgroups.borland.com> <43ff7389$1@newsgroups.borland.com> <43ff748a$1@newsgroups.borland.com>
Subject: Re: Mutex troubles?
Date: Fri, 24 Feb 2006 15:30:43 -0800
Lines: 19
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: <43ff96fb@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1140823803 68.69.17.41 (24 Feb 2006 15:30:03 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail