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
 TOpenImageEnDialog access violation DNG file but only under IDE

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
whisper1980 Posted - Jul 27 2021 : 20:08:01
When trying to open a DNG raw image file from a Samsung Galaxy S21+ using the TOpenImageEnDialog, I get an access violation in ielib64.dll, or ielib32.dll if running 32bit, when I just select the dng file (not even a double click or the open button, just single clicking the dng file). Running outside of the IDE it does not give an error.

It also only occurs the first time I click the file. Subsequent clicking or double-clicking of it does not produce an error (I only have the one DNG file though, and no preview is actually shown under the IDE or outside of it)

First chance exception at $00007FFBF775D630. Exception class $C0000005 with message 'c0000005 ACCESS_VIOLATION'. Process WhisperImageEditor.exe (1272)(26044)

:00007FFBF775D630 ; C:\Projects\WhisperReporterV2\Win64\Debug\ielib64.dll
:00007FFBF775C39B ; C:\Projects\WhisperReporterV2\Win64\Debug\ielib64.dll
ieraw.IEReadCameraRAWStream_libraw($10992A00,$EF39B90,$1098CCF0,$14B830,False)
ieraw.IEReadCameraRAWStream($10992A00,$EF39B90,$1098CCF0,$14B830,False)
imageenio.TImageEnIO.SyncLoadFromStreamRAW($10992A00,'C:\Users\efh20\Desktop\Sample S21 Images\Sample S21 Images\Pro.dng')
imageenio.TImageEnIO.LoadFromFileRAW('C:\Users\efh20\Desktop\Sample S21 Images\Sample S21 Images\Pro.dng')
imageenio.TImageEnIO.LoadFromFile('C:\Users\efh20\Desktop\Sample S21 Images\Sample S21 Images\Pro.dng',20)
imageenio.TImageEnIO.LoadFromFileAuto('C:\Users\efh20\Desktop\Sample S21 Images\Sample S21 Images\Pro.dng')
ieopensavedlg.TOpenImageEnDialog.LoadPreview(True,False)
ieopensavedlg.TOpenImageEnDialog.DoSelectionChange

Line 349 in ieraw.pas where it breaks is:
case librawimage.getType() of


While it does not error when running outside of the IDE, I do just get a black image. The call to ImageEnView1.IO.LoadFromFileTIFF(pFilename) returns that it has a single image, but perhaps the error prevents it from actually loading the image.

Another question... how do I know how many sub indexes there are? I see there is an ImageCount (TIFF_ImageCount), but no TIFF_SubCount or something along those lines.

ImageEn 10.0.1
Delphi 10.4.2

P.S. Windows does show the dng image as a thumbnail, and opens fine under the Photos app (weird though... it starts correctly as portrait and a second or two later shows rotated 90 degrees left).

Eric
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 04 2021 : 23:04:30
Thanks Eric, we'll have a fix in 10.1.1

Nigel
Xequte Software
www.imageen.com
xequte Posted - Jul 30 2021 : 15:50:49
Thanks Eric, I can reproduce the issue and we will investigate.


Nigel
Xequte Software
www.imageen.com
whisper1980 Posted - Jul 30 2021 : 13:34:14
I emailed you a link to the file.

Eric
xequte Posted - Jul 27 2021 : 23:59:12
Hi Eric

Can you post this DNG file or email it to me?

Nigel
Xequte Software
www.imageen.com