cdew / ccr-exif

Automatically exported from code.google.com/p/ccr-exif
0 stars 0 forks source link

Access Violation #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

EAccessViolation - Access violation at address 0044379D in module 
'ResavingTest.exe'. Read of address 00000008.

Appears randomly. 

_______________

What version of the product are you using? On what operating system?

Delphi XE
Win 7/32 bit

_______________

Please provide any additional information below.

It appears in your demos. However, this tiny piece of code should also 
reproduce the problem:

function ConvertJpgExif2Bmp(CONST FileName: string ): TBitmap;
VAR JPG: ccr.Exif.TJpegImageEx;
begin
 JPG:= ccr.Exif.TJpegImageEx.Create;
 TRY
   JPG.LoadFromFile(FileName);
   Result:= NIL;
 FINALLY
   FreeAndNil(JPG);  //Crash here
 end;
end;

Under normal conditions, the error is hard to reproduce. It appears from time 
to time. HOWEVER, it can be reproduced ANYTIME if you replace in your library 
all .Free instances with FreeAndNil. 

Original issue reported on code.google.com by CubicDes...@gmail.com on 6 Feb 2013 at 3:23

GoogleCodeExporter commented 9 years ago
Call Stack Information:
--------------------------------------------------------------------------------
---------------
|Address |Module          |Unit             |Class       |Procedure/Method      
      |Line   |
--------------------------------------------------------------------------------
---------------
|Running Thread: ID=4472; Priority=0; Class=; [Main]                            
              |
|-------------------------------------------------------------------------------
--------------|
|0056BE61|ResavingTest.exe|CCR.Exif.IPTC.pas|Exif        |IPTC.TIPTCTag.Destroy 
      |382[1] |
|0056C2FE|ResavingTest.exe|CCR.Exif.IPTC.pas|Exif        
|IPTC.TIPTCSection.Destroy   |563[1] |
|0056D58E|ResavingTest.exe|CCR.Exif.IPTC.pas|Exif        
|IPTC.TIPTCData.Destroy      |1045[2]|
|00593B1E|ResavingTest.exe|CCR.Exif.pas     |Exif        |TJPEGImageEx.Destroy  
      |5868[1]|
|0059BBA3|ResavingTest.exe|ResaveForm.pas   |            |DoJpegImageEx         
      |240[7] |
|0059BB48|ResavingTest.exe|ResaveForm.pas   |            |DoJpegImageEx         
      |233[0] |
|0059BCC4|ResavingTest.exe|ResaveForm.pas   
|TfrmSaveTest|btnCreateNewImageClick      |264[17]|
|005A30E1|ResavingTest.exe|ResavingTest.dpr |            |                      
      |25[5]  |

Original comment by CubicDes...@gmail.com on 6 Feb 2013 at 3:34

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi
Any news on about this bug?

Original comment by CubicDes...@gmail.com on 10 May 2014 at 3:16