Issue 26061 - User defined Struct crashes OOo when it contains a syntax error
Summary: User defined Struct crashes OOo when it contains a syntax error
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Linux, all
: P3 Trivial
Target Milestone: ---
Assignee: ab
QA Contact: issues@api
URL:
Keywords:
: 33666 (view as issue list)
Depends on:
Blocks:
 
Reported: 2004-03-02 23:59 UTC by andrew
Modified: 2013-02-24 21:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description andrew 2004-03-02 23:59:19 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
Comment 1 ab 2004-03-22 13:28:24 UTC
.
Comment 2 ab 2004-08-04 10:45:03 UTC
Fixed
Comment 3 ab 2004-08-04 10:49:14 UTC
-> OOo 2.0
Comment 4 b.osi.ooo 2004-08-26 17:18:24 UTC
verified in cws on linux, doesn't crash anymore
Comment 5 ab 2004-09-02 09:33:35 UTC
*** Issue 33666 has been marked as a duplicate of this issue. ***
Comment 6 ab 2005-01-04 14:03:19 UTC
Checked in src680 m66 -> Closed