• 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: Distributed Objects passing structures? (punching holes in my data)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Distributed Objects passing structures? (punching holes in my data) (From: Jim Correia <email@hidden>)

  • Prev by Date: Exporting NSImage
  • Next by Date: Re: NSTableView and clipping
  • Previous by thread: Re: Distributed Objects passing structures? (punching holes in my data)
  • Next by thread: Looking for simple NSCursor example code
  • Index(es):
    • Date
    • Thread