UMLE00501 on dotnet framework delegates when reverse engineering

A

Alessandro Riolo

[c/p between microsoft.public.dotnet.languages.csharp and
microsoft.public.visio.software.modeling, I don't really know where it
would have to be posted]

I've got a weird thing when reverse engineering a c# project which is
declaring and then using an event of type CancelEventHandler as in the
following snippet:

...
public event System.ComponentModel.CancelEventHandler MyEvent;

protected virtual void OnMyEvent (System.ComponentModel.CancelEventArgs
e)
{
if (MyEvent != null)
{
MyEvent (this, e);
}
}
...
// some code creating a CancelEventArgs
OnMyEvent(e)
...

This code compile and works perfectly, when I try to reverse engineer
that on UML (on Visio 2002 through VSEA 2003) I don't get any error, but
when I see the resulting UML from Visio, the output error windows is
warning about an UMLE00501 error I couldn't find any reference about.
Here is what I read:

"UMLE00501: CancelEventHandler[Class] : Un delegato può disporre di una
sola operazione".

I've Italian versions of both Visio 2002 and VSEA 2003, and a
translation of that error message could be "a delegate can get one and
only one operation".

I tested that with another Event Handler, the generic EventHandler, and
I got same mistake. When I double click on the line in the output error
windows, the focus is shifting in the Model Explorer, and there not in
the class and in the package where I used that, but directly in the
CancelEventHandler class in the package ComponentModel inside the System
package.

Anyone knowing what is going on? Is there somewhere a reference for the
UMLE family of errors (I've got also the UMLE00011 in some other point).
 
K

Kevin Yu [MSFT]

Hi Ale,

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
W

Wei-Dong XU [MSFT]

Hi ale,

Firstly, I'd suggest you can download the Visio 2003 SDK, which has one
code sample explorer. Please see how the code sample performs the handling
on visio event.
http://www.microsoft.com/downloads/details.aspx?familyid=557120bd-b0bb-46e7-
936a-b8539898d44d&displaylang=en

If the code sample can't be helpful for you on this issue, I'd suggest you
can send one reproduce project and steps to me. I will perform one research
for you on this issue. Thanks in advance!

Look forward to your update. My pleasure to be of any assistance!

Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
 
W

Wei-Dong XU [MSFT]

My email address is: (e-mail address removed) (please remove online
which is used to avoid spam)

Expect to your update!

Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top