Try creating a test app, zip the complete solution and post it here.
Printable View
Try creating a test app, zip the complete solution and post it here.
Attachment 32601
The attached project is simple - set a timer, start the timer button and watch it save in a folder. Try 10 seconds or more please. Also, you can edit the code for the 'dir' variable to set a local directory you want.
I can try AsyncCallback() for now. Another user on MSDN forum posted a solution for it in a WPF setting - he simply uses asynctask and awai - not sure how it cna be implemented in WindowsForm. This is what he says:
http://social.msdn.microsoft.com/For...=csharpgeneral
The .NET version is 4.5 - tried it in WPF and Form - didnt work - had errors. Iam thinking Action<Object> and creatign a new Task.factory.Startnew should work - but that didnt pan out as well. How can Action<Image> saveimg (Image img) function be used?
Completed it like this:
Task t2 = Task.Factory.StartNew(() =>
{
pictureBox1.Image.Save(fn, ImageFormat.Jpeg);
});
t2.wait() //to block the main thread letting this finish
NO. It did NOT resolve the issue for longer times - like a timer of 1 minute. Not even ASYNC works as it runs on the CPU anyway at the syetm-level.async Task does NOT work really.
Mod, mark it as Unresolved as it isn't.