I'm new to FP even if I programmed in Basic and BP before.

I tried some stuff like this :

[pascal]
Unit MyUnit;

{$MODE DELPHI}


INTERFACE

uses classes;

Type TMyObj = class
Public
a : Integer;
End;

IMPLEMENTATION

End.
[/pascal]

...and the test program...

[pascal]

Program MyBuggyProgram;
{$MODE DELPHI}
uses classes, crt;

Var
MyObj : TMyObj;

Begin

clrscr;
Write(MyObj.a); // SIGSEGV
Readkey;

End.


[/pascal]

You'll get SIGSEGV. How do I do this correctly?

Thx in advance.

________________
Regards,
Eduard