On Sep 15, 2011, at 2:57 AM, Eugene Rudenko wrote:

> I have a JNI method to get image from clipboard. After 5-6 calls a method, I
> have a hanging method. It hanging at call initWithPasteboard.
> Although the method canInitWithPasteboard returns true.

The code you posted looks fine, so the problem must be some kind of higher 
level issue, like misusing the image reference afterwards.

* What is the exact backtrace of the hang?
* Try setting the environment variables MallocScribble and MallocPreScribble; 
this will help track down accesses to freed blocks or uninitialized memory. 
Setting NSZombieEnabled will help find references to dealloced Obj-C objects.

(I am assuming there’s a valid reason you can’t use the standard Java clipboard 
APIs.)

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to