Friday, July 30, 2010
Google Custom Search

Go to...

Recent Forum Posts

Our Community

Membership Membership:
Latest New User Latest: clim7777
New Today New Today: 11
New Yesterday New Yesterday: 18
User Count Overall: 10082

People Online People Online:
Visitors Visitors: 13
Members Members: 0
Total Total: 13

Online Now Online Now:

ClearCanvas Community Forums

"System.NotSupportedException" when using StudyRootFindScu
Last Post 2010-03-08 12:32 PM by PeteM. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
PeteM
New Member
New Member
Posts:3

--
2010-03-08 11:35 AM  

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

PeteM
New Member
New Member
Posts:3

--
2010-03-08 12:32 PM  
Quick update...

Removing the MaxResults definition fixes the random results issue. I'm still a little confused as to how I received such varied results, and I'm still receiving the aforementioned error, but at least it's pulling exactly what I expect it to pull.
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2010 ClearCanvas Inc.