Apache OpenOffice (AOO) Bugzilla – Issue 26061
User defined Struct crashes OOo when it contains a syntax error
Last modified: 2013-02-24 21:06:42 UTC
I am using OOo 1.1.1rc I have verified that user defined structures work, but when I initially tried my own user defined structure, OOo would completely crash if I had an incorrectly defined struct. The following example contains the error. Be warned, do NOT save the library that contains this code because the only way that you will be able to delete it is to manually edit the library on disk. The very act of opening a library that contains this code will lock OOo 1.1.1rc on my linux computer. Of course, remove the extra Dim statements and this works just fine! Good Job on that AB! Type PersonType Dim FirstName As String Dim LastName As String End Type Sub ExampleCreateNewType Dim Person As PersonType Person.FirstName = "Andrew" Person.LastName = "Pitonyak" PrintPerson(Person) End Sub Sub PrintPerson(x) Print "Person = " & x.FirstName & " " & x.LastName End Sub
.
Fixed
-> OOo 2.0
verified in cws on linux, doesn't crash anymore
*** Issue 33666 has been marked as a duplicate of this issue. ***
Checked in src680 m66 -> Closed