close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 16 years ago

Last modified 16 years ago

#752 closed defect

crash when loading oza containing instances without Class definition — at Version 1

Reported by: Jorge Owned by: Víctor de Buen Remiro
Priority: highest Milestone: OOP Implementation
Component: OOP Version: head
Severity: major Keywords:
Cc:

Description (last modified by Jorge)

Evaluate file1.tol in one tol session then in other session evaluate file2.tol, the session 2 will fail with a segmentation fault because Class A is not defined.

file1.tol
============================

Class A {
  Real v = 1
};

A objA;

Real Ois.Store( [[ objA ]], "/tmp/objA.oza" );

file2.tol, to be executed in other sesion
===========================================

Set Include( "/tmp/objA.oza" );

Change History (1)

comment:1 Changed 16 years ago by Jorge

Description: modified (diff)
Note: See TracTickets for help on using tickets.