Home Help Center

Throwing exception from another module

beardobeardo Member
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

Comments

  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    This appears to be a bug in the C# slice compiler. We'll look into it.

    Regards, Matthew
  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    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
  • beardobeardo Member
    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
Sign In or Register to comment.