Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / 100% machine code with Line Numbers?

Author
Message
MatriX
21
Years of Service
User Offline
Joined: 19th Oct 2003
Location: Deer Park, New York
Posted: 11th Sep 2006 10:17
I asked a question a long time ago and I'm still not clear on it really.

If DBPro creates 100% machine code - how is it that a runtime error returns a line number error?

For example - "Runtime Error 506 - Could Not Load Image at line 200"

How does it know what line number the error was at after it was compiled into machine code?

Thank you TGC for creating such amazing products!

Success does not come with meeting the minimum requirements.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 11th Sep 2006 23:02
It's easy.

The code checks to see if an error occurred by simply checking if a certain memory location contains a non-zero value. If it does, the code moves the line number into another memory location and then jumps to the error-recovery code to end the program. Finally, the program uses the error number stored in the error memory location as a lookup into a table containing the error string.

Login to post a reply

Server time is: 2024-11-27 07:42:06
Your offset time is: 2024-11-27 07:42:06