- is optional and is ignored under Win32 and used as the directory to
- create the lock file in under Unix (default is
- wxGetHomeDir())
-
- @return Returns @false if initialization failed, it doesn't mean that
- another instance is running - use IsAnotherRunning()
- to check for it.
+ The path is optional and is ignored under Win32 and used as the
+ directory to create the lock file in under Unix
+ (default is wxGetHomeDir()).
+
+ @return
+ Returns @false if initialization failed, it doesn't mean that
+ another instance is running -- use IsAnotherRunning() to check for
+ it.
+
+ @note
+ One of possible reasons while Create() may fail on Unix is that the lock
+ file used for checking already exists but was not created by the user.
+ Therefore applications shouldn't treat failure of this function as fatal
+ condition, because doing so would open them to the possibility of a
+ Denial of Service attack. Instead, they should alert the user about
+ the problem and offer to continue execution without checking if
+ another instance is running.