Groups | Blog | Home
all groups > dotnet remoting > march 2006 >

dotnet remoting : Function evaluation was aborted, VS2K5 crashes!


herc
3/1/2006 1:54:36 PM
I am having a problem with a remoting object. First off, I have other
objects that are being remoted in the same app and they work fine. The
object in question, Method, follows the same pattern of other objects:
The client makes a call to the server, the server creates the object
and returns (serial, not marshbyvalue) an interface to the object back
to the client.

Apicture is worth a thousand words, so here is a link to a screen shot
of the debugger:

http://www.bimmerboard.com/members/scarleton/original/FunctionEvaluationWasAborted.png

And here is some ascii art:

+ method {Nano.TOCManager.ICBM.Method}
--+ [Nano.TOCManager.ICBM.Method] {Nano.TOCManager.ICBM.Method}
-- Comment null
-- Name Function evaluation was aborted.
--
--

When the mouse moves over one of the fields too long, the application
crashes. The exception on the client does not catch it! If I let the
next call happen were Methods is sent back to the server, and I do the
same think, look at the values, Visual Studio crashes. Ok, it isn't
a crash, there is no warning, it simply disappears!

Any thoughts?
herc
3/2/2006 7:32:13 AM
I found the problem, another stupid one...

The Name's getter method was returning "this.Name" not "this.name". It
was a recursive call! My solution, to prevent myself from doing this
again, always explicitly implement the interface so that this.Name
doesn't work!

Live and Learn, I hope this helps others someday, too!
davidv NO[at]SPAM veeneman.com
3/6/2006 2:35:10 PM
Well, it helped me. I'd been puzzling over the same thing for an hour
or so before I googled the error message. Thanks!
AddThis Social Bookmark Button