Hello everybody,
I'm quite new to .NET FW programming, and I started just few months ago, on
FW2.0, knowing actually _nothing_ about FW1.1, so my question may sound
silly...
Anyway, what I need to know is: does Threading on FW1.1 behave exactly the
same than on FW2.0?
In particular my problem is this: I wrote a windows service and compiled it
on FW2.0 and now I had to performe a "backporting" to FW1.1, because of
some customers' request. My service is quite simple: it implements a server
listening for incoming connections on a specified port. In order to avoid
a timeout exception starting the server (that occours after 30 seconds, if
I'm right...) I've overriden the "OnStart()" method from the "ServiceBase"
class, and set inside it (I hope it's enough self-exlaining):
MyServer server = new MyServer();
protected void OnStart(String[] args) {
Thread t = new Thread(new ThreadStart(server.StartListening));
t.Start();
}
so that the OnStart() method returns in a little time.
The version compiled for the FW2.0 works wihtout any problem but with the
one compiled for FW1.1 I get a timeout and cannot start the service.
Can anyone help me?
Thanks in advance.
Kind regards,
Giulio - Italia
--
On Air: Metallica - Shortest Straw
--