From 803b57de51b93afa640c8180ef673b62a065ded3 Mon Sep 17 00:00:00 2001 From: clay_shooter Date: Wed, 14 Mar 2012 03:10:07 +0000 Subject: [PATCH] SF3436102 convert 32 bit memory pointers to 64 bit where not already converted. --- src/com/jacob/com/DispatchEvents.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/jacob/com/DispatchEvents.java b/src/com/jacob/com/DispatchEvents.java index a9ca0a1..41f3bb2 100644 --- a/src/com/jacob/com/DispatchEvents.java +++ b/src/com/jacob/com/DispatchEvents.java @@ -44,7 +44,7 @@ public class DispatchEvents extends JacobObject { * pointer to an MS data struct. The COM layer knows the name of this * variable and puts the windows memory pointer here. */ - int m_pConnPtProxy = 0; + long m_pConnPtProxy = 0; /** * the wrapper for the event sink. This object is the one that will be sent @@ -118,8 +118,8 @@ public class DispatchEvents extends JacobObject { * Dispatch object who's MS app will generate callbacks * @param eventSink * Java object that wants to receive the events - * @param progId , - * mandatory if the typelib is specified + * @param progId + * , mandatory if the typelib is specified * @param typeLib * The location of the typelib to use */ @@ -190,6 +190,7 @@ public class DispatchEvents extends JacobObject { * * @see java.lang.Object#finalize() */ + @Override protected void finalize() { safeRelease(); } @@ -199,6 +200,7 @@ public class DispatchEvents extends JacobObject { * * @see com.jacob.com.JacobObject#safeRelease() */ + @Override public void safeRelease() { if (mInvocationProxy != null) { mInvocationProxy.setTarget(null);