I made a C# windows application in visual c# express 2008. I executed the exe file seperately on my PC and it worked perfectly.. Now when I ran the same file on another computer having vista an error occurred "WindowsFormapplication has stopped working". On my computer too it stops working after 5-10 min. So is the problem with my code or is it anything else?
I am a newbie here... Any help would be appreciated..
Edited.....
It uses timers:
System.Timers.Timer timer = new System.Timers.Timer();
timer.Elapsed += new ElapsedEventHandler(startup.onTimerEvent);
timer.AutoReset = true;
timer.Interval = 60000;
timer.Start();
Application.Run();
GC.KeepAlive(timer);
It also creates and sets a registry key..