• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSImage initWithPasteboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage initWithPasteboard


  • Subject: Re: NSImage initWithPasteboard
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 16 Sep 2011 08:43:13 -0700

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@hidden)

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:

This email sent to email@hidden

References: 
 >NSImage initWithPasteboard (From: Eugene Rudenko <email@hidden>)

  • Prev by Date: Re: question about identifying old apps
  • Next by Date: NSTextField : Tooltip show Whole String, only when Truncated
  • Previous by thread: NSImage initWithPasteboard
  • Next by thread: question about identifying old apps
  • Index(es):
    • Date
    • Thread