To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=53791
Issue #:|53791
Summary:|shortening a macro in an embedded form documents
|corrupts the macro stream in the package
Component:|Database access
Version:|680m124
Platform:|All
URL:|
OS/Version:|All
Status:|NEW
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|DEFECT
Priority:|P3
Subcomponent:|none
Assigned to:|mav
Reported by:|fs
------- Additional comments from [EMAIL PROTECTED] Thu Aug 25 07:42:12 -0700
2005 -------
- open the attached database document
- double-click the form therein to open it for data entry
- close the form (this was just to verify that the form opens without any
problem)
- open the form therein for editing (context menu -> Edit)
(you'll be asked whether to execute the macros therein, approve this)
- Tools|Macros|Organize Macros|OpenOffice.org Basic
- select the macro "form/Standard/Module1", and press Edit to open the Basic IDE
for the embedded macro module
- remove some text from the macro, for instance the complete else-branch from
the inner if condition
- save the Basic macro, close the Basic IDE
- close the form
- save the database document, close it
- exit OOo, restart it
- open the database document again
- double-click the form therein to open it for data entry (approve macro
execution)
=> the form loads, then an error message is shown:
Error loading BASIC of document "Module1.xml:
General Error.
General input/output error.
fs->mav: Saving the macro corrupted the Module1.xml in the database form. To
verify this, just unzip the .odb file after you saved the database, and look
into forms/Obj11/Basic/Standard/Module1.xml. You will find the following:
.
.
.
</script:module>"crash OOo ...")
REM .ismodified = true
end if
end if
end with
End Sub
</script:module>
Note that the *first* </script:module> tag is already the end of the XML stream
- everything after this is just crap, which seems to be a remaint of the
previous version of the stream. To me, this sounds as if some zero-terminated
buffer had been truncated to a shorter length, without also moving the
terminating 0 character, or something like this ....
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]