[Mono-devel-list] Apparent remoting problem in 0.91

Dale Olds olds at novell.com
Thu May 6 10:53:37 EDT 2004


I have not yet had time to put this into a concise test case, but I
think I am seeing a problem in remoting similar to the following
scenario:

[Serializable]
public struct Chunk
{
    int blah;
    string blech;
}

public class ServiceObject: MarshalByRefObject
{
    ...

    public Chunk[] BlowChunks()
    {
        ArrayList chunks = new ArrayList();
        ...
        // look for chunks here
        ...
        return (Chunk[])chunks.ToArray(typeof(Chunk));
    }
    ...
}

If method BlowChunks is called to a remote instance and it returns a
non-null array of Length == 0, the client throws an invalid server
response exception.

I have not isolated it to this exact type configuration, but I think
there is a problem there. Any help would be appreciated.

--Dale






More information about the Mono-devel-list mailing list