🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2151

Another instance? There ISN'T another instance!

#2151
From: Raptor
Date: Wed, 10 Apr 1991 19:02
29 lines
1869 bytes
So all of a sudden Windows informs my application that it's not the
only instance of it running: hPrevInstance != 0.  I've seen this in
Codeview, and my application's behavior confirms it (it only lets
itself run once and displays an error otherwise).

I've looked in the task list (double-click on the desktop) and gee,
there's no copy of my application present before I run it.

However, this doesn't happen with a newly-rebuilt version of the
generic application which I also examined under Codeview, so it's got
to be something wrong with my program, but what?

The only thing I can think of now is to hack in some code to try to
find out about this mythical other instance that's supposedly running,
and see if that tells me anything.  (I may also re-install my SDK
since I recently contracted the 4096 virus.  Hey, if anyone knows who
wrote this thing, I'd like to have a LONG talk with them...  Gad, not
even a "ha ha I infected you", just a disk crash.)

It's a large model program (for now, please no lectures on large
model), so Windows should not even let it run if there is indeed
another copy running.

Anyone else ever see this?  Suggestions?
-- 
            Lynn Wallace           |           I do not represent E&S.
Evans and Sutherland Computer Corp.|   Internet: lwallace@javelin.sim.es.com
      Salt Lake City, UT 84108     |           Compu$erve:  70242,101
	      Revenge is a dish best not served at all.
Technical Details
Message-ID: <1991Apr10.190201.16284@javelin.sim.es.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!orca!javelin.sim.es.com!lwallace

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!orca!javelin.sim.es.com!lwallace
From: lwallace@javelin.sim.es.com (Raptor)
Newsgroups: comp.windows.ms.programmer
Subject: Another instance?  There ISN'T another instance!
Message-ID: <1991Apr10.190201.16284@javelin.sim.es.com>
Date: 10 Apr 91 19:02:01 GMT
Organization: Evans & Sutherland Computer Corp., Salt Lake City, Utah
Lines: 29