NSImage + Distributed Objects
NSImage + Distributed Objects
- Subject: NSImage + Distributed Objects
- From: "James Trankelson" <email@hidden>
- Date: Tue, 14 Aug 2007 00:38:07 -0400
I've been trying to use distributed objects lately, and have
encountered something I can't seem to understand.
I've got an application that's asking a remote object for an image.
The remote machine is creating the image from a View, and sending this
image back to the requesting machine.
After receiving this image, I turn it into an OpenGL texture. When I
do this, all I get is an image of the correct proportions but full of
garbage.
This architecture mimics an existing version of my app that ran as a
single entity. It created an image from a view, and turned it into a
texture. It worked.
However, when the image is coming from a proxy via the distributed
object mechanism, the textures appear as garbage. The images
themselves appear to be fine, as I can write them to a separate file
upon being received and the image looks as expected.
Can someone shed some light onto what could possibly be going on
during the transfer to produce this?
(Note this problem happens even if the "remote" object is running in a
separate application on the same machine), and unlikely to be an
endian-ness issue.
(I've tried sending both NSImage and NSBitmapImageRep types without luck)
-jt
_______________________________________________
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