--- a/StandaloneStartup.st Mon Jul 12 06:58:22 2010 +0100
+++ b/StandaloneStartup.st Mon Jul 12 17:20:36 2010 +0100
@@ -279,7 +279,7 @@
processStartupOfASecondInstance
"This is executed when I have been started as a second instance of an already running application.
If I can get the currentID (i.e. windowID) of the first one and there is a command line argument with a file,
- send a message to the main window of the already running application, o ask it for another window.
+ send a message to the main window of the already running application, to ask it for another window.
If the currentID is unknown, ask if the user wants to open a new instance of the application anyway.
Return true if the first instance has been notified, and this second instance should exit."
@@ -316,15 +316,17 @@
].
].
^ true
+
+ "Modified: / 08-07-2010 / 00:47:44 / cg"
!
releaseApplicationMutex
- OperatingSystem isMSDOSlike ifTrue:[
- MutexHandle notNil ifTrue:[
- OperatingSystem releaseMutex: MutexHandle.
- OperatingSystem primCloseHandle: MutexHandle.
- ].
+ (MutexHandle notNil and:[OperatingSystem isMSDOSlike]) ifTrue:[
+ OperatingSystem releaseMutex: MutexHandle.
+ OperatingSystem primCloseHandle: MutexHandle.
+
+ MutexHandle := nil.
].
!
@@ -690,17 +692,18 @@
!StandaloneStartup class methodsFor:'documentation'!
version
- ^ '$Id: StandaloneStartup.st 10534 2010-07-01 18:21:34Z vranyj1 $'
+ ^ '$Id: StandaloneStartup.st 10544 2010-07-12 16:20:36Z vranyj1 $'
!
version_CVS
- ^ 'Header: /cvs/stx/stx/libbasic/StandaloneStartup.st,v 1.41 2009/12/18 10:15:16 cg Exp ยง'
+ ^ 'Header: /cvs/stx/stx/libbasic/StandaloneStartup.st,v 1.43 2010/07/07 23:05:21 cg Exp '
!
version_SVN
- ^ '$Id: StandaloneStartup.st 10534 2010-07-01 18:21:34Z vranyj1 $'
+ ^ '$Id: StandaloneStartup.st 10544 2010-07-12 16:20:36Z vranyj1 $'
! !
StandaloneStartup initialize!
+