If this is in debug mode then try and start the program in release mode. If
the bugs happend quicker then it is probably the garbage collector that is
deleting your objects. It will happend earlier in release mode as it
utilizes a more efficient garbage collection. If this is the case then you
shold try and find out if any of these object goes out of scope somewhere in
your code.
<trialproduct2004@yahoo.com> skrev i melding
news:1120816066.936991.13180@g14g2000cwa.googlegroups.com...
[quoted text, click to view] > Hi all
> i am having problem in listview which i am using in vb.net
> applicication. I am getting following two errors.
> There are not freqent errors but if i run my app for nearly 30 min
> then these errors are coming. So i am not gettng exact scenarion for
> these errors.
>
> At a time of calling method items.clear i am getting error that
> 'error :- can not obtain value'.
> And listview is not getting cleared.
> Can some one tell me reason behind this problem
>
> Similarly sometime my application is giving error that
> 'object reference not set to an instance of object' at a tome of
> calling listview1.sort method.
> I have used listviewitemsorter properly and icomparer.
>
> Can some one tell me why this is happending.
>
> Please help me.
> Thanks in advance.
>