Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SetPropertyInitialEvent doesn't work from Java
06-09-2011, 04:43 PM
Post: #1
SetPropertyInitialEvent doesn't work from Java
The CpProxy.setPropertyInitialEvent() method doesn't work from Java.

This is caused by two bugs (in the same line!) in the corresponding JNI native method. The line:

CpProxySetPropertyChanged(proxy, callback, NULL);

should be changed to:

CpProxySetPropertyInitialEvent(proxy, callback, ref);
Find all posts by this user
07-09-2011, 08:11 AM
Post: #2
RE: SetPropertyInitialEvent doesn't work from Java
(06-09-2011 04:43 PM)simoncn Wrote:  The CpProxy.setPropertyInitialEvent() method doesn't work from Java.

This is caused by two bugs (in the same line!) in the corresponding JNI native method. The line:

CpProxySetPropertyChanged(proxy, callback, NULL);

should be changed to:

CpProxySetPropertyInitialEvent(proxy, callback, ref);

Thank you for reporting this. That appears to be a line of code from when the Java bindings were initially being written, and I obviously failed to update it when I was finalising the corresponding SetPropertyChanged function.

I revisited the CpProxy binding recently to update the callback code for the listeners and was sure I had removed issues like this from the code related to SetPropertyInitialEvent, but it must have evaded my attention!

As always, the fix is in the internal repository and should be pushed out within the next couple of days.
Find all posts by this user


Forum Jump: