[DUG] TListitems disappearing and reappearing causing access violations

Kyley Harris Kyley at harrissoftware.com
Tue Apr 9 22:33:28 NZST 2013


without seeing the 10lines above, and whats inbetween (if you were being
literal) its very hard to say.

The only time I've ever had something dissapear from a list is when I
deleted it though a callback, method, thread etc.. or freeing something.

what version of delphi is the code now? How does the list get populated or
edited by the application..

I'd start by looking at how many locations of code insert or delete the
list items, and verify none are being called while your procedure is
executing its for-loop, (assuming the access violation is an index based
one because of the list count change)




On Tue, Apr 9, 2013 at 10:21 PM, Ross Levis <ross at stationplaylist.com>wrote:

> Wondering if anyone has any ideas.****
>
> ** **
>
> I've had this problem a long time from when I started writing an app about
> 7 or 8 years ago, but it happens so rarely it's not usually an issue. But
> one user in particularly is regularly sending me MadExcept reports which
> either have access violation errors or "the application appears to be
> frozen". In all cases it's during an access of a TListItem which was
> perfectly valid 10 lines of code up a procedure but suddenly doesn't exist.
> ****
>
> ** **
>
> The screenshot created at the same time shows the ListView has no visible
> items, but I know for a fact there are 30 or more items in the list. I
> believe sometimes the items visually disappear and reappear shortly
> afterwards, like a Desktop refresh.****
>
> ** **
>
> I think I've heard something about Windows recreating the window handles
> or some such thing. I don't understand why it would do so. There are no
> changes to the listview that would require re-creating the window.****
>
> ** **
>
> Any ideas?****
>
> ** **
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
> Subject: unsubscribe
>



-- 
Kyley Harris
Harris Software
+64-21-671-821
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20130409/c6652e6c/attachment.html 


More information about the Delphi mailing list