< prev index next >

src/jdk.accessibility/windows/native/libwindowsaccessbridge/AccessBridgeJavaVMInstance.cpp

Print this page

        

*** 196,207 **** COPYDATASTRUCT toCopy; toCopy.dwData = 0; // 32-bits we could use for something... toCopy.cbData = bufsize; toCopy.lpData = buffer; ! PrintDebugString("In AccessBridgeVMInstance::sendPackage"); ! PrintDebugString(" javaAccessBridgeWindow: %p", javaAccessBridgeWindow); /* This was SendMessage. Normally that is a blocking call. However, if * SendMessage is sent to another process, e.g. another JVM and an incoming * SendMessage is pending, control will be passed to the DialogProc to handle * the incoming message. A bug occurred where this allowed an AB_DLL_GOING_AWAY * message to be processed deleting an AccessBridgeJavaVMInstance object in --- 196,207 ---- COPYDATASTRUCT toCopy; toCopy.dwData = 0; // 32-bits we could use for something... toCopy.cbData = bufsize; toCopy.lpData = buffer; ! PrintDebugString("[INFO]: In AccessBridgeVMInstance::sendPackage"); ! PrintDebugString("[INFO]: javaAccessBridgeWindow: %p", javaAccessBridgeWindow); /* This was SendMessage. Normally that is a blocking call. However, if * SendMessage is sent to another process, e.g. another JVM and an incoming * SendMessage is pending, control will be passed to the DialogProc to handle * the incoming message. A bug occurred where this allowed an AB_DLL_GOING_AWAY * message to be processed deleting an AccessBridgeJavaVMInstance object in
*** 278,288 **** // Let the recipient know there is a package waiting for them. The unset byte // at end of buffer which will only be set if message is properly received char *done = &memoryMappedView[bufsize]; *done = 0; ! PrintDebugString(" javaAccessBridgeWindow: %p", javaAccessBridgeWindow); // See the comment above the call to SendMessageTimeout in SendPackage method above. UINT flags = SMTO_BLOCK | SMTO_NOTIMEOUTIFNOTHUNG; DWORD_PTR out; // not used SendMessageTimeout( javaAccessBridgeWindow, AB_MESSAGE_WAITING, (WPARAM)ourAccessBridgeWindow, (LPARAM)bufsize, flags, 4000, &out ); --- 278,288 ---- // Let the recipient know there is a package waiting for them. The unset byte // at end of buffer which will only be set if message is properly received char *done = &memoryMappedView[bufsize]; *done = 0; ! PrintDebugString("[INFO]: javaAccessBridgeWindow: %p", javaAccessBridgeWindow); // See the comment above the call to SendMessageTimeout in SendPackage method above. UINT flags = SMTO_BLOCK | SMTO_NOTIMEOUTIFNOTHUNG; DWORD_PTR out; // not used SendMessageTimeout( javaAccessBridgeWindow, AB_MESSAGE_WAITING, (WPARAM)ourAccessBridgeWindow, (LPARAM)bufsize, flags, 4000, &out );
*** 307,317 **** * matches the passed in vmID; no match: return 0 * */ HWND AccessBridgeJavaVMInstance::findAccessBridgeWindow(long javaVMID) { ! PrintDebugString("In findAccessBridgeWindow"); // no need to recurse really if (vmID == javaVMID) { return javaAccessBridgeWindow; } else { isVMInstanceChainInUse = true; --- 307,317 ---- * matches the passed in vmID; no match: return 0 * */ HWND AccessBridgeJavaVMInstance::findAccessBridgeWindow(long javaVMID) { ! PrintDebugString("[INFO]: In findAccessBridgeWindow"); // no need to recurse really if (vmID == javaVMID) { return javaAccessBridgeWindow; } else { isVMInstanceChainInUse = true;
*** 336,346 **** * matches the passed in vmID; * no match: return 0 */ AccessBridgeJavaVMInstance * AccessBridgeJavaVMInstance::findABJavaVMInstanceFromJavaHWND(HWND window) { ! PrintDebugString("In findABJavaInstanceFromJavaHWND"); // no need to recurse really if (javaAccessBridgeWindow == window) { return this; } else { isVMInstanceChainInUse = true; --- 336,346 ---- * matches the passed in vmID; * no match: return 0 */ AccessBridgeJavaVMInstance * AccessBridgeJavaVMInstance::findABJavaVMInstanceFromJavaHWND(HWND window) { ! PrintDebugString("[INFO]: In findABJavaInstanceFromJavaHWND"); // no need to recurse really if (javaAccessBridgeWindow == window) { return this; } else { isVMInstanceChainInUse = true;
< prev index next >