Results 1 to 5 of 5

Thread: Issue with Icecs 3.3.0

  1. #1
    die_gestalt is offline Registered User
    Name: Hanz Fünzinger
    Organization: self-employed
    Project: Various projects, trying to learn Ice
    Join Date
    Mar 2008
    Posts
    25

    Issue with Icecs 3.3.0

    Hello,

    It seems that Dictionaries are not well generated with ice 3.3.0.

    See what I got :

    Code:
    public static _System.Collections.Generic.Dictionary<castor.UnderlyingCrossCorrelationKey, castor.CorrelationStress> read(IceInternal.BasicStream is__)
            {
                int sz__ = is__.readSize();
                _System.Collections.Generic.Dictionary<castor.UnderlyingCrossCorrelationKey, castor.CorrelationStress> r__ = new _System.Collections.Generic.Dictionary<castor.UnderlyingCrossCorrelationKey, castor.CorrelationStress>();
                for(int i__ = 0; i__ < sz__; ++i__)
                {
                    castor.UnderlyingCrossCorrelationKey k__;
                    v__ = new castor.UnderlyingCrossCorrelationKey();
                    k__.read__(is__);
                    is__.readObject(new Patcher__("::castor::CorrelationStress", r__, k__));
                }
                return r__;
            }
    "v__" is not declared and I have the same behaviour with all my dictionaries. I thik "k__" should replace it.

    See another example :

    Code:
    public static _System.Collections.Generic.Dictionary<castor.CrossKey, double> read(IceInternal.BasicStream is__)
            {
                int sz__ = is__.readSize();
                _System.Collections.Generic.Dictionary<castor.CrossKey, double> r__ = new _System.Collections.Generic.Dictionary<castor.CrossKey, double>();
                for(int i__ = 0; i__ < sz__; ++i__)
                {
                    castor.CrossKey k__;
                    v__ = new castor.CrossKey();
                    k__.read__(is__);
                    double v__;
                    v__ = is__.readDouble();
                    r__[k__] = v__;
                }
                return r__;
            }
    This time, another variable "v__" is declared and used after...

  2. #2
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    Hi,

    Could you post the slice that was used to generate these functions?

    Dwayne

  3. #3
    die_gestalt is offline Registered User
    Name: Hanz Fünzinger
    Organization: self-employed
    Project: Various projects, trying to learn Ice
    Join Date
    Mar 2008
    Posts
    25
    Here's an example :

    Code:
    module Test
    {
    	
    	struct Key
        {
            long Key1;
            long Key2;
        };
        
        dictionary<Key, double> Dict;
    
    }; // module Test
    It gives :

    Code:
    public static _System.Collections.Generic.Dictionary<Test.Key, double> read(IceInternal.BasicStream is__)
            {
                int sz__ = is__.readSize();
                _System.Collections.Generic.Dictionary<Test.Key, double> r__ = new _System.Collections.Generic.Dictionary<Test.Key, double>();
                for(int i__ = 0; i__ < sz__; ++i__)
                {
                    Test.Key k__;
                    v__ = new Test.Key();
                    k__.read__(is__);
                    double v__;
                    v__ = is__.readDouble();
                    r__[k__] = v__;
                }
                return r__;
            }

  4. #4
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    I have posted a source patch for slice2cs here. Thanks for the bug report.

    Dwayne

  5. #5
    die_gestalt is offline Registered User
    Name: Hanz Fünzinger
    Organization: self-employed
    Project: Various projects, trying to learn Ice
    Join Date
    Mar 2008
    Posts
    25
    Ok thank you !

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. icecs.dll and Mono
    By kwaclaw in forum Comments
    Replies: 1
    Last Post: 11-15-2007, 07:28 PM
  2. ICECS error in in Windows XP Sp2
    By lifejoy in forum Help Center
    Replies: 9
    Last Post: 08-24-2006, 02:53 AM
  3. Build issue with ICECS 3.1.0
    By lkw in forum Bug Reports
    Replies: 2
    Last Post: 07-18-2006, 10:19 PM
  4. Replies: 3
    Last Post: 01-04-2005, 06:45 PM
  5. Question about the IceCS generate.exe
    By damingyipai in forum Help Center
    Replies: 3
    Last Post: 08-12-2004, 09:18 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
  •