BUG: WFC RegisterDragDrop function fails with Visio automation (278722)



The information in this article applies to:

  • Microsoft Visual J++ 6.0, when used with:
    • the operating system: Microsoft Windows 2000
  • Microsoft Visio 2000 Enterprise Edition Service Release 1 (SR-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 "out of memory" 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.

REFERENCES

For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:6/14/2006
Keywords:kbBug kbJava kbpending kbWFC KB278722