Re: traversing down the constructors from base class - SystemIndexOutofRangeException - system.data.dll -there is no row at position 0 ?

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 08/13/04


Date: Fri, 13 Aug 2004 20:22:42 +0100

hazz <hazz@sonic.net> wrote:
> My runtime in debug is dropping through the constructors from an
> upper level class into subclassed constructors.....

<snip>

> } // SystemIndexOutofRangeException - system.data.dll -there is no
> row at position 0
>
>
> Why system.data?
> System.Data is referenced in these projects but why would system.data.dll be
> involved in the exception during the downward constructor traversal?

I suspect it's in the code that you snipped.

Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

-- 
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Relevant Pages

  • Re: do you ever found memory leak with STL?
    ... [SNIP] ... > Track the number of times that constructors and destructors are called for ... Obviously these totals should be the same, ...
    (comp.lang.cpp)
  • Re: isElement - determining if an object is an element
    ... for "isElement" exists. ... the desire is being serviced but nothing has yet suggested a need. ... You have to double or tripple up on constructors to do the same ...
    (comp.lang.javascript)
  • Re: Generics without direct instantiation
    ... Mark Rae wrote: ... or use any of the other constructors of Dictionary- but there ... If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: A question on Inheritence in C#
    ... through all the constructors from the class itself up to object. ... > to be called and I just want to call directly Class B. How can i do ... If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.languages.csharp)