View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001598||JEDI VCL||00 JVCL Components||public||2004-04-07 09:39||2004-06-25 05:02|
|Target Version||Fixed in Version|
|Summary||0001598: JvDocking: Access Violation when terminating|
|Description||If you have windows docked on top of each other (showing tabs) there is an exception if you close your program and the docking components are freed, in JvDockVIDStyle.pas, line 2578.|
|Tags||No tags attached.|
||I found the bug in my code - it was because I freed all forms manually at termination. Not sure if you can still call it a bug in JvDocking however...|
It depends. If you free the forms before JvDocking is through with them, then it's not a bug ( for example, if you use a JvAppStorage and free the forms before it has saved the forms to storage), it's your code that is the problem.
If you free them and can verify that jvDocking doesn't need to access them after that, then it is a bug.
Well, it acutally happens while freeing. The exeception message says "Cannot focus an invisible or disabled window.", in JvDockSupportControl, line 2103, SelectNextPage().
So I think the problem is the following: You have a TabDockHost with two tabs. Now you free the form with the tab in the background - the corresponding tab still exists however. Then you free the first one, somehow SelectNextPage(), which wants to focus the - non existing - form.
|Could you post some code that shows this behavior? It must have something to do with when and how the forms are freed.|
||I do it in the project code, after Application.Run and uh, after Application.MainForm.Hide, which is there because shutdown takes some time. well, I guess it's because of that.|
|No reply, so assuming it works|
|2004-04-07 09:39||anonymous||New Issue|
|2004-04-07 11:22||anonymous||Note Added: 0003686|
||Note Added: 0003689|
||Status||new => assigned|
||Assigned To||=> user72|
|2004-04-07 23:25||anonymous||Note Added: 0003707|
||Note Added: 0003710|
|2004-04-08 06:32||anonymous||Note Added: 0003717|
||Status||assigned => resolved|
||Resolution||open => fixed|
||Note Added: 0004626|