I_am_root
29-07-2006, 01:19 AM
I'm new to FP even if I programmed in Basic and BP before.
I tried some stuff like this :
Unit MyUnit;
{$MODE DELPHI}
INTERFACE
uses classes;
Type TMyObj = class
Public
a : Integer;
End;
IMPLEMENTATION
End.
...and the test program...
Program MyBuggyProgram;
{$MODE DELPHI}
uses classes, crt;
Var
MyObj : TMyObj;
Begin
clrscr;
Write(MyObj.a); // SIGSEGV
Readkey;
End.
You'll get SIGSEGV. How do I do this correctly?
Thx in advance.
________________
Regards,
Eduard
I tried some stuff like this :
Unit MyUnit;
{$MODE DELPHI}
INTERFACE
uses classes;
Type TMyObj = class
Public
a : Integer;
End;
IMPLEMENTATION
End.
...and the test program...
Program MyBuggyProgram;
{$MODE DELPHI}
uses classes, crt;
Var
MyObj : TMyObj;
Begin
clrscr;
Write(MyObj.a); // SIGSEGV
Readkey;
End.
You'll get SIGSEGV. How do I do this correctly?
Thx in advance.
________________
Regards,
Eduard