Forum > General

Strange SIGSEGV error in release mode but not in debug mode?

(1/2) > >>

hgbk:
When I run my Pascal program built in release mode I encounter a SIGSEGV error. When running the same program in debug mode the program runs without any error. I use Lazarus 2.0.12 on Windows 10.
Has anybody seen this before?

trev:
Yes - running in debug mode re-arranges the code somewhat compared with release mode which omits the debug code. Good luck finding the issue.

alpine:
May be you should "Run/Clean up and Build..." first. There is a slight chance to help.

hgbk:
The "Run/Clean up and Build" does not help - unfortuantely

dseligo:
Did you try to run both build modes from Lazarus and outside Lazarus? Maybe it has something to do with bitness of Lazarus/your program.
When do you get SIGSEGV error, can you isolate that code? I would place ShowMessage('1'), ShowMessage('2'), ShowMessage('3'), ... around that code so you can tell what line of code is producing error.

Navigation

[0] Message Index

[#] Next page

Go to full version