--> how could damage (access violation) extend thàt far from just adding a simple line.
-->if ColorDialog.Execute then LinkColor.Color := ColorDialog.Color;
For example if ColorDialog is nil at the first call (on ide loading) calling this line gives an AV
Try changing the line to
If Assigned(ColorDialog) then
if ColorDialog.Execute then LinkColor.Color := ColorDialog.Color;
I don't know about this LinkColor.I assume that it is your vcl so it's already assigned, but take care of this also
F68 ;-)
Main Topics
Browse All Topics





by: Ferruccio68Posted on 2004-09-07 at 03:44:29ID: 11995319
Maybe you made some modification in a vcl that use vcl70.bpl and on IDE loading cause the exception (like a call to a nil or something else) or simplyhave installed some new bugged vcl, but with these infos it's hard to find a quick solution.
I suggest to you to use MadExcept ( http://www.madshi.net/ ) to have a full log for these exceptions and understand where it occurs....
F68 ;-)