Sign in Join

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

Mailing lists / lazarus / 2010-05

WNCE 5 not Supported

14 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Robin Hoo

Hi, All

Did you find that the 2.5.1 snapshoot after May 4th doesn't support WINCE5? It's quite strange. I tried serveral snapshoot after May 4th, the situations are same. The compiled program running under WinCE 5 will give you "not invalid program" error msg and exit,, but ok for WinCE6. I tried the 2.4.1 latest snapshoot as well, no luck. I'm not sure it's a bug or WinCE5 not supported by Lazarus anymore. I hope anyone here can help me to figure it out. Thanks

Best Regards
Robin Hoo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100521/9adf3129/attachment.html>

Reply by email

Felipe Monteiro de Carvalho
to Robin Hoo

Hello,

WinCE error messages are horrible. This one usually means that a DLL or function in a DLL is missing.

Strange. I indeed added a static link to SetWindowOrgEx, which MSDN docs say is available for WinCE 5.0+

http://msdn.microsoft.com/en-us/library/aa924507.aspx

I was thinking if I should make the link dynamic. On one way it sounds a good idea, but by another side no labels will work without this. I'll make the link dynamic.

Are you sure you are using WinCE 5 and not WinCE 4?

Hopefully it isn't something in FPC. Could you try a program without Lazarus? Probably just calling Windows.MessageBox

Felipe Monteiro de Carvalho

Reply by email

Robin Hoo
to Felipe Monteiro de Carvalho: WinCE error messages are horrible. This one usually means that a DLL or function in a DLL…

2010/5/21 Felipe Monteiro de Carvalho

Show quoted text 15 lines
Are you sure you are using WinCE 5 and not WinCE 4? Hopefully it isn't something in FPC. Could you try a program without Lazarus? Probably just calling Windows.MessageBox -- Felipe Monteiro de Carvalho -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Hi, Felipe Monteiro

Thanks for your quick response, I'm sure I was using WinCE 5 not 4. I'll check the simple windows program works or not and back to you. Thanks

Best Regards
Robin Hoo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100521/8f757aa8/attachment.html>

Reply by email

Robin Hoo
to Felipe Monteiro de Carvalho

2010/5/21 Felipe Monteiro de Carvalho

Show quoted text 17 lines
Also, did you try Lazarus apps in this device before? This message also appears when your device lacks agyshell.dll (or a similar name). You have to download and install it. See: http://wiki.lazarus.freepascal.org/WinCE_Programming_Tips#Application_runs_on_Windows_Device_Emulator.2C_but_not_on_physical_device -- Felipe Monteiro de Carvalho -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Hi, Felipe Monteiro

I tried my APP both on device and emulator with agyshell.dll staying in same folder. No luck.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100521/facb5257/attachment.html>

Reply by email

Robin Hoo
to Felipe Monteiro de Carvalho: Also, did you try Lazarus apps in this device before? This message also appears when your…

2010/5/21 Felipe Monteiro de Carvalho

Show quoted text 17 lines
Also, did you try Lazarus apps in this device before? This message also appears when your device lacks agyshell.dll (or a similar name). You have to download and install it. See: http://wiki.lazarus.freepascal.org/WinCE_Programming_Tips#Application_runs_on_Windows_Device_Emulator.2C_but_not_on_physical_device -- Felipe Monteiro de Carvalho -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

And before that everything was fine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100521/d61bd2b4/attachment-0001.html>

Reply by email

Robin Hoo
to Felipe Monteiro de Carvalho

2010/5/21 Felipe Monteiro de Carvalho

Show quoted text 18 lines
2010/5/21 Robin Hoo : > I tried my APP both on device and emulator with agyshell.dll staying in same > folder. No luck. I added another FAQ for this: http://wiki.lazarus.freepascal.org/WinCE_Programming_Tips#Current_Directory_and_Placement_of_DLLs -- Felipe Monteiro de Carvalho -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Hi, Felipe Monteiro

I don't think the placement of DLL for WINCE is right. Per my understaning and the material from MS, the searching order as following. You could check it out from http://msdn.microsoft.com/en-us/library/ms886736.aspx. Thanks

- The absolute path specified by the *lpLibFileName* parameter
- The .exe launch directory
- The Windows directory
- ROM DLL files
- An OEM-specified search path
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100521/ddadac6f/attachment.html>

Reply by email

Paul Breneman
to Robin Hoo: Hi, All Did you find that the 2.5.1 snapshoot after May 4th doesn't support WINCE5? It's…

Robin,

