The information in this article applies to:
SYMPTOMSAFC UIFrame may deadlock when using the setCursor() method. CAUSEThe deadlock occurs because UIFrame.setCursor() is not properly synchronized. RESOLUTIONTo work around this problem, place your calls to setCursor() in a synchronized block. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Internet Explorer 4.01 SP1. MORE INFORMATIONThe UIComponent class has a getTreeLock() method that should be used when you need to synchronize the underlying AWT component. UIFrame derives from UIComponent; therefore, you can use this method to make a thread-safe call to setCursor(). Here is an example:
REFERENCESFor more information on UIFrame and UIComponent, see the Microsoft SDK for Java documentation available at the following Web site: http://www.microsoft.com/java/sdk/ Additional query words: setCursor synchronized kbJAFC
Keywords : |
Last Reviewed: August 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |