Hi folks,
I'm having an odd issue when trying to work with the StudyRootFindScu class found in the ClearCanvas.Dicom.Samples project.
I have written a small bit of test code to test functionality. I'm seeing what seems like a completely random number of results returned StudyRootFindScu.Find() method. Sometimes I get 7, sometimes 24, sometimes 11, etc. All of the series results returned are correct, but I may only see 3 of 40 images in a given study.
When I review the Output of any given run, I see the following error generated anytime I call .Find():
A first chance exception of type 'System.NotSupportedException' occurred in ClearCanvas.Common.dll
Here is the code that is generating this error, note that "findScu.Status" resolves to "UnexpectedMessage":
IList resultsList;
StudyRootFindScu findScu = new StudyRootFindScu();
findScu.MaxResults = 5;
resultsList = findScu.Find("MY_LOCAL_AE",
"MY_REMOTE_AE",
"some.remote.ip.address",
remotePort,
attribs);
if (findScu.Status == ScuOperationStatus.Running)
{
Debug.Print("running");
}
else
{
Debug.Print("finished");
}
findScu.Dispose();
Debug.Print("Result count: " + resultsList.Count.ToString());
I'm pretty sure this is some kind of issue with how I'm using the lib, but I'm not sure where I should be looking to correct the problem.
Any advice would be much appreciated.
Thanks!
-Pete