🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

kill process?

#5990
From: Ron Eggler work
Date: Wed, 15 Jun 2005 12:55
19 lines
1590 bytes
Hi,

I'm writing a software which is accessing USB-hardware thru a driver. The
driver is still in developement (not by me, regrettably) and I get it to
feel by hangig. I mean the driver hangs from time to time. That means for
me, my application hangs when closing the communication. Erm I got to kill
the actual instance with the taskmanager to open a new one.
Now my question is: is it possible for me to check if there is annother open
instance of my project and kill it before I gonna try to initialize again?
I mean someting like this:
MainConst::

MainConst()
{
if (GetNumOfInstances(Application->Handle)>=1)
  {
  KillOtherInstance();
  }
}
Technical Details
Message-ID: <42b02536$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d9980975a6334c47,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ron Eggler @ work" <nospam@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: kill process?
Date: Wed, 15 Jun 2005 14:55:18 +0200
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 194.147.52.1
Message-ID: <42b02536$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1118840118 194.147.52.1 (15 Jun 2005 05:55:18 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail