Returning Arrays from Multi-Tier Server to Client

on some machines I receive an exception "Incorrect Parameter" on the client
side after returning an Variant::array from the server

the exception only accours on a few machines (P100) running WindowsNT or
Windows95. I have never had the exception on Hewlett Packard machines

Server:
// HRESULT _stdcall GetLanguage([in] int Language, [out, retval] VARIANT *
Value );
.
.
            Variant v = VarArrayCreate(OPENARRAY(int, (0,LangList->Count)),
varOleStr);
            for(int i = 0; i < LangList->Count; i++) {
                v.PutElement( WideString( LangList->Strings[i]), i);
            }

            *Value = Variant( v);

.
.

Client:
.
.
    LangList = Connection->AppServer.Exec(Function("GetLanguage") <<
Table);
    if(LangList.IsArray()) {
        for(int i = 0; i < LangList.ArrayHighBound(); i++) {
            String tmp = WideCharToString( LangList.GetElement(i));
            LanguageAddString( Table, tmp);
        }
    }

--
Stefan Rosehr

sros...@edvs.de