Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Symptoms

Consider the following scenario:

  • You have a Windows Embedded Compact 7-based OS design that includes clone modules.

  • You build the OS design in Platform Builder.


In this scenario, the build is broken. Additionally, you receive the following error message:

Unhandled Exception: System.InvalidOperationException: The environment block used to start a process cannot be longer than 65535 bytes. Your environment block is <’nnn’> bytes long. Remove some environment variables and try again. 
at System.Diagnostics.EnvironmentBlock.ToByteArray(StringDictionary sd, Boolean unicode)
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.PlatformBuilder.MainClass.Main(String[] args)
NMAKE : fatal error U1077: C:\WINCE700\public\common\oak\bin\i386\SysgenMake.EXE: return code '0xe0434f4d'


Cause

When you include clone modules in an OS design, SysgenMake.exe checks the environment block size for all modules. This process occurs when the NMAKE/RES2RES process is called during the OS design build. For some modules, such as the Coredllhs.dll module, the environment block size increases beyond the maximum allowed size (less than 64 KB). This causes the build to break, and then the "fatal error U1077" error message is generated.

Resolution

Software update information

A supported software update that is named "Windows Embedded Compact 7 Monthly Update March 2012" is now available from Microsoft. In the "File information" section, the package file name contains the processor type.

Note This Windows Embedded Compact 7 Monthly Update is available for download from the Microsoft Download Center:

Windows Embedded Compact 7 Updates

Prerequisites

This update is supported only if all previously issued updates for this product have also been installed.

Restart requirement

After you apply this update, you must perform a clean build of the whole platform. To do this, use one of the following methods:

  • On the Build menu, click Clean Solution, and then click Build Solution.

  • On the Build menu, click Rebuild Solution.

You do not have to restart the computer after you apply this software update.

Update replacement information

This update does not replace any other updates.

File information

The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Files that are included in this update package

File name

File size

Date

Time

Path

Sysgenmake.exe

16,240

22-Mar-2012

06:18

Public\Common\Oak\Bin\I386

References

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×