Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Imagex crashes with a stack overflow when capturing directory named space


View products that this article applies to.

Rapid publishing

Source: Microsoft Support

↑ Back to the top


Symptom

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

↑ Back to the top


Cause



When you use the Imagex.exe utility to capture a image from Windows PE (WINPE), imagex may exit without an error message. A successful capture would display "successfully imaged c:\."

This message is not seen in this situation.

Example command line:

imagex /capture c: c:\test.wim "test"

Trying to open or otherwise apply this image results in error "Invalid Image" to be displayed.

↑ Back to the top


Resolution



Imagex recurses the directory structures during the capture process. When a directory name is encountered with a space, " ", a stack overflow is generated in Imagex. Imagex immediately exits and cannot provide any errors.

Example of a directory structure that will cause the issue:

Directory of C:\test



05/09/2009 12:35 PM <DIR> .

05/09/2009 12:35 PM <DIR> ..

05/09/2009 12:35 PM <DIR>

0 File(s) 0 bytes

3 Dir(s) 159,940,136,960 bytes free

↑ Back to the top


Disclaimer



To work around this issue, remove the directory with a space as the name with the following command:

����rd \\?\c:\<path>\

Note Between the last \ and " is a space.

↑ Back to the top


Keywords: KB971437, kbnomt, kbrapidpub

↑ Back to the top

Article Info
Article ID : 971437
Revision : 1
Created on : 5/15/2009
Published on : 5/15/2009
Exists online : False
Views : 182