Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, October 7, 2016 1:32:57 AM(UTC)
marilink

Groups: Registered
Posts: 3


Leadtools v. 17

Hi,
we have a problem creating a DICOMDIR with folder containing images around 1.2GB.
It crashes on DicomDir.InsertFile(null), after many minutes, with an access violation exception.

Is there any limitation on file size?

Thanks in advance
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, October 10, 2016 2:17:41 PM(UTC)

Hadi  
Hadi

Groups: Manager, Tech Support, Administrators
Posts: 218

Was thanked: 12 time(s) in 12 post(s)

Hello,

Thank you for contacting LEADTOOLS Support.

How the directory is set, directory name, files name and whether the files has the proper patient/study/series and instance hierarchy set will have an effect in the DICOMDIR creation. For more information on the DICOMDIR folder and file naming convention please refer to DICOM Standard part 10

You can process the OnInsertFile to see if any errors are thrown for each file that is being added to the DICOMDIR. Here is an example of how to use the method:

Code:
public override DicomDirInsertFileCommand OnInsertFile(string fileName, DicomDataSet ds, DicomDirInsertFileStatus status, DicomExceptionCode code)
   {
      if (status == DicomDirInsertFileStatus.PreAdd)
      {
         string msg = string.Format("About to add the file '{0}'{1}{1}Proceed?", fileName, Environment.NewLine);
         DialogResult result = MessageBox.Show(msg, "Sample", MessageBoxButtons.YesNoCancel);
         if (result == DialogResult.Yes)
            return DicomDirInsertFileCommand.Continue;
         else if (result == DialogResult.No)
            return DicomDirInsertFileCommand.Skip;
         else if (result == DialogResult.Cancel)
            return DicomDirInsertFileCommand.Stop;
      }
      else if (status == DicomDirInsertFileStatus.Success)
      {
         string msg = string.Format("The file '{0}' has been added successfully.", fileName);
      }
      return DicomDirInsertFileCommand.Continue;
   }


Please add this code as well as a try{}catch{} to your application to help identify and pinpoint the access violation exception that you are getting.
Hadi Chami
Developer Support Manager
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.048 seconds.