From 66f26e5819f3e8bf69c4772413eb006d9c3447d0 Mon Sep 17 00:00:00 2001 From: clay_shooter Date: Fri, 28 Apr 2006 04:06:12 +0000 Subject: [PATCH] added comments --- jni/DispatchEvents.cpp | 1 + unittest/com/jacob/test/events/IETest.java | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/jni/DispatchEvents.cpp b/jni/DispatchEvents.cpp index 36ce9bc..41a8a67 100644 --- a/jni/DispatchEvents.cpp +++ b/jni/DispatchEvents.cpp @@ -153,6 +153,7 @@ JNIEXPORT void JNICALL Java_com_jacob_com_DispatchEvents_release { EventProxy *ep = extractProxy(env, _this); if (ep) { + // this is the line that blows up in IETest ep->Release(); putProxy(env, _this, NULL); } diff --git a/unittest/com/jacob/test/events/IETest.java b/unittest/com/jacob/test/events/IETest.java index 7867138..4110693 100644 --- a/unittest/com/jacob/test/events/IETest.java +++ b/unittest/com/jacob/test/events/IETest.java @@ -3,7 +3,8 @@ package com.jacob.test.events; import com.jacob.com.*; import com.jacob.activeX.*; /** - * It looks like this test is broken again on the cleanup + * This test runs fine against jdk.1.5.0_05 and kills the VM + * under any variant of 1.4. * * This demonstrates the new event handling code in jacob 1.7 * This example will open up IE and print out some of the events @@ -51,7 +52,7 @@ class IETestThread extends Thread public void run() { // this used to be 5 seconds but sourceforge is slow - int delay = 10000; // msec + int delay = 5000; // msec // paired with statement below that blows up ComThread.InitMTA(); ActiveXComponent ie = new ActiveXComponent("InternetExplorer.Application");