Hi all,

   i'm trying to make an app for WinCE, but having problems.

I installed fpc-2.2.2.arm-wince.exe, fpc-2.2.2.i386-win32.exe and unzip 
the fpc-2.2.2.source.zip. Then i get Lazarus sources from svn trunk.

Lazarus compiled with :

 >make distclean
 >make all
 >make lcl LCL_PLATFORM=wince PP=ppcrossarm.exe CPU_TARGET=arm 
OS_TARGET=wince.

I then run Lazarus and configure the enviroment path for the compiler to 
be the ppcrossarm.exe, the fpc source path and finally in the debugger 
options i selected the arm-wince-gdb.exe as the debugger.

I went and create a new project, and in the Project->Compiler 
options->Paths i select for the "LCL widget type (varius)" option the 
"wince(beta)". In Project->Compiler options->Code i selected for the 
"Target OS(-T)" option the "WinCE" and for the "Target CPU family(-P)" 
option the "arm".

Pressed F9, and all is ok ... Project compiles, the debugger connects to 
the connected ( via ActiveSync ) device, creates the \gdb dir, copy the 
wince_stub.exe file first, then it copies the project1.exe and last it 
runs it. I can see the calls in debug output window. Stop running and 
reseting debugger.

Then i drop a TMainMenu component on the main form, added a TMenuItem 
and pressed the F9 again. Now the debugger stops the execution with 
'Project DPIfaistos raised exception class 'External: SIGSEGV'. Pressing 
F9 the execution continues. When i press the menu item ( which don't 
have any event handler assigned ) execution stop normally. Even if the 
menu item have an event handler assigned still when i click the 
execution stops normally.

I went to the Project->Compiler options->Linking and checked the 
"Generate Debugging Info For GDB (Slows Compiling)(-g)" and here is the
info from the Call Stack window

#0 TCUSTOMFORM__SHOWMODAL((TCUSTOMFORM) 0x75a14806) at customform.inc:2020
#1 TLISTITEMS__DESTROY((POINTER) 0x0, (TLISTITEMS) 0x0) at listitems.inc:252
#2 TWINCEWIDGETSET__APPWAITMESSAGE((TWINCEWIDGETSET) 0x97ab20) at 
winceobject.inc:399
#3 TAPPLICATION__IDLE(true, (TAPPLICATION) 0x972310) at application.inc:315
#4 TAPPLICATION__HANDLEMESSAGE((TAPPLICATION) 0x972310) at 
application.inc:985
#5 TAPPLICATION__RUNLOOP((TAPPLICATION) 0x972310) at application.inc:1095
#6 TWIDGETSET__APPRUN((TAPPLICATIONMAINLOOP) 0x30ad8 
<TAPPLICATION__RUNLOOP>, (TWIDGETSET) 0x97ab20) at interfacebase.inc:49
#7 TAPPLICATION__RUN((TAPPLICATION) 0x972310) at application.inc:1082
#8 main at DPIfaistos.lpr:17

I traced it a little more and the exception is raised in a call to 
RedrawMenus procedure from winceobject.inc, line 399.

RedrawMenus procedure is in winceproc.pp.

Any hints ?

PS: Currently i can't copy anything from the debug output window, cause 
there isn't any copy option in the right click popup menu for copying ( 
only one option clear exists ) and Ctrl-C doesn't work.

regards,

-- 
Dimitrios Chr. Ioannidis
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to