Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / December 2007

Tip: Looking for answers? Try searching our database.

Find recursion

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hilton - 23 Dec 2007 07:54 GMT
Hi,

A couple of my customers have reported "StackOverflowException" - no stack
trace, cannot reproduce, outa luck.  I gave myself 30 minutes and wrote some
code which found two methods in my EXE that had recursion; in both cases I
had called "this.XYZ" instead of "base.XYZ" in a "get".

I'd be happy to make the EXE available.  Warning, it was written in under an
hour, not my best creation; i.e. it might not catch all recursion, hardly
tested at all, but it might help you - it sure as hell helped me.  Let me
know if anyone is interested.  Also, it there is any/sufficient interest,
I'd be happy to expand the functionality of it and fix bugs etc (within
reason :)).

Hilton
joker - 23 Dec 2007 13:46 GMT
That's interesting.

I've actually recently observed a condition where I had a method that
was overloaded.  For example.

private void DoSomething(object o)
{
    if (o is bool)
    {
         DoSomething((bool)o);
    }
}

private void DoSomething(bool b)
{
   // do all the work in this method.
}

This actually "sometimes" resulted in recursion.  (I typed the above
code from memory, so if it isn't completly correct forgive me).  I had
to solve the issue by renaming the method that accepted the bool.

I might be interested in the source of your program, but I'm too
chicken to accept exe's

Thanks,
Hilton - 23 Dec 2007 21:10 GMT
Hi,

In my case it was the simple case of "return this.Bla" instead of "return
base.Bla"

Hilton

> That's interesting.
>
[quoted text clipped - 22 lines]
>
> Thanks,

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.