RE: [Boost-Users] Regex in a service..
John, Thanks for the response. How do you deal with breakpoints within a service? I'm compiling then starting the service from the service control manager. Will I still be able to debug it? Loren -----Original Message----- From: John Maddock [mailto:john_maddock@compuserve.com] Sent: Friday, June 13, 2003 3:22 AM To: Boost-Users@yahoogroups.com Subject: Re: [Boost-Users] Regex in a service..
I seem to be having a difficult time using the Regex class in a service. It works wonderfully in a regular app. Can anyone help me out.. Basically, instantiating a regex class raises an exception. Any thoughts?
Not unless you can tell me what exception and where - if you're using the vc ide then set it to break on OS and C++ exceptions. John. Yahoo! Groups Sponsor <http://us.adserver.yahoo.com/l?M=247865.3425083.4707139.1261774/D=egroupmai l/S=:HM/A=1482387/rand=220444082> Info: <http://www.boost.org http://www.boost.org > Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl > Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. [Non-text portions of this message have been removed]
Yes, you can debug it. After starting the service, open the Task Manager and get the process ID. Then type "msdev -p <pid>" on a command line. If the error happens too quickly (e.g. on startup), put an infinite loop at the very start and break out of it with the debugger. int i=1; while (i > 0 ); is my favorite. Just change i to zero and everything starts going as normal (just don't forget to take it out!). Good Luck, - Mark P.S. I'm using regex in a service and it's working fine (at least I assume it is, nothing noticably bad has happened). MSVC 6, boost_1_30_0, W2K AS and W2K Pro. Koss, Loren wrote:
John,
Thanks for the response. How do you deal with breakpoints within a service? I'm compiling then starting the service from the service control manager. Will I still be able to debug it?
I seem to be having a difficult time using the Regex class in a service. It works wonderfully in a regular app. Can anyone help me out.. Basically, instantiating a regex class raises an exception. Any thoughts?
Not unless you can tell me what exception and where - if you're using the vc ide then set it to break on OS and C++ exceptions.
John.
Thanks for the response. How do you deal with breakpoints within a service? I'm compiling then starting the service from the service control manager. Will I still be able to debug it?
It's not something I've ever had to do - you may need to attach the debugger to the process after it's been started, or else consult MSDN for instructions :-) John.
participants (3)
-
John Maddock
-
Koss, Loren
-
Mark Sizer