Re: WodVpn in windows service (General questions)
Hi Qaiser,
What I believe the problem in your case is that the application ends immediately as it goes thru the code. Since it's a Console Application / Service, the application will run, and end as soon as all code is executed (that doesn't have to mean it actually finished). Nothing is actually *keeping* the Service running.
When using Forms Application, the code will run as long as Form is open.
To resolve this, I would suggest moving wodVPN into a separate thread, and use AutoResetEvent object to keep your service running.
Can you try something like that?
Regards,
Damba
Complete thread:
- WodVpn in windows service - qaiser, 2009-10-26, 14:30
- Re: WodVpn in windows service - wodDamir, 2009-10-26, 15:26
- Re: WodVpn in windows service - qaiser, 2009-10-26, 15:40
- Re: WodVpn in windows service - wodDamir, 2009-10-26, 15:55
- Re: WodVpn in windows service - qaiser, 2009-10-26, 16:11
- Re: WodVpn in windows service - wodDamir, 2009-10-26, 15:55
- Re: WodVpn in windows service - qaiser, 2009-10-26, 15:40
- Re: WodVpn in windows service - wodDamir, 2009-10-26, 15:26