New topic: Need some help with Windows Service App
<http://forums.realsoftware.com/viewtopic.php?t=45868> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message swort Post subject: Need some help with Windows Service AppPosted: Sun Nov 11, 2012 11:33 am Joined: Mon May 31, 2010 5:35 am Posts: 2229 Location: Netherlands Hi all, I have tried to create a windows service application. It's all working, except that i get errors when i do what's in the documentation. Quote:By design, console applications do not have a main event loop. It implies that classes relying on such event loop will not work as expected. You can call DoEvents in the Run event of your console application to create your own main event loop. If you use Timers or sockets in a console application and fail to periodically call App.DoEvents, sockets will not work and Timer.Action will never fire. http://docs.realsoftware.com/index.php/ConsoleApplication.DoEvents The last line is the one i don't really understand. The error is: Quote:[6928] Failure Condition: IsRBThread() && CurrentThreadHandlesEvents() [6928] Runtime Error [6928] Please report what caused this error along with the information below. [6928] ..\..\..\..\Common\ThreadInvoker.cpp: 145 It's showing in DebugView under "Capture Global Win32" Now this is my Run event code: 'App logic Network = new NetworkDiscovery AppTimer = new AppEventTimer 'Timer settings AppTimer.Mode = Timer.ModeMultiple AppTimer.Period = 1000 do App.DoEvents loop NetworkDiscovery is a AutoDiscovery subclass AppTimer is a Timer subclass Anyone? _________________ SWORT⢠- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion - REAL Studio Enterprise(latest) and WEB Edition(latest) - Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins) For Dutch User Groups ask me to enter! Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ]
-- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
