On Wed, 2007-10-24 at 16:33 +0200, Jacek M. Holeczek wrote:
> I apologize for this question, as it is not really related to cegcc.
> However, I see no better place to ask it, as I believe there are experts
> here, who know how the PPC executable looks inside.
> 
> I use an "unblocked" PNA running "Windows CE 5.0 Core".
> Usually, I can use most of the existing Pocket PC software (in the
> beginning it required me to "add" some "compatibility" dll libraries).
> 
> However, I've met a problem which I cannot resolve myself.
> 
> There is a utility which I would like to use (very much), but whenever I
> try to run it, I get "File is not a valid Windows CE application".
> I've tried to install all available versions of it: PPC420.CAB,
> PPC302.CAB, PPC300.CAB, HPC2000.CAB -> no visible change.
> Using the PEInfo (http://s-k-tools.com/index.html?m_products.html), I can
> see that no dll library, which the "File" needs, is missing (none of the
> above versions is missing and libraries on "import").
> I believe that, either the operating system says NO to this application, or
> this application itself says NO to the system.

I've seen this type of message myself from applications compiled with
cegcc too, when there's something wrong with the *.def file from which
we create the lib*.a file that ends up linking our application to a DLL.

If the DEF file defines an API that isn't in the DLL on your WinCE
device, then any application that accesses this API will provide this
message at startup. My best guess is that the Windows CE runtime loader
(which "connects" the DLLs) detects this situation and issues this
error.

Two pieces of advice :

1. You may be interested in trying to run the application from gdb.
(arm-wince-cegcc-gdb for instance). It'll give the message in another
form.

2. Our arm-wince-cegcc-objdump may provide additional info also. Use it
on the executable and check out which API's the application calls from
which DLL.

By the way, which application are you talking about ?

        Danny


-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to