[Mono-list] About converting a program

Abe Gillespie abe.gillespie at gmail.com
Mon Apr 12 08:48:03 EDT 2010


Yes, your list of strings has nothing in it (list.Count is 0).  You
just need to debug your program.

-Abe

On Mon, Apr 12, 2010 at 7:38 AM, Adam Tauno Williams
<awilliam at whitemice.org> wrote:
> On Mon, 2010-04-12 at 04:37 -0700, Stephen Liu wrote:
>> Hi Abe,
>> I did that before same as your advice but failed with following warning;
>> Fatal Error System ArgumentOutOfRangeException.  Argument is out of range Parameter name: index
>> at System Collections Generic List`1 [System String get_item (int32 index) [0x00000]....
>
> That looks like a straight-up application error to me.  Take a look at
> the stack trace and your application to see what is supposed to be in
> the List you are accessing.  Perhaps [most likely?] you are doing some
> filesystem path parsing 'manually' instead of using the appropriate
> methods?
> --
> Adam Tauno Williams <awilliam at whitemice.org>
> Whitemice Consulting
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


More information about the Mono-list mailing list