debugging IComparer exceptions

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top