|
From: Randy M. <mu...@ca...> - 2004-07-07 20:28:25
|
I would suggest you place your blocking read in a separate thread and run() it from your main() method. =20 Randy On Wed, 2004-07-07 at 11:01, Keith wrote: > Hi All, >=20 > Great util, but I=C2=92m having a problem getting it set up. I=C2=92ve fo= llowed the > instructions for integration method1, and launching the myApp.bat file wi= ll > launch my App, which acts as a listener on a TCP port. >=20 > Should my application block once this listener thread has been set up? If= I > do, I get an error starting the service (after a short while), as it stay= s > in my main method and never exits. If I remove the infinite loop from the > end, it falls straight through when starting the service, with a =C2=93yo= ur > service has started then stopped; some services automatically=C2=94 messa= ge from > the OS. >=20 > Any thoughts? Am I missing something that I should be doing to inform the > wrapper that my service is up and running? When I block, the service is > running, but you get the =C2=93service did not respond in a timely fashio= n=C2=94 error > dialog. Once this happens, it=C2=92s no longer running=C2=85 :-( If I do= n=C2=92t block, it > only lasts for a second. >=20 > Thanks in advance! >=20 > Keith. >=20 >=20 > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ >=20 >=20 > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 -=20 > digital self defense, top technical experts, no vendor pitches,=20 > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user --=20 Randy Murrish Cassatt Corporation |