On 14/04/2014 11:49, FreeMan wrote:

Hello,
I get this errors some time, I can not handle this error so I don't know why raised.

Project myproject raised exception class 'External: SIGSEGV'. -> Ok and continue to run application

Project myproject raised exception class 'RunError(216)'. -> Ok and continue to run application


run errors are translated here: http://www.freepascal.org/docs-html/user/userap4.html#x188-195000D

As already explained you are accessing memory that is not part of your app.

If you run in the debugger, then when the debugger reports the error choose "break", and open the stack window., and search the top line that is in your app. Sometimes the debugger does not get the stack, you can try to run again. The debugger may report an error again, and there is a chance the stack is available then. If not, then it will be hard to find. (You need to step, until you find the line, then stop, start over step again, step into the line , start over ....)

If you find the line, inspect all variables.

---------------
You should compile with options such as
- Range check and similar   -Criot
- uninitialzied vars -gt (also try -gtt and -gttt / but only one at a time)
- heaptrc   -gh


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to