View Issue Details

IDProjectCategoryView StatusLast Update
0004004JEDI VCL00 JVCL Componentspublic2006-11-22 11:52
ReporterykamiAssigned ToAHUser 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version 
Summary0004004: JvBackground - AV occurs when delete a component in form designer.
DescriptionAccess violation occurs when I delete a JvBackground component after having registered a component with a Clients property, and IDE crashes.
Additional Informationreproduction procedure:
1. Create new VCL Form Application.
2. Put the JvBackgound component.
3. Put the GroupBox.
4. Add GroupBox1 to Clients property of JvBackground.
5. Delete JvBackgound component.
TagsNo tags attached.

Activities

2006-11-22 09:39

 

JvBackgrounds.patch (348 bytes)
Index: JvBackgrounds.pas
===================================================================
--- JvBackgrounds.pas	(revision 11023)
+++ JvBackgrounds.pas	(working copy)
@@ -1756,6 +1756,7 @@
 destructor TJvBackground.Destroy;
 begin
   DeallocateHWnd(FHandle);
+  FClients.Clear;
   FClients.Free;
   Backgrounds.Remove(Self);
   FImage.Free;
JvBackgrounds.patch (348 bytes)

AHUser

2006-11-22 11:52

developer   ~0010441

Fixed in SVN.

I haven't used you patch because the actual bug is that the TJvBackgroundClients.Destroy doesn't call it's own Clear implementation. (what your patch does from outside the class)

Issue History

Date Modified Username Field Change
2006-11-22 09:39 ykami New Issue
2006-11-22 09:39 ykami File Added: JvBackgrounds.patch
2006-11-22 11:52 AHUser Status new => resolved
2006-11-22 11:52 AHUser Resolution open => fixed
2006-11-22 11:52 AHUser Assigned To => AHUser
2006-11-22 11:52 AHUser Note Added: 0010441