Closed GoogleCodeExporter closed 9 years ago
Can you try the BeginEdit and EndEdit methods of ImageListViewItem? They should
prevent collisions with the cache thread.
Thanks,
Ozgur
Original comment by oozcitak
on 6 Sep 2010 at 5:27
Sorry, I pasted too few code, I already do this, this is the whole function:
public void PerformFlipHorizontally()
{
foreach (var item in thumbnailListView.SelectedItems)
{
// My code:
var asset = (WebImageAsset)item.Tag;
asset.CommitState = CommitState.Modified;
// The image list view code:
item.BeginEdit();
using (var img = Image.FromFile(item.FileName))
{
img.RotateFlip(RotateFlipType.RotateNoneFlipX);
img.Save(item.FileName);
}
item.Update();
item.EndEdit();
}
// Again, my code:
notifyNeedUpdatePreview();
PerformUpdateUI();
}
Original comment by uwe.k...@gmail.com
on 6 Sep 2010 at 6:17
It even gets worse with the fact, that the application completely crashes (I
guess, because that the thread has no exception handler and it is not always
promoted to the UnhandledException) handler.
Original comment by uwe.k...@gmail.com
on 6 Sep 2010 at 7:07
Something about your code above (not related to the issue). You do not need to
call item.Update since item.EndEdit will call it for you. Just a FYI.
Original comment by oozcitak
on 7 Sep 2010 at 10:47
This issue was closed by revision r369.
Original comment by oozcitak
on 7 Sep 2010 at 10:58
Original issue reported on code.google.com by
uwe.k...@gmail.com
on 6 Sep 2010 at 5:25