• 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: "bus error" when sending NSImages using distributed objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "bus error" when sending NSImages using distributed objects?


  • Subject: Re: "bus error" when sending NSImages using distributed objects?
  • From: Jonathan del Strother <email@hidden>
  • Date: Tue, 28 Feb 2006 16:40:39 +0000

On 28 Feb 2006, at 14:45, Ricky Sharp wrote:

On Feb 28, 2006, at 8:14 AM, Jonathan del Strother wrote:

I'm using distributed objects to obtain an NSImage from a server process.
It doesn't occur all the time, but quite often, the server process just dies with a 'Bus error' on returning the NSImage.

I believe that sending the actual NSImage is bad. You'll instead want to send the image data. Since NSImage conforms to NSCoding, you should be able to encode the image on the sender side and decode it on the receiver's side.


Thanks, that fixed it...but I'm not sure why. I can't find anything in the docs about needing to encode objects before transferring them. Aren't all objects passed through NSConnection encoded transparently with NSPortCoder anyway? Should I be encoding my NSDictionaries that I pass to the server?

Jon

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

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >"bus error" when sending NSImages using distributed objects? (From: Jonathan del Strother <email@hidden>)
 >Re: "bus error" when sending NSImages using distributed objects? (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: vCard -> loss of Identity
  • Next by Date: Re: [CORE DATA] multithreading
  • Previous by thread: Re: "bus error" when sending NSImages using distributed objects?
  • Next by thread: Drag Font && NSFontPboardType
  • Index(es):
    • Date
    • Thread