Hi guys,
Hope everyone is having lovely summer. I am having a bit of the tough time with my app.
Basically, I nearly finished programming my c# app, over 24-h tests at certain point my app crashed. I cleared that part of the code that causes error. However, now when I open my app, it starts minimised and I am able to see it on the bottom of my windows taskbar (not the one on the right side, the one more in center). When I click on it, nothing happens, it doesn't maximize. My development completely stopped now.
I am worried as I don't know what happened. What caused this? Never ever had this happened before when I was developing any c# apps.
Please, if someone can help me to overcome this issue and tell me, what's wrong?
Thank you everyone for your help.
Loading

TommyPosted Aug 12, 2013, 7:19 PM
Thank you for your time and trying to help me with my issue. Unfortunatelly possibly you missunderstood what exaclty the issues I was having with my app and you were unable to answer to my question, how can I resolve it. But I really appreciate the efford. Keep up the good work!
I managed to find the solution myself, rename app.exe and it will open maximized/appear on desctop. But I still can't get over, why does it happen. Thank you again :)
Regards
Posted Aug 1, 2013, 5:02 AM
Posted Aug 1, 2013, 5:00 AM
Do you have the source code of the app? If yes, try the below one.
In the form load event, try to get the windows state.
MessageBox.Show(this.WindowState.ToString());
if (this.WindowState == FormWindowState.Minimized || this.WindowState == FormWindowState.Normal )
{
this.WindowState = FormWindowState.Maximized;
this.Refresh();
}
In your machine, you should be able to get some information from Eventviewer. Try to get that and share with us.
TommyPosted Aug 1, 2013, 4:12 AM
Sorry for the delay and thank you for your interest to help.
First of all more info.
OS: Windows 7 Ultimate
Application: Standard C# Win App
Framework Version: 4.5
This application basically reads xml docs based on time. I've left the app to test for few days and suddenly something happened that it have me exception error (can't even recall it which one) and when I reopened the app it just doesn't show on the screen.
I attach screenshot just to have an idea. When I open my app, the app itself appear on taskbar. However when I click on it (as you can see there's no maximize even available) I cannot open it so it can show it on the screen. So, it seems I have app running but it just all minimized. I am able to kill the app from taskmanager.
Since I programmed this app I made loads of reviewd versions. Tried to run previous versions, it still the same. Also tried clean build, but still the same.
I am physically unable to test it on other pc's as the system which I use for this purpose is only on that pc. I have the feeling that when that error happened while I was testing my app something was maybe dumped or owerittten onto OS or somewhere that does this with exactly this app.
Please note, other c# apps can be open as normal. Maybe some file excist or something withing bin build or anything that I can remove so it will work all over again?
Thank you again. Any ideas what's wrong?
Posted Jul 27, 2013, 5:31 AM
Can you please provide more information?
What kind of application is that? Is it MDI app or Service based app / single instance app?
What is your OS version , .net framework version?
How you killed the appname.vshost.exe + your appname.exe from task manager?
Does the application run properly in any other machines?
If possible, please post some kind of screenshots?
Try with clean build.