Tuesday, 27 September 2011

Error: Failed reading e32 structure in module…

Hi folks,

when working with Windows Embedded Compact you should be used to non-descriptive error messages like the following:

Error: Failed reading e32 structure in module <module_name>
Fatal error hit, exiting…
makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).

We immediately know this error occurred in the make image phase of the build process, so there must be something wrong with one of our configuration files.

The solution is rather simple:
We placed a file (namely <module_name>) that is NOT an *.exe or a *.dll in the MODULES section of a *.bib file.

We therefore simply need to move that <module_name>file to the FILES section of the *.bib and re-run make image.

Et voilà another mystic error message deciphered!

Have fun!

1 comment:

garzanti said...

Hmmm, well as MVP you should raise the issue to Microsoft also. They should have more descriptive errors.