LEGACY CONTENT
This article refers to legacy products, components or features. Therefore, the content in this article is offered "as is" and will no longer be updated. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Introduction

A problem occasionally occurs when code that places data on the clipboard is run within a Microsoft Virtual PC (VPC). An exception is raised stating that there was a problem with the clipboard (OpenClipboard Failed).

Example Scenario

The steps below describe one scenario under which this error may occur. The steps below are simplified and not all the steps will be shown or described.
  1. Open a VPC and run code that places data on the clipboard
  2. An error will be displayed
Note: This error only occurs on VPCs – it does not occur on any native machines.

Error Message

The following error message relates to this KB Article:

[Figure 1. Error - OpenClipboard Failed]

Workaround

  1. All the services mentioned are disabled by default, so set them all to “Manual”.
  2. The Network DDE service is dependent on the Network DDE DSDM service, so make sure you start the services in this order:
    • Start the Network DDE DSDM service first
    • Then the Network DDE, and the Clipbook services
  3. Stop these services immediately after starting them (sequence irrelevant).
  4. In the Task Manager > Processes tab, end the “ClipSrv.exe” and “RdpClip.exe” processes, should they be running.