Open MikeDuf opened 3 years ago
I believe this is an issue not related to the project itself. Your access violation error is more than likely because img_Dessin.Source
has a lock on the file. This is because you are not actually loading the image yourself and storing it in memory, but rather letting WPF stuff handle it and WPF locks it because it's working directly with the file. See something like https://stackoverflow.com/questions/29097171/sharing-violation-on-image-view-and-edit-wpf
Hi, I am fairly new at coding and I am still learning. But this is something I really cannot find the answer for and I thought maybe it could be something you guys could pin point the issue?
Here is my code chunk. It always return "another process is using the file - cannot save" when I hit the save button of my interface. Any idea why? I tried to hard code it and it seems to work when ran in a command window but not in WPF (could it be when I load the file into a bitmap that it gets stuck in use?)
Thank you