Bugs item #1806994, was opened at 2007-10-03 08:13
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=725709&aid=1806994&group_id=132964
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Util
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: property application.runAsService set too late
Initial Comment:
When running my app as a windows service, isInteractive() (in the "main" method of my ServerApplication instance) returns true instead of false. I think the problem is, that "application.runAsService" is set too late. As soon as isService() is called in ServerApplication::run, the ServiceMain function is started, and app.init() and app.run() are called inside ServiceMain. Adding some debug messages revealed, that isInteractive() is called before "application.runAsService" was set to true in ServerApplication::run. Moving the setting of "application.runAsService" to ServiceMain solved the problem.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=725709&aid=1806994&group_id=132964
|