Show quoted text 7 lines
Did you find that the 2.5.1 snapshoot after May 4th doesn't support WINCE5? It's quite strange. I tried serveral snapshoot after May 4th, the situations are same. The compiled program running under WinCE 5 will give you "not invalid program" error msg and exit,, but ok for WinCE6. I tried the 2.4.1 latest snapshoot as well, no luck. I'm not sure it's a bug or WinCE5 not supported by Lazarus anymore. I hope anyone here can help me to figure it out. Thanks

I have posted a minimal FreePascal and fpGUI distribution for cross-compiling WinCE applications near the bottom of this page: http://www.turbocontrol.com/helloworld.htm

That distro contains the compiler and everything you need to easily compile and test a program on the WinCE. You might give that a try and see if it works on your device.

Regards, Paul Breneman www.dbReplication.com - VCL database replication components www.TurboControl.com - Hardware and software development services - Educational programming project for environment monitoring - Information on using FreePascal for embedded systems - Support information for the TurboPower open source libraries

Reply by email

Marc Weustink
to Robin Hoo: 2010/5/21 Felipe Monteiro de Carvalho Hi, Felipe Monteiro I don't think the placement of…
Robin Hoo wrote 36 lines
2010/5/21 Felipe Monteiro de Carvalho < <mailto:>> 2010/5/21 Robin Hoo <robin.hoo.cn <http://robin.hoo.cn>@gmail.com <http://gmail.com>>: > I tried my APP both on device and emulator with agyshell.dll staying in same > folder. No luck. I added another FAQ for this: http://wiki.lazarus.freepascal.org/WinCE_Programming_Tips#Current_Directory_and_Placement_of_DLLs -- Felipe Monteiro de Carvalho -- _______________________________________________ Lazarus mailing list <mailto:> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Hi, Felipe Monteiro I don't think the placement of DLL for WINCE is right. Per my understaning and the material from MS, the searching order as following. You could check it out from http://msdn.microsoft.com/en-us/library/ms886736.aspx. Thanks * The absolute path specified by the /lpLibFileName/ parameter * The .exe launch directory * The Windows directory * ROM DLL files * An OEM-specified search path

Thats loadlibrary, it doesn't state how the statically linked libs are searched. From what I reall, it is not the above.

Marc

Show quoted text 10 lines
------------------------------------------------------------------------ -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Robin Hoo
to Marc Weustink

Hi, All

First of all, I should thanks all, who have replied my problem. It's very nice to discuss the issue together. And I would emphasis that my problem is NOT something about placement of dll. It's about the bug in fpc or lazarus after Lazarus-0.9.29-25158-fpc-2.5.1-20100504-cross-arm-wince-win32. I'm not sure about it locates in fpc or lazarus. The following is my troubleshooting steps.

1. While I compile code with
Lazarus-0.9.29-25158-fpc-2.5.1-20100504-cross-arm-wince-win32 everything is fine both under emulator and device in WinCE 5 and WinCE 6.
2. While I compile code with snapshot after
Lazarus-0.9.29-25158-fpc-2.5.1-20100504-cross-arm-wince-win32, report error of invalid program in WinCE5.
3. (For not placement of dll.) Agyshell.dll is not required to consider placement while using the emulator, since it's coming with emulator image and under \Windows folder.

Let's focus on the problem of compiler or lazarus, not the placement of static linked dll or dynamic linked dll.

I love Lazarus and FreePascal, and that's why I'm here and report the issue or seek help. And as a developer, I know it's impossible for a software, which is bug let's stop leading problem to wrong direction and make it solved. Sorry for my English and let's enjoy in the world of FP and Lazarus. Thanks again and have great weekend everyone.

Best Regards
Robin Hoo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100522/426f8db5/attachment.html>

Reply by email

Felipe Monteiro de Carvalho
to Robin Hoo

Hello,

Please try a snapshot of today or newer.

20100504 is very near the day I added the static link to SetWIndowOrg and GetWindowOrg, that's why I think this is the problem. Yesterday I made the link dynamic, which should solve it, if this is the problem.

Felipe Monteiro de Carvalho

Reply by email

Robin Hoo
to Felipe Monteiro de Carvalho

2010/5/22 Felipe Monteiro de Carvalho

Show quoted text 17 lines
Hello, Please try a snapshot of today or newer. 20100504 is very near the day I added the static link to SetWIndowOrg and GetWindowOrg, that's why I think this is the problem. Yesterday I made the link dynamic, which should solve it, if this is the problem. -- Felipe Monteiro de Carvalho -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Hi? Felipe Monteiro

I think you got it. It works for WinCE 5 right now. Thanks a lot. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100522/602d0c83/attachment-0001.html>

Reply by email