Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | OOo does not discard changes when file is closed | ||||||
---|---|---|---|---|---|---|---|
Product: | Base | Reporter: | drewjensen.inbox | ||||
Component: | code | Assignee: | AOO issues mailing list <issues> | ||||
Status: | ACCEPTED --- | QA Contact: | |||||
Severity: | Trivial | ||||||
Priority: | P4 | CC: | issues | ||||
Version: | OOo 2.2 | ||||||
Target Milestone: | --- | ||||||
Hardware: | All | ||||||
OS: | Windows XP | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Attachments: |
|
Description
drewjensen.inbox
2007-04-27 05:09:32 UTC
Created attachment 44722 [details]
example databae
i can repro that in a current version You are correct. Just tried this on 2.2 with the same results. Adjusting the version information appropriately. P4 and OOo 2.x somehow contradict each other ... The problem here is that the form wizard is written in Java, which "unfortunately" has this thing called garbage collection. References to the database document are not discarded when the wizard is finished, but only some time later, when the JVM's garbage collection runs (which might be whenever). Thus, the document is not really closed. We currently have no mechanism in place to prevent this. Perhaps we should declare the application window being the owner of the document. Currently, it is not really, since it is allowed to programmatically obtain a document reference, close the application, and continue working with the document. Not sure how to best solve this. I'm not sure I follow you totally. After reading your explanation I tried the following: Opened a Base file Started the Form Wizard - did not finish Closed the Base file Yes the form wizard is still open and running, but you can't finish. There is no way to save the form. So what is the point, unless this be entered as a new defect? This is also a different behavior from when an existing form is opened for data entry or in design mode. In either of those cases closing the Base file also closes the form. What you describe now is a different bug - you should not be able to close the Base doc when the wizard is still running. The original bug, as I understand it, means that after the wizard has run, the Db doc is kept in memory, not discarding any changes, even if you close its UI. Right? The note above was more a technical note about why this (probably) happens: Because some Java object is still alive, and thus implicitly keeps the DB doc alive. Reset assigne to the default "issues@openoffice.apache.org". |