Results 1 to 2 of 2

Thread: C# compile error!!

  1. #1
    xpiao is offline Registered User
    Join Date
    Oct 2004
    Posts
    2

    Question C# compile error!!

    i wite ice file as
    module M
    {
    struct A
    {
    string name;
    };
    ["cs:collection"]sequence<A> AAA;

    class B
    {
    AAA getA();
    };
    };
    when i use slice2cs gernerate .cs file and want to compile.
    the error occur

    in
    public sealed class AAAHelper
    {
    ....
    public static M.AAA read(IceInternal.BasicStream __is)
    {
    M.AAA __v;
    {
    int sz = __is.readSize();
    __is.startSeq(sz, 1);
    __v = new M.A(sz);
    for(int __i = 0; __i < __v.Count; ++__i)
    {
    __v[__i].__read(__is);
    __is.checkSeq();
    __is.endElement();
    }
    }
    return __v; }
    }
    ....
    }
    "type M.A not define construcotr"
    why?
    i think that's bug.
    M.AAA __v=new M.A(sz)???
    Last edited by xpiao; 11-19-2004 at 05:56 AM.

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Yes, this is a bug in the slice2cs code generator that shipped with 1.5.1. We are about to release Ice 2.0.0, for which this problem is fixed.
    My apologies for the trouble this has caused you.

    Cheers,

    Michi.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 06-21-2010, 04:03 AM
  2. compile ice-3.0.0 error
    By zhushisong in forum Help Center
    Replies: 1
    Last Post: 11-24-2005, 04:38 AM
  3. compile error!
    By ouloba in forum Help Center
    Replies: 7
    Last Post: 09-23-2004, 11:41 PM
  4. Compile error
    By frostzero in forum Help Center
    Replies: 2
    Last Post: 05-07-2004, 04:09 PM
  5. Compile Error
    By threadsafe in forum Help Center
    Replies: 4
    Last Post: 07-24-2003, 09:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •