Re: Distributed Objects passing structures? (punching holes in my data)
Re: Distributed Objects passing structures? (punching holes in my data)
- Subject: Re: Distributed Objects passing structures? (punching holes in my data)
- From: Jim Correia <email@hidden>
- Date: Mon, 26 Aug 2002 22:45:17 -0400
At 5:42 PM -0400 8/2/02, Jim Correia wrote:
I have a do client and a do server in another process.
The client would like to do
- (BOOL)getSomeInformation:(InformationStruct *)information;
- (BOOL)setSomeInformation:(InformationStruct *)information;
and pass a pointer to his own structure, have the server do a
computation, return success or failure, and fill in the structure.
I have the setSomeInformation side working. The problem I am seeing
is that the structure is fairly large, and as it gets passed across
the DO bridge, two bytes in the middle of the structure are being
zeroed. (I haven't closely inspected the structure for other damage).
It turns out that the root cause of the problem was that
InformationStruct was defined by Carbon to have 68k alignment. DO can
only deal with structs that have processor native alignment.
Be forewarned.
Jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.