🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Implementation of run once

#9982
From: Remy Lebeau (TeamB)
Date: Thu, 27 May 2004 19:21
15 lines
1252 bytes
"Sergiy Kanilo" <skanilo@artannlabs.com> wrote in message
news:2hmrmlFes454U1@uni-berlin.de...

>     if(GetLastError()==ERROR_ALREADY_EXISTS) exit(EXIT_SUCCESS);

Do not call exit() in a VCL application.  It does not allow the VCL to clean
up properly.

>     ReleaseMutex(handle);

You should be using CloseHandle() instead.


Gambit
Technical Details
Message-ID: <40b640b9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.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: <40b5cc3f@newsgroups.borland.com> <2hmrmlFes454U1@uni-berlin.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,91ebf45a6fbd8e57
X-Google-Attributes: gid10cc67,public
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40b5cc3f@newsgroups.borland.com> <2hmrmlFes454U1@uni-berlin.de>
Subject: Re: Implementation of run once
Date: Thu, 27 May 2004 12:21:07 -0700
Lines: 17
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: 67.22.135.163
Message-ID: <40b640b9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1085685945 67.22.135.163 (27 May 2004 12:25:45 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail