Home All Groups Group Topic Archive Search About

ExecutionEngineException on GetData(DataFormats.EnhancedMetafile)

Author
9 Oct 2006 1:38 PM
JakubS
When I execute such a simple piece of code:

            IDataObject data = Clipboard.GetDataObject();
            object o = data.GetData(DataFormats.EnhancedMetafile);

while the clipboard contains a fragment of an MS Word document (which
happens to have Enhanced Metafile as one of its formats), I get
ExecutionEngineException (!).

Any ideas? I'm aware of KB323530, but it addresses a rather oposite
situation (data stored by .NET application not visible outside).

I'm using .NET framework 2.0 (2.0.50727), XP Pro SP2, Office 2003 SP2.

Thx,
Jakub

AddThis Social Bookmark Button