sendFINDRequest - invalid argument (findResponses)

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
eshwar.ramesh
Posts: 15
Joined: Tue, 2012-08-07, 08:30

sendFINDRequest - invalid argument (findResponses)

#1 Post by eshwar.ramesh »

I used this commit http://git.dcmtk.org/web?p=dcmtk.git;a= ... 37f8d02ca6.

And this code gives me the error

Code: Select all


/* Assemble and send C-FIND request */ 
    OFList<QRResponse*> findResponses; 
    DcmDataset req; 
    req.putAndInsertOFStringArray(DCM_QueryRetrieveLevel, "STUDY"); 
    req.putAndInsertOFStringArray(DCM_StudyInstanceUID, ""); 
    T_ASC_PresentationContextID presID = findUncompressedPC(UID_FINDStudyRootQueryRetrieveInformationModel, scu);
    if (presID == 0) 
    { 
        DCMNET_ERROR("There is no uncompressed presentation context for Study Root FIND"); 
        return 1; 
    } 
    /* Over here it says &findResponses is not valid argument because of obvious reasons.  */
    result = scu.sendFINDRequest(presID, &req, &findResponses);  
because the declaration of sendFINDRequest is this :

Code: Select all

virtual OFCondition sendFINDRequest(const T_ASC_PresentationContextID presID,
                                      DcmDataset *queryKeys,
                                      OFVector<QRResponse*> *responses);
The last argument is of type OFVector and not OFList. How do I resolve this? I don't really know how to deal with OFVectors.

J. Riesmeier
DCMTK Developer
Posts: 2541
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: sendFINDRequest - invalid argument (findResponses)

#2 Post by J. Riesmeier »

Why don't you use the current DCMTK snapshot?

Basically, OFVector is a wrapper or a subset of the STL class "vector" - depending on the configuration at compilation time.

eshwar.ramesh
Posts: 15
Joined: Tue, 2012-08-07, 08:30

Re: sendFINDRequest - invalid argument (findResponses)

#3 Post by eshwar.ramesh »

I am working/trying to work on an iOS + dcmtk compilation, I managed to compile dcmtk 3.6.0. And everything was fine until I needed to use findscu and getscu. I don't want to use storescp to retrieve images.

So, when I tried the latest few snapshots, the generated Xcode project doesn't open saying, the project file could not be parsed.

Without much leeway, I tried this particular snapshot which is closer to home, that is dcmtk 3.6.0 with getscu added. And now I get this error. So... yeah.

Also, kindly link me to the current snapshot, so I can give it a shot.

EDIT : If the 02-11-2012 snapshot is the latest snapshot (not sure if there's more), then that has already been tried.

J. Riesmeier
DCMTK Developer
Posts: 2541
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: sendFINDRequest - invalid argument (findResponses)

#4 Post by J. Riesmeier »

If the latest snapshot does not work on your platform, then you should examine what the reason is and report the required changes to us ...

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 0 guests