View Issue Details

IDProjectCategoryView StatusLast Update
0002042JEDI VCL00 JVCL Componentspublic2004-08-11 10:59
ReporteranonymousAssigned Toobones 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0002042: DoAutoSizeColumns
DescriptionWhen a grid (TJvDBUltimGrid for example) is on a MDI form and the application is terminated by main form an error occurred. On the destroy of the MDI form, the dataset of the data for the grid is freed, this causes a layout change (in TJvDBGrid).
The Parent.ClientWidth is not accessible and generate an exception EInvalidOperation "Cannot create form. No MDI forms are currently active". The Parent is still the MDI form but the properties Client*** are not available.
A solution for this bug is maybe to check is the Parent is nil.
TagsNo tags attached.

Activities

anonymous

2004-08-09 01:48

viewer   ~0004971

(Solved)
First destroy the MDI forms so the Parent exists when the method is called.

obones

2004-08-11 10:59

administrator   ~0004989

This is solved in the latest CVS version of JvDBGrid.pas

Issue History

Date Modified Username Field Change
2004-08-09 01:27 anonymous New Issue
2004-08-09 01:48 anonymous Note Added: 0004971
2004-08-11 10:59 obones Status new => resolved
2004-08-11 10:59 obones Resolution open => fixed
2004-08-11 10:59 obones Assigned To => obones
2004-08-11 10:59 obones Note Added: 0004989