debugging IComparer exceptions

  • Thread starter Thread starter anonimo1
  • Start date Start date
A

anonimo1

Hello,

I'm very often in troubles debugging an ArrayList.Sort() method. I'm
so often getting this error:

"An unhandled exception of type 'System.InvalidOperationException'
occurred in mscorlib.dll

Additional information: Specified IComparer threw an exception."

and the call stack points just after the ArrayList.Sort() line.

I would really like the debugger to break into the IComparer
implementation pointing to the line throwing the exception.

I build several genetic optimizers, that sort genomes using complex
Fitness function and it's so bad I always need to perform a step by
step debug just to get to the line throwing the exception.

I'm using VisualStudio.net 2002.

I bet I'm missing something simple, but I've not been able to google
anything useful. Any help would be really much appreciated.

Thanks for your time.
 
Back
Top