By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,166 Members | 1,533 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,166 IT Pros & Developers. It's quick & easy.

UMLE00501 on dotnet framework delegates when reverse engineering

P: n/a
[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).

--
ale
http://www.sen.it
rara temporum felicitate, ubi sentire
quae velis, et quae sentias dicere, licet

Nov 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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."

Nov 17 '05 #2

P: n/a
Kevin Yu [MSFT], from <v-****@online.microsoft.com>,
in <news:I3**************@TK2MSFTNGXA01.phx.gbl>, wrote:
We have reviewed this issue and are currently researching on it. We
will update you ASAP. Thanks for your patience!


Thank you to get interested with that, in every chance.

--
ale
http://www.sen.it
rara temporum felicitate, ubi sentire
quae velis, et quae sentias dicere, licet
Nov 17 '05 #3

P: n/a
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/d...0bd-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.
Nov 17 '05 #4

P: n/a

My email address is: v-****@online.microsoft.com (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.
Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.