Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-01

AV in Wince/ARM when run app.

3 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Zaher Dirkey

I cannot run my application on WinCE (WM 5 and WM 6.1) when i remote debug it crash in

application.inc line 386
Res := FindResource(HInstance, PChar('MAINICON'), RT_GROUP_ICON);

There is problem about PChar (see fpc_pwidechar_to_ansistr)

I used fpc 2.4.0 and the last Lazarus from SVN.

----------------------------------------------------- child process -13636 In: SYSTEM_INDEXWORD$formal$LONGIN* Line: ?? PC: 0x12b78
30c2000:ossvcs.dll
3106000:oleaut32.dll
2f8a000:ws2.dll
7ffe1000:coredll.dll.0409.mui
3135000:ole32.dll
3f4d000:coredll.dll
267b000:packageinfoapi.dll

Program received signal SIGSEGV, Segmentation fault. 0x00012b78 in SYSTEM_INDEXWORD$formal$LONGINT$WORD$$LONGINT () (gdb) bt
#0 0x00012b78 in SYSTEM_INDEXWORD$formal$LONGINT$WORD$$LONGINT () #1 0x0001abb4 in fpc_pwidechar_to_ansistr ()
#2 0x0004267c in TAPPLICATION__INITIALIZE (this=0x1b215b0) at ./include/application.inc:386
#3 0x00012128 in RUN () at source/Inventory.lpr:36 #4 0x000122a4 in main () at source/Inventory.lpr:50 (gdb)
-----------------------------------------------------

I have not idea how to wrap on this problem, or, Must i return back to previous FPC and Lazarus?

Thanks in advanced.

Zaher Dirkey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100124/06ef7408/attachment-0001.html>

Reply by email

Zaher Dirkey
to Zaher Dirkey
Zaher Dirkey wrote 6 lines
I cannot run my application on WinCE (WM 5 and WM 6.1) when i remote debug it crash in application.inc line 386 Res := FindResource(HInstance, PChar('MAINICON'), RT_GROUP_ICON);

Hi,

I guess with my weak experience. the problem about RT_GROUP_ICON it is PWideChar passed as parameter PChar, widestring manager here worked to convert not a real string, RT_GROUP_ICON it is an Integer typecasted as PWideChar in WinCE.

SY, Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100129/cf96a841/attachment.html>

Reply by email

Zaher Dirkey
to Zaher Dirkey
Zaher Dirkey wrote 17 lines
On Sun, Jan 24, 2010 at 9:00 PM, Zaher Dirkey wrote: > I cannot run my application on WinCE (WM 5 and WM 6.1) > when i remote debug it crash in > > application.inc line 386 > Res := FindResource(HInstance, PChar('MAINICON'), RT_GROUP_ICON); > Hi, I guess with my weak experience. the problem about RT_GROUP_ICON it is PWideChar passed as parameter PChar, widestring manager here worked to convert not a real string, RT_GROUP_ICON it is an Integer typecasted as PWideChar in WinCE. Reported as bug

http://bugs.freepascal.org/view.php?id=15665

Zaher Dirkey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100203/ab534094/attachment.html>

Reply by email