Hello Community,
I have an urgent problem to which I would appreciate quick replies. I have written a program for a school project which graphs mathematical equations. Within Visual Studio (in debug mode) everything works perfectly. However, when I publish the program and run it as an installed application, I get the following problem:
If the user enters a complicated function, the prorgam can take considerable time (i.e. about 10 seconds or more) to compute its graph. The graph is first generated in memory on a bitmap and then printed onto a control using GDI+. The problem is that sometimes windows indicates that the program has stopped working while the graph is still being computed, which of course is not the case - its just taking a long time. When the computation actually finishes, the program window flashes, probably redrawing itself, and that causes the graph to be computed again. This in turn results in Windows thinking the program crashed again and so the loop continuous. I really have no idea what is causing windows to think that the program is not responding, as it works perfectly in Visual Studio... I am using Windows 7 and .Net 4. I will of course give any other details/coding required to solve this problem. I am quite frustrated as I have to hand the program in soon :bawling:....
Thanks for helping out!
I have an urgent problem to which I would appreciate quick replies. I have written a program for a school project which graphs mathematical equations. Within Visual Studio (in debug mode) everything works perfectly. However, when I publish the program and run it as an installed application, I get the following problem:
If the user enters a complicated function, the prorgam can take considerable time (i.e. about 10 seconds or more) to compute its graph. The graph is first generated in memory on a bitmap and then printed onto a control using GDI+. The problem is that sometimes windows indicates that the program has stopped working while the graph is still being computed, which of course is not the case - its just taking a long time. When the computation actually finishes, the program window flashes, probably redrawing itself, and that causes the graph to be computed again. This in turn results in Windows thinking the program crashed again and so the loop continuous. I really have no idea what is causing windows to think that the program is not responding, as it works perfectly in Visual Studio... I am using Windows 7 and .Net 4. I will of course give any other details/coding required to solve this problem. I am quite frustrated as I have to hand the program in soon :bawling:....
Thanks for helping out!