Distributed Objects passing structures? (punching holes in my data)
Distributed Objects passing structures? (punching holes in my data)
- Subject: Distributed Objects passing structures? (punching holes in my data)
- From: Jim Correia <email@hidden>
- Date: Fri, 2 Aug 2002 17:42:11 -0400
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).
Has anyone sen this before? Should I not pass structures? Is my
protocol wrong?
I can probably wrap the structure in a foundation type if
necessary, but I need to use the structure because it is defined by
a linked library and I cannot change it.
Thanks,
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.