Java Access Bridge C#: Only MouseClicked event firing?
I've been messing around with the Java Access Bridge and have managed to get most of it working, with one exception: I can only hook the MouseClicked event within the java window.

This code:

        [DllImport("WindowsAccessBridge.dll", CallingConvention = CallingConvention.Cdecl)]
        private extern static void setMouseClickedFP(MouseClickedDelegate fp);

        [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
        delegate void MouseClickedDelegate(System.Int32 vmID, IntPtr jevent, IntPtr ac);

        static MouseClickedDelegate mcd;

        static void HandleMouseClicked(System.Int32 vmID, IntPtr jevent, IntPtr ac)
        {
            getVersionInfo(vmID, out vi);
            releaseJavaObject(vmID, ac);
            releaseJavaObject(vmID, jevent);
        }
works without a problem. Whenever the java window receives a mouseclick, the code that handles it triggers as well - fantastic. However, when I try and hook another event, I get nothing. No matter what the event, I'm not receiving anything. Here's an example:

        [DllImport("WindowsAccessBridge.dll", CallingConvention = CallingConvention.Cdecl)]
        private extern static void setMenuSelectedFP(FocusGainedDelegate fp);

        [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
        delegate void FocusGainedDelegate(System.Int32 vmID, IntPtr jevent, IntPtr ac);

        static FocusGainedDelegate fgd;

        static void HandleFocusGained(System.Int32 vmID, IntPtr jevent, IntPtr ac)
        {
            AccessibleContextInfo aci = new AccessibleContextInfo();
            getAccessibleContextInfo(vmID, ac, out aci);
        }

The above code does not get triggered, even though according to the oracle documentation, source, and examples, the calling convention and variable types are identical in both. 

I haven't been able to figure anything out, and I've attempted to use many, many of the events provided in the documentation (found here: http://download.oracle.com/javase/accessbridge/2.0.2/api.htm#jab-api-calls ) and nothing is working. I'm at my wits end - even a general idea as to what's happening would help.

Thanks for taking the time.

NB: If it's a specific method required for each event type, the ones I'm looking to use are PropertyValueChangeFP, PropertySelectionChangeFP, PropertyTextChangeFP.
Java Access Bridge C#: Only MouseClicked event firing?
===

I've been messing around with the Java Access Bridge and have managed to get most of it working, with one exception: I can only hook the MouseClicked event within the java window.

This code:

        [DllImport("WindowsAccessBridge.dll", CallingConvention = CallingConvention.Cdecl)]
        private extern static void setMouseClickedFP(MouseClickedDelegate fp);

        [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
        delegate void MouseClickedDelegate(System.Int32 vmID, IntPtr jevent, IntPtr ac);

        static MouseClickedDelegate mcd;

        static void HandleMouseClicked(System.Int32 vmID, IntPtr jevent, IntPtr ac)
        {
            getVersionInfo(vmID, out vi);
            releaseJavaObject(vmID, ac);
            releaseJavaObject(vmID, jevent);
        }
works without a problem. Whenever the java window receives a mouseclick, the code that handles it triggers as well - fantastic. However, when I try and hook another event, I get nothing. No matter what the event, I'm not receiving anything. Here's an example:

        [DllImport("WindowsAccessBridge.dll", CallingConvention = CallingConvention.Cdecl)]
        private extern static void setMenuSelectedFP(FocusGainedDelegate fp);

        [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
        delegate void FocusGainedDelegate(System.Int32 vmID, IntPtr jevent, IntPtr ac);

        static FocusGainedDelegate fgd;

        static void HandleFocusGained(System.Int32 vmID, IntPtr jevent, IntPtr ac)
        {
            AccessibleContextInfo aci = new AccessibleContextInfo();
            getAccessibleContextInfo(vmID, ac, out aci);
        }

The above code does not get triggered, even though according to the oracle documentation, source, and examples, the calling convention and variable types are identical in both. 

I haven't been able to figure anything out, and I've attempted to use many, many of the events provided in the documentation (found here: http://download.oracle.com/javase/accessbridge/2.0.2/api.htm#jab-api-calls ) and nothing is working. I'm at my wits end - even a general idea as to what's happening would help.

Thanks for taking the time.

NB: If it's a specific method required for each event type, the ones I'm looking to use are PropertyValueChangeFP, PropertySelectionChangeFP, PropertyTextChangeFP.