44 |
{ |
{ |
45 |
try |
try |
46 |
{ |
{ |
47 |
|
//first load transports |
48 |
transportController = TransportController.getInstance(); |
transportController = TransportController.getInstance(); |
49 |
|
|
50 |
|
//then load remoteControl |
51 |
|
startRemoteControl(); |
52 |
|
|
53 |
|
//finally start the worker thread |
54 |
// create our threadstart object to wrap our delegate method |
// create our threadstart object to wrap our delegate method |
55 |
ThreadStart ts = new ThreadStart(this.ServiceWorkerMethod); |
ThreadStart ts = new ThreadStart(this.ServiceWorkerMethod); |
56 |
|
|
62 |
m_thread = new Thread(ts); |
m_thread = new Thread(ts); |
63 |
|
|
64 |
// go ahead and start the worker thread |
// go ahead and start the worker thread |
65 |
m_thread.Start(); |
m_thread.Start(); |
|
|
|
|
|
|
|
startRemoteControl(); |
|
66 |
|
|
67 |
} |
} |
68 |
catch (Exception e) |
catch (Exception e) |