Newsgroups: comp.windows.ms
Path: utzoo!utgpu!watserv1!sunee!gpsteffl
From: gpsteffl@sunee.waterloo.edu (Glenn Patrick Steffler)
Subject: Re: WinApp Development Under Win3
Message-ID: <1991Jan15.192544.24643@sunee.waterloo.edu>
Keywords: WinApp, Development, Win3
Organization: Gerbils On Speed Inc.
References: <953@venice.SEDD.TRW.COM>
Date: Tue, 15 Jan 91 19:25:44 GMT
Lines: 37

In article <953@venice.SEDD.TRW.COM> press@venice.sedd.trw.com (Barry Press) writes:
>Iv'e been trying to move my windows application development from DOS, with
>win3 sessions for testing, to a completely win3 (enhanced mode), but something

Good move...much faster, unless your app locks the machine, or is a device
driver.

>must be escaping me, because there are some problems ...
>
>When you execute an application and then close it, windows has not
>necessarily "forgotten" about the instance.  This manifests itself in that
>the passed hPrevInstance may be non-zero even if that instance was closed.  
>Because of this, if you recompile an application and try to run it, it won't
>run.

I have never seen this problem you are having.  I believe it is more likely
that you are not running DOS 4.01 share, and are compiling over top of the
executable that is currently running.  You then shut down the app, during
or after the compile, and try running the "new" version.  This can have
serious side effects because windows may need to load a code segment from
disk in the shutdown of the application.  If the exe file has changed,
boy howdy!!! (can you say lockaroonie?)

>Has any one else seen this?  I've tried compressing the heap with heapwalk,
>and it didn't "forget".  Thanks.

Yea Heapwalk's a great app ain't it...(in joke).

Seriously, never seen it.
>-- 
>Barry Press                                 Internet: press@venice.sedd.trw.com

-- 
Co-Op Scum                            "Bo doesn't know software" - George Brett

"The galaxial hearth steams the sea as the sky blood red embrasses darkness"
-John Constantine (HellBlazer)                          Glenn Steffler
