Microsoft KB Archive/278722

= BUG: WFC RegisterDragDrop function fails with Visio automation =

Article ID: 278722

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Visual J++ 6.0 Standard Edition, when used with:
 * Microsoft Windows 2000 Standard Edition
 * Microsoft Visio 2000 Service Release 1

-



This article was previously published under Q278722



SYMPTOMS
When you automate Visio from Java and use Windows Foundation Classes for Java (WFC) forms, the Control.setAllowDrop(boolean b) method may fail with an &quot;out of memory&quot; error.



CAUSE
This problem appears to be related to Visio event notifications that use the OLE drag-and-drop functionality in Windows. This behavior has only been reproduced on a Microsoft Windows 2000-based computer.



RESOLUTION
To work around this problem, do not use WFC drop targets in conjunction with a Visio application. You must set the allowDrop properties to false in the WFC controls.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

