Hi,
I get this error from a very simple class:
Runtime error 216 at 0x0805A735
0x0805A735
0x080481FF TCONFIG__PRINT, line 29 of configclass.pas 0x0805BE35 main, line 29 of forum.pas
0x080480B0
Any ideas ?
cheers
James

Mailing lists / fpc-pascal / 2003-06
6 messages · 2 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi,
I get this error from a very simple class:
Runtime error 216 at 0x0805A735
0x0805A735
0x080481FF TCONFIG__PRINT, line 29 of configclass.pas 0x0805BE35 main, line 29 of forum.pas
0x080480B0
Any ideas ?
cheers
James
You should also show the forum.pas file.
The constructor Create should be in the 'public' section of the class, not in the first (private) section.
Michael.
Ahh I think that's where my error lies. (stupid me)
cheers
James
Actually it makes no difference, so I'll attach all relevant files.
cheers
James
You forget to do a load statement before the print. Actually, I think you swapped init and load. In init you should create the class instance, and in load you should load whatever values are needed.
You skipped the creation step in your code.
Michael.
God damn it! You're right. I guess you get that runtime error when trying to access a non-existant class in memory ?
Thank you Michael, I must have been braindead.
cheers
James