Results 1 to 4 of 4

Thread: Throwing exception from another module

  1. #1
    beardo is offline Registered User
    Join Date
    Sep 2004
    Posts
    10

    Throwing exception from another module

    This is with C#, on windows xp with Visual Studio, Ice 2.1.1.

    If I define an exception in one ICE module, and then try to specify an interface method in another module throws that exception, the generated code doesn't correctly qualify the exception name when it's trying to be thrown. Simple example would be

    module M1
    {
    exception BlahException { };
    };

    module M2
    {
    interface I {
    void DoStuff() throws M1::BlahException;
    };
    };

    In the _IDelM class, DoStuff method it catches the exception BlahException, and it should be the M1.BlahException. Has anybody else seen this behavior?

    Thanks,
    Beardo

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    This appears to be a bug in the C# slice compiler. We'll look into it.

    Regards, Matthew

  3. #3
    mes's Avatar
    mes
    mes is online now ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi,

    Thanks for reporting this bug, it has been fixed for the next release.

    If you need a patch and you have Visual C++, we can describe how to modify the slice2cs source code to fix this problem. Otherwise, we can provide a new slice2cs executable.

    Take care,
    - Mark

  4. #4
    beardo is offline Registered User
    Join Date
    Sep 2004
    Posts
    10
    Well that entirely depends on when the next release is

    I have work around, so I can be patient.

    Thanks for the quick responses,
    Beardo

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 10-30-2007, 01:05 AM
  2. Exception throwing question
    By g00fy in forum Help Center
    Replies: 2
    Last Post: 06-28-2006, 07:40 PM
  3. Replies: 4
    Last Post: 01-06-2006, 12:33 PM
  4. Re-throwing exception in Ice for C#
    By kwaclaw in forum Comments
    Replies: 1
    Last Post: 10-20-2005, 06:47 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
  •