Debug: xd (deallocate expanded memory)

Deallocates a handle to expanded memory. Used without parameters, xd checks for the presence or absence of extended memory support (EMS).


xd [handle]


handle : Specifies the handle you want to deallocate.

?: Displays a list of debug subcommands.


Windows XP does not use this command. It is accepted only for compatibility with MS-DOS files. 

Windows XP does not support EMS. To use expanded memory, you must install an expanded memory device driver that conforms to version 4.0 of the Lotus/Intel/Microsoft Expanded Memory Specification (LIM EMS).


To deallocate handle 0003, type:

xd 0003 

If the command is successful, Debug.exe displays the following message:

Handle 0003 deallocated

Formatting legend



Information that the user must supply


Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

Debug subcommands

Debug: xa (allocate expanded memory)

Debug: xm (map expanded memory pages)

Debug: xs (display expanded memory status)

Command-line reference A-Z

© 2017 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy & Cookies