FROM : Wade Tregaskis
DATE : Sat Oct 30 11:25:17 2004
> I'm trying to send a simple C struct by value in a message to a remote
> object, but can't get it to work. Is this a known bug or limitation
> in the DO system? Here's an example of the struct I'm sending:
>
> struct _Msg {
> int a_fill;
> char name[64];
> int b_fill;
> };
>
> The problem seems to be that the struct is not getting encoded
> properly in the sender. The encoded object description appears to be
> correct, and 'a_fill' and the first part of 'name' appears to be
> correct, but the remainder of the structure is garbage.
Define "first part of 'name'"?
If nothing else, you should probably perform byte swapping on those
integer values... yes, Apple's Distributed Object's implementation
currently only runs on PPC hardware, but who knows what the future may
bring.
Wade Tregaskis (AIM, Yahoo & Skype: wadetregaskis, ICQ: 40056898, MSN &
email: <email_removed>, Jabber:
<email_removed>
-- Sed quis custodiet ipsos custodes?
DATE : Sat Oct 30 11:25:17 2004
> I'm trying to send a simple C struct by value in a message to a remote
> object, but can't get it to work. Is this a known bug or limitation
> in the DO system? Here's an example of the struct I'm sending:
>
> struct _Msg {
> int a_fill;
> char name[64];
> int b_fill;
> };
>
> The problem seems to be that the struct is not getting encoded
> properly in the sender. The encoded object description appears to be
> correct, and 'a_fill' and the first part of 'name' appears to be
> correct, but the remainder of the structure is garbage.
Define "first part of 'name'"?
If nothing else, you should probably perform byte swapping on those
integer values... yes, Apple's Distributed Object's implementation
currently only runs on PPC hardware, but who knows what the future may
bring.
Wade Tregaskis (AIM, Yahoo & Skype: wadetregaskis, ICQ: 40056898, MSN &
email: <email_removed>, Jabber:
<email_removed>
-- Sed quis custodiet ipsos custodes?
| Related mails | Author | Date |
|---|---|---|
| Michael Heins | Oct 30, 10:16 | |
| Wade Tregaskis | Oct 30, 11:25 | |
| Michael Heins | Oct 30, 16:28 | |
| Wade Tregaskis | Oct 30, 17:21 | |
| Michael Heins | Oct 30, 18:14 | |
| Jim Correia | Oct 30, 19:46 | |
| Michael Heins | Oct 30, 19:59 | |
| Michael Heins | Oct 31, 17:53 |






Cocoa mail archive

