View Issue Details

IDProjectCategoryView StatusLast Update
0005544JEDI VCL00 JVCL Componentspublic2012-09-10 14:15
ReporterkorecekAssigned Toobones 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version3.46 
Summary0005544: JvDockSupportControl.pas, BCB6 (D6), Docking and Access Violation (AV)
DescriptionI found out problem which is related to BCB6 and D6 in all probability (I don't know whether D6 do this as well).

I have problem with dockable forms:
1. If I want to move non-docked form on my screen it shows an AV
   (Access Violation) message. No docking is required here.
2. If I want to undock actually docked form (to be floating) it also
   shows the AV message.

I decided to compare older versions of the
JvDockSupportControl.pas and I found there difference in
a "DoFloatForm(Control: TControl)" procedure which is inserted
into a "DragDone(Drop: Boolean)" procedure where is called a
"DragObject.AlphaBlendedForm.Hide" procedure.

I decided to disable this line for BCB6 in the end.
See conditional compilation example below.
When I done it the Float Form AV disappeared.

Conditional compilation :
...
{$IFDEF COMPILER7_UP}
        DragObject.AlphaBlendedForm.Hide;
{$ENDIF !COMPILER7_UP}

Additional InformationExample is not need because standard JVCL example named "DockOptionDemo" which is also translated to C++ generates AV as well.

I also checked "DockOptionDemo" under BDS2006 (C++ and Delphi) and under
RAD Studio 2010 as well and there is not such strange behaviour of the demo.

This problem is related to issue:
  http://issuetracker.delphi-jedi.org/view.php?id=5297
which sold "JvDocking Floating form not drawing correctly " but the
BCB6 was not tested in all probability. ;-)
TagsNo tags attached.

Activities

obones

2012-06-12 10:04

administrator   ~0019892

Confirmed in C6 only

obones

2012-06-12 10:10

administrator   ~0019893

This is now fixed in SVN

Issue History

Date Modified Username Field Change
2011-04-05 08:08 korecek New Issue
2011-06-07 17:51 obones Status new => acknowledged
2012-06-12 10:04 obones Note Added: 0019892
2012-06-12 10:04 obones Status acknowledged => confirmed
2012-06-12 10:10 obones Note Added: 0019893
2012-06-12 10:10 obones Status confirmed => resolved
2012-06-12 10:10 obones Fixed in Version => Daily / SVN
2012-06-12 10:10 obones Resolution open => fixed
2012-06-12 10:10 obones Assigned To => obones
2012-09-10 14:15 obones Fixed in Version Daily / SVN => 3.46