On Feb 16, 2006, at 9:43 AM, Peter wrote:
Unfortunately I can't get this to work.
If I use (in OnInit):
$instance = Wx::SingleInstanceChecker->new('programname');
I get this error: Usage: Wx::SingleInstanceChecker::new(CLASS)
I can't figure out what arguments it is expecting. If I look at the
wxWindows docs it seems that all it requires is 2 string parameters:
http://www.wxwidgets.org/manuals/2.6.1/
wx_wxsingleinstancechecker.html#wxsingleinstancechecker
Any ideas?
Regards,
Peter
Wx::SingleInstanceChecker is wrapped in Utils.xs.
The two-parameter "unchecked" ctor isn't wrapped, so use the default
ctor and then call
Create with your lockfile name (and optional path for Unix).
Regards,
John Ralls
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|