Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I've a weird problem.
As I'm using array of listview, in which on first index i.e index 0. I attached listview id i.e used in my winform application.

There is a save button (in winform application) on clicking it firstly collect the data and then I want to clear the listview control's records.
But when I used
gridLogView.Items.Clear();
(where gridLogView is my listview id) then sometimes my application closed automatically without getting any error and sometimes show error and i.e
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."


I don't know what to do to clear my listview tool so that getting fresh data inside it, which is goin' on in do-while loop.

Thanks for trying to solve this problem
Posted
Comments
Anjali0904 17-Nov-15 2:31am    
Can you post your code here..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900