|
Hi Iryna, I was investigating this problem. I think it
might be related to a problem I myself am having. For some reason, a static
variable used in the interop code that acts as a function pointer to a delegate
in the managed world, is being set to something other than NULL, even though it
is initialized to NULL, and there is no indication that any code is setting it
to a non-NULL value. Because it’s non-null, the interop code thinks that
a valid delegate has been registered for calling with progress information. This line inserted into the DicomClient
constructor should be an adequate workaround:
// same goes for the store scu callback helper
_storeScuCallbackHelper =
new StoreScuCallbackHelper(this); It should be obvious where this should go.
This registers the callback function pointer with something that actually
exists, but no hooks have yet been provided for actually receiving an Event
from this delegate at this point. --- The contents of this email, including any
files transmitted with it, are confidential and are the sole property of
ClearCanvas Inc., intended solely for the use of the individual or entity to
whom they are addressed. Disclosure of the information contained herein without
the express written consent of ClearCanvas Inc. is strictly prohibited. From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Iryna Gordon (Sorry if this is a double post - I'm not sure if my
previous one was properly sent as my mail server is acting up) Hi there, I have a question about DicomClient.Store which my code
uses. I'm trying to store a series containing a single CT image on our test
server, but the problem is with association.SendCStore(interopFilenameList) which
throws an exception. Here's what I get in the output: First-chance
exception at 0x00000000 in StudyScout.exe: 0xC0000005: Access violation reading
location 0x00000000. First-chance
exception at 0x79eea7c3 in StudyScout.exe: 0xC0000005: Access violation reading
location 0x00000000. First-chance
exception at 0x79eea7c3 in StudyScout.exe: 0xC0000005: Access violation reading
location 0x00000000. A first chance
exception of type 'System.AccessViolationException' occurred in
ClearCanvas.Dicom.OffisWrapper.dll An
exception of type 'System.AccessViolationException' occurred in
ClearCanvas.Dicom.OffisWrapper.dll but was not handled in user code Additional
information: Attempted to read or write protected memory. This is often an
indication that other memory is corrupt. I
stepped through the DicomClient.Store code and the three OfStringVector lists
(filepaths, sop class uids and transfer syntax uids) seem to be set properly.
It seems like a null pointer problem inside the OffisWrapper... Has anyone
encountered this before? Any ideas about how to fix this will be very much
appreciated! thanks
in advance, Iryna |
_______________________________________________ dev mailing list [email protected] http://clearcanvas.ca/mailman/listinfo/dev_clearcanvas.ca
