Stopping MessageIterators ? |
||
|---|---|---|
|
Quite a regular
![]()
Joined:
2010/3/23 15:01 Group:
Registered Users Posts:
24
Level : 3; EXP : 62
HP : 0 / 65 MP : 8 / 606 ![]() |
Hi. What is the proper way of stopping MessageIterator or MessageIterator based classes without causing an exception?? (such as HliScp ..) When i call Stop() or StopCurrentThread() methods, it goes into a DicomMessageRecieve Exception because of its socket has been closed. When i digg in the source codes, i noticed the "recieveMessage" variable and i understood that if i only set that variable to a "false" value, the internal while loop would release itself. But that didn't happen either. Right now, i am handling the exception with a "try catch" statement on "base.Execute()" line, and in the catch statement i am checking if Stop() command was calledor not before exception. But since application works multi threaded and hundreds of SCP classes are generated, those exceptions are quite disturbing. Shortly; what is the best way of stopping the port listener without causing any Exception???
Posted on: 2010/12/10 7:43
|
|
Transfer
|
||
Re: Stopping MessageIterators ? |
||
|---|---|---|
|
Quite a regular
![]()
Joined:
2010/3/23 15:01 Group:
Registered Users Posts:
24
Level : 3; EXP : 62
HP : 0 / 65 MP : 8 / 606 ![]() |
Additional question :
Here are the options i already set : this.realSCU.Options.GenerateDetailedResults = false; this.realSCU.Options.LogChildThreadsOverview = false; this.realSCU.Options.LogThreadStartingAndStoppingInParent = false; this.realSCU.Options.LogWaitingForCompletionChildThreads = false; this.realSCU.Options.ShowResults = false; this.realSCU.Options.StartAndStopResultsGatheringEnabled = false;
Posted on: 2010/12/10 8:07
|
|
Transfer
|
||
Re: Stopping MessageIterators ? |
||
|---|---|---|
|
Just popping in
![]()
Joined:
2011/2/14 3:49 Group:
Registered Users Posts:
1
Level : 1; EXP : 0
HP : 0 / 0 MP : 0 / 0 ![]() |
you asked what i am going to ask.
Posted on: 2011/2/14 3:59
|
|
Transfer
|
||





Transfer
