#1
Posted
:
Friday, October 7, 2016 1:32:57 AM(UTC)
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
#2
Posted
:
Monday, October 10, 2016 2:17:41 PM(UTC)
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.
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.