Help with application release written in Visual C #

1

I just finished a small project. In Visual Studio, I chose the "Release" option to compile and run. I ran some tests and the application ran normal.

One of the processes run by the application takes about ten minutes to run on my PC. During the execution of this process the graphical interface is frozen. So far so good. The process runs normally and the output is as expected.

The problem is when I run the application directly from your local ("Release" folder). When I click on the button that performs the above referenced process, the interface freezes as expected, but if by chance I click the mouse over any part of the interface the program enters the "Not responding" state and hangs.

The problem only happens if I start execution other than from Visual Studio.

Does anyone know how to solve this problem?

    
asked by anonymous 26.04.2017 / 23:21

1 answer

1

You must do this processing using a thread.

So you leave the interface "free" while the secondary thread does the heavy lifting. Even with this you can put a progress bar to show the user you are working on.

    
27.04.2017 / 02:47