Error Access Violation in Delphi XE7

0

I worked with Form and loaded few pictures.Run the program.After that errors appeared.And when i try to do smth with my pictures these errors also may appeare.

Error :

"Invalid pointer operation"

"Access Violation at address 5059DCDD in module 'vcl210.bpl' .Read of address 00000000"

Details:

 

[5059DCDD]{vcl210.bpl  } Vcl.Graphics.TResourceManager.FreeResource (Line 1860, "Vcl.Graphics.pas" + 15) + $2

[5005F000]{rtl210.bpl  } System.TObject.FreeInstance (Line 15650, "System.pas" + 2) + $2

[50059E92]{rtl210.bpl  } System.ErrorAt (Line 5324, "System.pas" + 3) + $4

[50059ED6]{rtl210.bpl  } System.Error (Line 5335, "System.pas" + 1) + $7

[5005F000]{rtl210.bpl  } System.TObject.FreeInstance (Line 15650, "System.pas" + 2) + $2

[5005F85A]{rtl210.bpl  } System.@ClassDestroy (Line 16993, "System.pas" + 0) + $2

[5059E531]{vcl210.bpl  } Vcl.Graphics.TFont.Destroy (Line 2427, "Vcl.Graphics.pas" + 5) + $6

[5005F108]{rtl210.bpl  } System.TObject.Free (Line 15718, "System.pas" + 1) + $4

[5059F74D]{vcl210.bpl  } Vcl.Graphics.TCanvas.Destroy (Line 3708, "Vcl.Graphics.pas" + 4) + $3

[505BF7B8]{vcl210.bpl  } Vcl.Controls.TControlCanvas.Destroy (Line 5022, "Vcl.Controls.pas" + 2) + $6

[5005F108]{rtl210.bpl  } System.TObject.Free (Line 15718, "System.pas" + 1) + $4

[505CD5ED]{vcl210.bpl  } Vcl.Controls.TCustomControl.Destroy (Line 13818, "Vcl.Controls.pas" + 1) + $6

[5005F108]{rtl210.bpl  } System.TObject.Free (Line 15718, "System.pas" + 1) + $4

[520F1E1A]{vcldesigner210.bpl} VCLSurface.TVclDesignSurface.CancelDragHint (Line 4374, "VCLSurface.pas" + 9) + $0

[520F182B]{vcldesigner210.bpl} VCLSurface.TVclDesignSurface.DragHintMouseMessage (Line 4242, "VCLSurface.pas" + 27) + $2

[520EFC0A]{vcldesigner210.bpl} VCLSurface.TVclDesignSurface.IsDesignMsg (Line 3456, "VCLSurface.pas" + 56) + $14

[5005F532]{rtl210.bpl  } System.@CallDynaInst (Line 16299, "System.pas" + 4) + $0

[520EF8AA]{vcldesigner210.bpl} VCLSurface.TVclDesignSurface.IsDesignMsg (Line 3401, "VCLSurface.pas" + 1) + $9

[5005F3E6]{rtl210.bpl  } System.@IsClass (Line 16131, "System.pas" + 1) + $8

[505C299B]{vcl210.bpl  } Vcl.Controls.TControl.WndProc (Line 7145, "Vcl.Controls.pas" + 4) + $21

[5005F3E6]{rtl210.bpl  } System.@IsClass (Line 16131, "System.pas" + 1) + $8

[505C299B]{vcl210.bpl  } Vcl.Controls.TControl.WndProc (Line 7145, "Vcl.Controls.pas" + 4) + $21

[5005F87D]{rtl210.bpl  } System.@AfterConstruction (Line 16999, "System.pas" + 2) + $5

[5006B55C]{rtl210.bpl  } System.Types.TRect.Contains (Line 1423, "System.Types.pas" + 0) + $0

[505C6DB0]{vcl210.bpl  } Vcl.Controls.GetControlAtPos (Line 9773, "Vcl.Controls.pas" + 4) + $13

[505C6EDA]{vcl210.bpl  } Vcl.Controls.TWinControl.ControlAtPos (Line 9796, "Vcl.Controls.pas" + 13) + $E

[505C2850]{vcl210.bpl  } Vcl.Controls.TControl.Perform (Line 7010, "Vcl.Controls.pas" + 10) + $8

[505C6FA8]{vcl210.bpl  } Vcl.Controls.TWinControl.IsControlMouseMsg (Line 9820, "Vcl.Controls.pas" + 15) + $29

[505C755E]{vcl210.bpl  } Vcl.Controls.TWinControl.WndProc (Line 9989, "Vcl.Controls.pas" + 104) + $6

[5016E218]{rtl210.bpl  } System.Classes.StdWndProc (Line 16600, "System.Classes.pas" + 8) + $0

