Is there some way I can speed up a ListView sort?

  • Thread starter Thread starter **Developer**
  • Start date Start date
D

**Developer**

I have a ListView that has about 200 rows and 15 columns.
When I execute "Sort" it takes minutes to sort.

I did implement my own ICompare object but the Function Compare is simple,
much like the one in Help to sort columns.

Is there some way I can speed this up?


Thanks
 
Thanks Cor
I did try that, but the problem was a simple convert from string to integer
before comparing, so as to sort integers OK.
Converting for each comparison took much time.
I just found it.


Thanks
 
I have another post to which I received no reply.

The subject is:
What could possibly be happened as End is executing that causes the
exception

I'd sure like a suggestion of something to try.

Is there a tool that might help me see what is being done after End is
reached?

Any suggestion at all - have no idea how to proceed.

I've tried commenting out blocks of code but to no avail.


I wonder if you'd think about it for a minute or two?
 
Developer,

There should be nothing happening after the *end*. *End* means killing the
program, a statement you normally should not use however maybe there happens
outside your program something because of that killing.

Cor
 
I'm sorry, I meant End Sub.


My program crashes after it leaves an event handler.
It is an event raised by a ComboBox.
So the stack contains only the handler and Main before the End Sub is
executed.

What I see during debugging is:

When I press F11 at the End Sub statement

In Main I catch the following exception:

An unhandled exception of type 'System.Runtime.InteropServices.SEHException'
occurred in system.windows.forms.dll

Additional information: External component has thrown an exception.



1. What could possibly happen as End Sub is executing that causes the
exception?


2. What does External component mean. Is the ComboBox an External component?


3.Is InteropServices.SEHException' a clue? Or is that the typical exception




Thanks
 
Hi,

Have a look in your references (which you can find in the solution exlorer)
if there is something with interop.SEHE or whatever.

I hope this helps,

Cor
 
yes, I have read the stuff about SEHException but it doesn't tell me much.
I suspect the error comes from some Windows API call (if that's a "legacy
system") that I've messed up but can't imagine what is being run after the
End Sub.


thanks
 
I just reread it and now wonder if it relates to COM. If it does I'm really
confused about the cause.
 
Back
Top