sharing-violation

Pandas / xlsxwriter writer.close() does not completely close the excel file

喜夏-厌秋 提交于 2021-01-28 02:41:34
问题 I'm trying to modify manually an excel file after creating it with a python script. Unfortunately, if the script is still running, a sharing file violation error message appears when trying to save it with the same name. Everything runs smoothly in the code. The file is created, filled and saved. I can open it and work on it but can't overwrite it under the same name if the script is still running. outpath = filedialog.asksaveasfile( mode="wb", filetype=[("Excel", ("*.xls", "*.xlsx"))],

Image edit exceptions

天涯浪子 提交于 2019-11-28 11:40:50
问题 I'm working in WPF application with MVVM. Loading and Editing a image in imageSlider gives me error and exceptions. Loading Image: Insufficient memory to handle Editing Image: Sharing violation ViewModel: public class ImageList : INotifyPropertyChanged { #region Fields private ObservableCollection<ImageItem> images = new ObservableCollection<ImageItem>(); private int selectedIndex; private ImageItem currentImage; #endregion Fields #region Properties public ObservableCollection<ImageItem>