Help figuring out why my program doesnt run on another computer
I have this C# application I wrote which runs fine on my computer. When I copy it to another computer (that has .NET installed) and run it, nothing happens. No errors or warnings. It momentarily appears in the process table and disappears.
How am I supposed to figure out what is wrong if I do not even get some kind of error telling me why it will not run?
[371 byte] By [
DeepT] at [2007-11-20 10:38:57]

# 1 Re: Help figuring out why my program doesnt run on another computer
You can wrap the entire main() in a try/catch or look in the system and application event logs
If nothing there then it isnt exiting abnormally..
cjard at 2007-11-9 11:35:42 >

# 2 Re: Help figuring out why my program doesnt run on another computer
It may be exiting normally, so, you may have to write some trace logs to verify for sure. . .
# 3 Re: Help figuring out why my program doesnt run on another computer
So when a CSharp program 'crashes' it shows up in the application event logs? Do 'debug' versions of C# programs work on systems without development enviroments?
DeepT at 2007-11-9 11:37:42 >

# 4 Re: Help figuring out why my program doesnt run on another computer
depends on which type of 'crashes'.
in normally if an exception occured in your program and there not being handled ,then will pop a dotNet Runtime Error Dialog and some infomation will on the Dialog form.
but somehow you may use try catch statement to catch the exception
eg:
try
{
}catch
{
Application.Exit();
}
the program will be exited sillently.but if both not. considering the Net Framework Service may be 'crashed'. i suggest you to reinstall the framework.
# 5 Re: Help figuring out why my program doesnt run on another computer
a way to try is to make an install packet from visualstudio
if the application depend on any dll's
or servicepack or version of .net
it should autoinstall it
# 6 Re: Help figuring out why my program doesnt run on another computer
I meant to get back to this earlier, but what is an install packet and how do I make one?
DeepT at 2007-11-9 11:40:46 >

# 7 Re: Help figuring out why my program doesnt run on another computer
if you use visual stuio it's on the list of other projects when you pick new
just add a install project to your normal project and add the primary output from your project as source then it knows all the dependencies