| Anonymous | Login | Signup for a new account | 2010-09-09 13:21 CEST |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
| 0005094 | [JEDI VCL] 00 JVCL Components | major | always | 2010-01-06 15:57 | 2010-06-07 17:53 | ||
| Reporter | migajek | View Status | public | ||||
| Assigned To | AHUser | ||||||
| Priority | normal | Resolution | fixed | ||||
| Status | resolved | Product Version | Daily / SVN | ||||
| Summary | 0005094: JvDocking - ManualTabDock crashes if application's Main Form is uninitialized yet. | ||||||
| Description |
ManualTabDock functions does it: if DockClient1.DockState = JvDockState_Docking then begin ScreenPos := Application.MainForm.ClientRect // Just making it float Form1.ManualFloat(ScreenPos); end; which obviously fails in case MainForm is not initialized yet (like in mine case). Thus it should be replaced with following workaround (I'm not sure if it is correct as I don't get the idea of ManualFloating it, thus I created some random rect) if DockClient1.DockState = JvDockState_Docking then begin if Application.MainForm <> nil then ScreenPos := Application.MainForm.ClientRect // Just making it float temporarily. else ScreenPos := Rect(10, 10, 250, 250); Form1.ManualFloat(ScreenPos); end; anyway it doesn't cause Access Violation anymore. migajek |
||||||
| Additional Information |
if DockClient1.DockState = JvDockState_Docking then begin if Application.MainForm <> nil then ScreenPos := Application.MainForm.ClientRect // Just making it float temporarily. else ScreenPos := Rect(10, 10, 250, 250); //it doesn't make sense probably Form1.ManualFloat(ScreenPos); end; |
||||||
| Tags | No tags attached. | ||||||
| Attached Files |
|
||||||
|
|
|||||||
| Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |