View Issue Details

IDProjectCategoryView StatusLast Update
0001598JEDI VCL00 JVCL Componentspublic2004-06-25 05:02
ReporteranonymousAssigned Touser72 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001598: JvDocking: Access Violation when terminating
DescriptionIf 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.
TagsNo tags attached.

Activities

anonymous

2004-04-07 11:22

viewer   ~0003686

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...

user72

2004-04-07 12:32

  ~0003689

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.

anonymous

2004-04-07 23:25

viewer   ~0003707

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.

user72

2004-04-08 04:41

  ~0003710

Could you post some code that shows this behavior? It must have something to do with when and how the forms are freed.

anonymous

2004-04-08 06:32

viewer   ~0003717

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.

user72

2004-06-25 05:02

  ~0004626

No reply, so assuming it works

Issue History

Date Modified Username Field Change
2004-04-07 09:39 anonymous New Issue
2004-04-07 11:22 anonymous Note Added: 0003686
2004-04-07 12:32 user72 Note Added: 0003689
2004-04-07 12:39 user72 Status new => assigned
2004-04-07 12:39 user72 Assigned To => user72
2004-04-07 23:25 anonymous Note Added: 0003707
2004-04-08 04:41 user72 Note Added: 0003710
2004-04-08 06:32 anonymous Note Added: 0003717
2004-06-25 05:02 user72 Status assigned => resolved
2004-06-25 05:02 user72 Resolution open => fixed
2004-06-25 05:02 user72 Note Added: 0004626