<blockquote class="quote light-black dark-border-color"><div class="quote light-border-color">
<div class="quote-author" style="font-weight: bold;">John Youngquist wrote:</div>
<div class="quote-message">
When you enable things like range checking. How do you identify
when an exception has occurred and what it means?
</div>
</div></blockquote>
AFAIK a checking code is generated for every error-possible code. That's why it seems a little slower when you compile programs with checkings enabled. You can try to get the assembler output by specifying -a<lnrt> compiler option. Try program below and check it.
<code><pre>
var
i: Byte;
begin
i:=0;
repeat
Inc(i);
until i>255;
end.
</pre></code>
<blockquote class="quote light-black dark-border-color"><div class="quote light-border-color">
<div class="quote-author" style="font-weight: bold;">John Youngquist wrote:</div>
<div class="quote-message">
I see messages like "Unhandled exception occurred at $hex address"
then a bunch more $hex address'
I don't know what to do with these numbers.
</div>
</div></blockquote>
I usually use that for low level debugging. That it, to get what kind of instruction happen at that address that cause the exception.
<br><hr align="left" width="300">
View this message in context: <a href="http://www.nabble.com/Question-on-exceptions-tp19137422p19139221.html">Re: Question on exceptions</a><br>
Sent from the <a href="http://www.nabble.com/Free-Pascal---General-f683.html">Free Pascal - General mailing list archive</a> at Nabble.com.<br>