Hello, I'm developing C # software to help digitize old photos, and in the middle of one of the algorithms to process the images, I want the cursor to switch to loading mode so the user knows when the system is processing. >
What I did was insert this way at the beginning of the function:
this.Cursor = Cursors.Wait;
int count = 0;
int n = System.IO.Directory.GetFiles(path, "*.jpg", System.IO.SearchOption.AllDirectories).Length;
foreach (string file in System.IO.Directory.GetFiles(path, "*.jpg", System.IO.SearchOption.AllDirectories))
{
MotherImage mImage = new MotherImage(file);
mImage.targetImage.CalculateDataIntensity();
mImage.CreateMap();
...
The only however is that I get this error message from Visual Studio:
Error message:
An exception of type 'System.InvalidOperationException' occurred in WindowsBase.dll but was not handled in user code
Error Details:
{Function evaluation disabled because of a previous function evaluation timed out You must continue execution to reenable function evaluation.}
Is the command wrong? Any ideas on how to proceed?