Browsing this Thread:   1 Anonymous Users


 Bottom   Previous Topic   Next Topic  Register To Post



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
Offline

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 the post to other applications 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
Offline

 

Additional question :


Does HliScp class make some sort of validation stuff in the background?? Is there anything i can do to optimize its performace.

Here are the options i already set :

this.realSCU.Options.StorageMode = Dvtk.Sessions.StorageMode.NoStorage;

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 the post to other applications 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
Offline
you asked what i am going to ask.

Posted on: 2011/2/14 3:59
_________________
Be a Man. Do the right thing.
silk duvets
silk duvets
Grey Silk Bed Linen
...
Transfer the post to other applications Transfer



 Top   Previous Topic   Next Topic

 Register To Post


You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]