I see a crash case in my application.
I think when system busy or an application run with high priority then FreePascal app is crashed.
I tried with 3 type (Application, Program and Console application) and crash still appears.
You can try with simple app
program Project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Windows, Classes
{ you can add units after this };
{$IFDEF WINDOWS}{$R project1.rc}{$ENDIF}
begin
repeat
Sleep(1000);
utils False;
end.
This program is for test only, when it run nothing appear but you can know it is running by try delete program file from storage. If you can not delete it, it means it running other it crash.
After run this program, try turn on, off wifi, run some other program or make incoming call (this will make program crash) you can see FreePascal crashs
I try on HTC HD2, WindowMobile 6, Lazarus-0.9.29-28334-fpc-2.5.1-20101119
I don't know why but I think compiler has problem, not Lazarus.
Please, help me solve this issue.
Hi all,
my name is Alberto, I'm a programmer from Italy.
I've developed a telephone client application for WinCE using Lazarus(0.9.28.2)+FPC(2.2.4-2.4.0)+KOL/MCK(2.80.3-2.88)
Everything is working good with the beautiful KOL components but... sometimes application crash with SIGILL (using gdb).
No problem with WinCE emulator (Windows Mobile 6 PRO version 5.2.1235, Windows Mobile 6.1 PRO version 5.2.20757)
So I create a smaller program to reproduce it (KOLtest).
I'm testing it on a ASUS P552w Windows Mobile 6.1 PRO version 5.2.19965.
The small KOLtest is a form with a button and an edit box.
Run it thru gdb or directly, it's the same.
1- Click on the KOLtest button
2- click on the network icon, toggle WIFI, exit
3- goto 1
after toggling WIFI on/off for four-five times, the application crash with no errors, after a little O.S. hanging it just disappear, on gdb I have SIGILL or SIGSEGV at different point.
I tried with FPC 2.2.4 or 2.4.0, KOL/MCK 2.80.3 or SVN trunk 2.88.
Could it be a bug on FPC compiler or KOL/MCK?
I don't know how to fix it...
Any help would be really appreciated, I'm getting (quite) mad about it!
Many thanks
bye
Alberto