ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Access violation in LoadFromFileAuto

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Steven Aertssen Posted - Jun 20 2013 : 06:02:55
Hi,

we recently updated ImageEn from version 4.0.2 to 4.3.1.
In the new version, we get an access violation when loading a dicom image.
For your testing purposes, I'll attach a zip file containing the image.


Please try the following.
Create an empty project and put a TImageEnView object on your form.
In the constructor, put the following code:

myImageEnView->IO->LoadFromFileAuto("R1.rvg");

This will give you an access violation. I tested the same thing in version 4.0.2 and this works with no problems.

Can you please provide a solution?
Thanks!
Steven


Download Attachment: 201362055846_R1.zip
4   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Jun 26 2013 : 11:01:06
Please write in private, I will send the full fixed iedicom.pas file.
Steven Aertssen Posted - Jun 26 2013 : 06:53:48
Hi Fab,

have you been able to look at this already?
Thanks,
Steven
Steven Aertssen Posted - Jun 21 2013 : 05:51:36
Hi Fab,

thank you for the quick reply.
I'm afraid it didn't help.

Here is what I did:

I altered the code as follows:
....
if tags = IOParams.DICOM_Tags then case element of
$0002: // Samples per Pixel
SamplesPerPixel := dataint;
$0004: // photometric interpretation
PhotometricInterpretation := AnsiString(data);
....
Then I did a rebuild of
- PKIECtrl15.dpk
- PKIEDB15.dpk

I then retested my exe with the new bpl files.
I still get an access violation.

Sincerely,
Steven Aertssen
fab Posted - Jun 20 2013 : 07:16:42
Hi,
many thanks for the useful file.
Next minor release will fix this problem. If you want to patch it now please open iedicom.pas and locate the rows (in ReadTag function):
....
          case element of
            $0002:  // Samples per Pixel
              SamplesPerPixel := dataint;
            $0004:  // photometric interpretation
              PhotometricInterpretation := AnsiString(data);
....

before the "case" statement insert:

if tags = IOParams.DICOM_Tags then


Hope this helps.