Where do I find errorcodes in general and this one in particular ?
I had a look into /usr/share/doc/packages/gpc etc witout finding anything ... : -)
Thanks Douglas
P.S. It s an error which is not really reproduceable ... so I would like to know where to look closer ?!
Douglas Brookmann wrote:
Where do I find errorcodes in general and this one in particular ?
In the GPC sources: p/rts/error.pas. :-)
I had a look into /usr/share/doc/packages/gpc etc witout finding anything ... : -)
The error codes are intentionally undocumented because they're likely to change in the future. The error message which is output on program abortion explains the error. If you catch an error with `{$I-}', you can get at the message with `GetErrorMessage' (unit GPC).
If you want to test for specific errors in program code, you can use the E... constants in the unit GPC (look for ERead etc.). There are only few of them currently, but you can convince us to add more of them.
Sometime in the future, this should be done with an exception handling mechanism where the errors are represented by objects, so we won't put too much effort in the current concept.
P.S. It s an error which is not really reproduceable ... so I would like to know where to look closer ?!
BTW, 466 is (currently ;-) EWrite, i.e. an error when writing something to a file (or device etc.). Quite possible that this is not easily reproducible.
Frank