Forum > PDAs and Smartphones

Lazarus+FPC application bad crash on WinCE

<< < (2/18) > >>

Zaher:
You can reduce the size of exe file by check "Use external gdb file debug symbols file -Xg", and "Strip Symbols -Xs", the file myapp.gdb generated and stay at your computer to use it with the gdb.

You can check it by your self by compare it with the win32 code
look at #2

#2  0x001299bc in TWINCEWIDGETSET__APPPROCESSMESSAGES (this=0x1a148f0) at winceobject.inc:296

it is function "TWinCEWidgetSet.AppProcessMessages" in winceobject.inc
open it and open the same but in win32object.inc

compare the function and with some luck you will understand.

If you have no answer move this info to the bugtracker.

felipemdc:
Hello, I added more debug info and tryed a fix in rev. 23678

You can either use subversion Lazarus to get it or wait for tomorrows snapshot.

Can you retest with it and tell me if it works?

If it doesn't then please rebuild your LCL using the option -dDEBUG_AppProcessMessages which will add a lot of debug info in this routine. You can rebuild your LCL in the dialog Tools->Configure Build Lazarus, and there you can add this option. After that you should also rebuild your app and run it and make it crash. It will create a file 1.log with the debug info. Please copy the results where I can see it.

It would also be good if you open a bug report to track this issue and maybe even move this whole discussion there.

thanks,

Al Berto:
Hi
I tried to post a new bug but the bugtracker seems down right now with error:
SYSTEM WARNING: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

So, I installed last Lazarus snapshot (Lazarus-0.9.29-23680-fpc-2.4.0-20100212) and rebuild my application. It crashes, this is the bt:

Program received signal SIGSEGV, Segmentation fault.
0x001b4f20 in U_FPIMAGE_IMAGEHANDLERS ()
(gdb) bt full
#0  0x001b4f20 in U_FPIMAGE_IMAGEHANDLERS ()
No symbol table info available.
#1  0x00069398 in WINDOWS_MSGWAITFORMULTIPLEOBJECTS$LONGWORD$LPHANDLE$LONGBOOL$LONGWORD$LONGWORD$$LO
NGWORD ()
No symbol table info available.
#2  0x001251d4 in TWINCEWIDGETSET__APPPROCESSMESSAGES (this=0x1a13410) at winceobject.inc:309
        AMESSAGE = {HWND = 204092, MESSAGE = 96, WPARAM = 2080977856, LPARAM = 224,
  TIME = 251235454, PT = {X = 16777355, Y = 27333664}}
        ACCELTABLE = 192804
        RETVAL = 762379236
        INDEX = 762379304
        PHANDLES = (LPHANDLE) 0x0
#3  0x00031328 in TAPPLICATION__HANDLEMESSAGE (this=0x1a11420) at ./include/application.inc:1195
No locals.
#4  0x00031830 in TAPPLICATION__RUNLOOP (this=0x1a11420) at ./include/application.inc:1329
No locals.
#5  0x00034930 in TWIDGETSET__APPRUN (ALOOP=0x317e0 <TAPPLICATION__RUNLOOP>, this=0x1a13410)
    at ./include/interfacebase.inc:49
No locals.
#6  0x000317d4 in TAPPLICATION__RUN (this=0x1a11420) at ./include/application.inc:1317
No locals.
#7  0x00011ce0 in main () at t3pro.lpr:18
No locals.
#8  0x00020870 in SYSTEM_EXE_ENTRY ()
No symbol table info available.

So I rebuilt LCL for WinCE with option -dDEBUG_AppProcessMessages but no log file is created (to be sure I'm correctly rebuilding the LCL I put some garbage text inside the {$ifdef DEBUG_AppProcessMessages} block in winceobject.inc/TWinCEWidgetSet.AppProcessMessages, and the compiler stops there).

I'll try again to create this log file.

many thanks for the support
bye
Alberto

Al Berto:
I posted this issue on the bugtracker, it was my first bug report so I hope I did it well.

http://mantis.freepascal.org/view.php?id=15773

bye
Alberto

Al Berto:
Compiling and running my application for win32 I see that is run over a dos-like shell, i.e. I see a black background window and my application is over.

Compiling for WinCE, if I put DbgAppendToFile(ExtractFilePath(ParamStr(0)) + '\1.log', 'START') in the project source, before Application.Initialize, log file is correctly written, so I think I don't see the debug entries because my real application is never run due to the previous strange behaviour...

In fact if I put some components on my form they're not shown, even if I change background color it's not changed so I think what I see is not my form.

I'm using SVN version 23707.

Any ideas?

Alberto

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version