[5070CE98]{vcl210.bpl  } Vcl.Forms.TCustomForm.WndProc (Line 4427, "Vcl.Forms.pas" + 206) + $5

[520F870F]{vcldesigner210.bpl} VCLFormContainer.TControlSizer.ControlWndProc (Line 313, "VCLFormContainer.pas" + 33) + $C

[505C6D1C]{vcl210.bpl  } Vcl.Controls.TWinControl.MainWndProc (Line 9750, "Vcl.Controls.pas" + 3) + $6

[5016E218]{rtl210.bpl  } System.Classes.StdWndProc (Line 16600, "System.Classes.pas" + 8) + $0

[5071635B]{vcl210.bpl  } Vcl.Forms.TApplication.ProcessMessage (Line 10352, "Vcl.Forms.pas" + 23) + $1

[5071639E]{vcl210.bpl  } Vcl.Forms.TApplication.HandleMessage (Line 10382, "Vcl.Forms.pas" + 1) + $4

[507166D1]{vcl210.bpl  } Vcl.Forms.TApplication.Run (Line 10520, "Vcl.Forms.pas" + 26) + $3

Responses (2)
  • Accepted Answer

    Wednesday, September 13 2017, 12:11 PM - #Permalink
    0

    Your code is probably releasing/freeing a resource that it doesn't own, so when the form is unloaded,it frees resources that are no longer valid.  Showing the error isn't really helpful, you probably need to post your code where you are loading and releasing the images, and where they are manipulated.

    The reply is currently minimized Show
  • Accepted Answer

    Sunday, September 10 2017, 07:03 AM - #Permalink
    0

    Same error under DX 10.2.1 :

    [5005F72C]{rtl250.bpl  } System.TObject.FreeInstance (Line 16922, "System.pas" + 2) + $2
    [5005A42E]{rtl250.bpl  } System.ErrorAt (Line 5669, "System.pas" + 3) + $4
    [5005A472]{rtl250.bpl  } System.Error (Line 5680, "System.pas" + 1) + $7
    [5005F72C]{rtl250.bpl  } System.TObject.FreeInstance (Line 16922, "System.pas" + 2) + $2
    [50060016]{rtl250.bpl  } System.@ClassDestroy (Line 18289, "System.pas" + 0) + $2
    [50A8F31D]{vcl250.bpl  } Vcl.Graphics.TFont.Destroy (Line 2451, "Vcl.Graphics.pas" + 5) + $6
    [5005F8A8]{rtl250.bpl  } System.TObject.Free (Line 16985, "System.pas" + 1) + $4
    [50A905C1]{vcl250.bpl  } Vcl.Graphics.TCanvas.Destroy (Line 3732, "Vcl.Graphics.pas" + 4) + $3
    [50AB1640]{vcl250.bpl  } Vcl.Controls.TControlCanvas.Destroy (Line 5065, "Vcl.Controls.pas" + 2) + $6
    [5005F8A8]{rtl250.bpl  } System.TObject.Free (Line 16985, "System.pas" + 1) + $4
    [50ABFB1D]{vcl250.bpl  } Vcl.Controls.TCustomControl.Destroy (Line 14079, "Vcl.Controls.pas" + 1) + $6
    [5005F8A8]{rtl250.bpl  } System.TObject.Free (Line 16985, "System.pas" + 1) + $4
    [525B2C6A]{vcldesigner250.bpl} VCLSurface.TVclDesignSurface.CancelDragHint (Line 4474, "VCLSurface.pas" + 9) + $0
    [525AED20]{vcldesigner250.bpl} VCLSurface.TVclDesignSurface.InstanceRemoved (Line 2834, "VCLSurface.pas" + 1) + $2
    [525B11FA]{vcldesigner250.bpl} VCLSurface.TVclDesignSurface.Notification (Line 3828, "VCLSurface.pas" + 17) + $6
    [50BF6D22]{vcl250.bpl  } Vcl.Forms.TCustomForm.Notification (Line 3871, "Vcl.Forms.pas" + 42) + $C
    [211A793D]{designide250.bpl} Proxies.NotificationHook (Line 311, "Proxies.pas" + 8) + $B
    [5016C067]{rtl250.bpl  } System.Classes.TComponent.RemoveFreeNotifications (Line 15997, "System.Classes.pas" + 3) + $1
    [5016BE90]{rtl250.bpl  } System.Classes.TComponent.Destroy (Line 15926, "System.Classes.pas" + 2) + $6
    [50AB1F65]{vcl250.bpl  } Vcl.Controls.TControl.Destroy (Line 5427, "Vcl.Controls.pas" + 24) + $6
    [5005F72C]{rtl250.bpl  } System.TObject.FreeInstance (Line 16922, "System.pas" + 2) + $2
    [50060016]{rtl250.bpl  } System.@ClassDestroy (Line 18289, "System.pas" + 0) + $2
    [501531BB]{rtl250.bpl  } System.Classes.TPersistent.Destroy (Line 5553, "System.Classes.pas" + 3) + $A
    [50AB6A4B]{vcl250.bpl  } Vcl.Controls.TWinControl.Destroy (Line 8510, "Vcl.Controls.pas" + 41) + $9
    [50ABFB28]{vcl250.bpl  } Vcl.Controls.TCustomControl.Destroy (Line 14080, "Vcl.Controls.pas" + 2) + $6
    [5005F8A8]{rtl250.bpl  } System.TObject.Free (Line 16985, "System.pas" + 1) + $4
    [525B2C6A]{vcldesigner250.bpl} VCLSurface.TVclDesignSurface.CancelDragHint (Line 4474, "VCLSurface.pas" + 9) + $0
    [525B2621]{vcldesigner250.bpl} VCLSurface.TVclDesignSurface.DragHintMouseMessage (Line 4322, "VCLSurface.pas" + 7) + $2
    [525B08FA]{vcldesigner250.bpl} VCLSurface.TVclDesignSurface.IsDesignMsg (Line 3526, "VCLSurface.pas" + 56) + $14
    [5005FCEE]{rtl250.bpl  } System.@CallDynaInst (Line 17589, "System.pas" + 4) + $0
    [5005FBA2]{rtl250.bpl  } System.@IsClass (Line 17421, "System.pas" + 1) + $8
    [50AB498F]{vcl250.bpl  } Vcl.Controls.TControl.WndProc (Line 7239, "Vcl.Controls.pas" + 4) + $21
    [5005FBA2]{rtl250.bpl  } System.@IsClass (Line 17421, "System.pas" + 1) + $8
    [50AB498F]{vcl250.bpl  } Vcl.Controls.TControl.WndProc (Line 7239, "Vcl.Controls.pas" + 4) + $21
    [5005A247]{rtl250.bpl  } System.@ReallocMem (Line 4941, "System.pas" + 91) + $0
    [5006E460]{rtl250.bpl  } System.Types.TRect.Contains (Line 1649, "System.Types.pas" + 0) + $0
    [50AB8E30]{vcl250.bpl  } Vcl.Controls.GetControlAtPos (Line 9890, "Vcl.Controls.pas" + 4) + $13
    [3212AE0E]{CyTestComponents.bpl} CyMultiMeter.TCyMultimeter.WndProc (Line 1071, "CyMultiMeter.pas" + 1) + $6
    [50AB4844]{vcl250.bpl  } Vcl.Controls.TControl.Perform (Line 7104, "Vcl.Controls.pas" + 10) + $8
    [50AB9028]{vcl250.bpl  } Vcl.Controls.TWinControl.IsControlMouseMsg (Line 9937, "Vcl.Controls.pas" + 15) + $29
    [50AB95DE]{vcl250.bpl  } Vcl.Controls.TWinControl.WndProc (Line 10106, "Vcl.Controls.pas" + 104) + $6
    [50BF7FC5]{vcl250.bpl  } Vcl.Forms.TCustomForm.WndProc (Line 4548, "Vcl.Forms.pas" + 209) + $5
    [525B9BDB]{vcldesigner250.bpl} VCLFormContainer.TControlSizer.ControlWndProc (Line 344, "VCLFormContainer.pas" + 33) + $C
    [5005F9E8]{rtl250.bpl  } System.TObject.GetInterface (Line 17311, "System.pas" + 8) + $A
    [5005FA31]{rtl250.bpl  } System.TObject.GetInterface (Line 17318, "System.pas" + 15) + $10
    [50AB8D9C]{vcl250.bpl  } Vcl.Controls.TWinControl.MainWndProc (Line 9867, "Vcl.Controls.pas" + 3) + $6
    [5016E844]{rtl250.bpl  } System.Classes.StdWndProc (Line 17365, "System.Classes.pas" + 9) + $2
    [50C01963]{vcl250.bpl  } Vcl.Forms.TApplication.ProcessMessage (Line 10610, "Vcl.Forms.pas" + 23) + $1
    [50C019A6]{vcl250.bpl  } Vcl.Forms.TApplication.HandleMessage (Line 10640, "Vcl.Forms.pas" + 1) + $4
    [50C01CD9]{vcl250.bpl  } Vcl.Forms.TApplication.Run (Line 10778, "Vcl.Forms.pas" + 26) + $3
    [0050688A]{bds.exe     } bds.bds (Line 212, "" + 7) + $7

    The reply is currently minimized Show
Your Reply

Please login to post a reply