473,804 Members | 5,054 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

running c# executable....

fellow c# programmers...

i need some help....
i have created a program, a module that is part of another bigger
program...
when i debug it, by pressing F5 in the IDE, it runs so well i can
hardly wait to show it to my project leader...
but when i try to run the executable created by the IDE, the .exe file
in the Debug folder, it catches exceptions and stops the program...

what bothers me so much is that:
1) it runs so well when i debug it(pressing F5 in the IDE), but the
..exe file doesnt...
2) my deadline is already here!!!!!!!

please tell me what to do with this one....
thanks in advance...

Nov 17 '05 #1
14 1790
You're going to need to ask specific questions in order to get help, I
think. We'll need to see your code.

tracernet_v2 wrote:
fellow c# programmers...

i need some help....
i have created a program, a module that is part of another bigger
program...
when i debug it, by pressing F5 in the IDE, it runs so well i can
hardly wait to show it to my project leader...
but when i try to run the executable created by the IDE, the .exe file
in the Debug folder, it catches exceptions and stops the program...

what bothers me so much is that:
1) it runs so well when i debug it(pressing F5 in the IDE), but the
.exe file doesnt...
2) my deadline is already here!!!!!!!

please tell me what to do with this one....
thanks in advance...

Nov 17 '05 #2
"jeremiah johnson" wrote:
You're going to need to ask specific questions in order to get help, I
think. We'll need to see your code.

ok then...
i just want to ask for some tips on what to do regarding this matter...
as for the source code, i do not think i could, the project is a bit
classified...

but i just would like to ask if you guys had encountered this one...
when i try to debug the program, that is by pressing F5 in the IDE, the
program works very fine and runs without throwing any exception...

as we know the IDE would create the equivalent executable file in the
Debug folder of the working folder right...?
when i try to run that executable file, it runs smoothly but throws some
exceptions which had been filtered already...
i can see the executable catches some errors when it shouldnt have...

please help... give me some tips on what to do with this...

acem-tracernet
software devt staff

C# programmer

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 17 '05 #3
tracernet_v2 <hy******@gmail .com> wrote:
fellow c# programmers...

i need some help....
i have created a program, a module that is part of another bigger
program...
when i debug it, by pressing F5 in the IDE, it runs so well i can
hardly wait to show it to my project leader...
but when i try to run the executable created by the IDE, the .exe file
in the Debug folder, it catches exceptions and stops the program..


As ever, if you've got exceptions you don't understand, it would really
help if you could at least tell us what those exceptions are.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #4
"Jon Skeet [C# MVP]" wrote:

As ever, if you've got exceptions you don't understand, it would really
help if you could at least tell us what those exceptions are.


actually, i have understood the exceptions, i had even trapped them....
but my real problem is that the executable catches exceptions(i had
trapped before) and end immaturely....
it bugs me because when i try debugging the program while it is in
development stage, that is when i press F5 in the IDE, the program runs
smoothly without any exception to immaturely end it...

-----
acem-tracernet
software devt staff

C# programmer

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 17 '05 #5
tracernet_v2 <hy******@gmail .com> wrote:
As ever, if you've got exceptions you don't understand, it would really
help if you could at least tell us what those exceptions are.


actually, i have understood the exceptions, i had even trapped them....
but my real problem is that the executable catches exceptions(i had
trapped before) and end immaturely....
it bugs me because when i try debugging the program while it is in
development stage, that is when i press F5 in the IDE, the program runs
smoothly without any exception to immaturely end it...


That doesn't really help us to pin down what's wrong though, does it?
Effectively, you've just given us:

"My program works in the debugger but doesn't work outside the
debugger."

Can you see how that makes it rather difficult to help you without any
more information?

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #6
"Jon Skeet [C# MVP]" wrote:
tracernet_v2 <hy******@gmail .com> wrote: That doesn't really help us to pin down what's wrong though, does it?
Effectively, you've just given us:

"My program works in the debugger but doesn't work outside the
debugger."

Can you see how that makes it rather difficult to help you without any
more information?


yes... yes... that is it!!!!
that is my problem...
My program works in the debugger but doesn't work outside the
debugger...
can you help me? can you give me some tips on how to deal with this
problem????

thanks so much in advance....

-----
acem-tracernet
software devt staff

C#-VB.NET programmer

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 17 '05 #7
tracernet_v2 <hy******@gmail .com> wrote:
"Jon Skeet [C# MVP]" wrote:
tracernet_v2 <hy******@gmail .com> wrote:
That doesn't really help us to pin down what's wrong though, does it?
Effectively, you've just given us:

"My program works in the debugger but doesn't work outside the
debugger."

Can you see how that makes it rather difficult to help you without any
more information?


yes... yes... that is it!!!!
that is my problem...


Yes, and the problem *we've* got is that that's just not nearly enough
information.

What would you do if a developer said to *you*: "My program doesn't
work. What's wrong?"
My program works in the debugger but doesn't work outside the
debugger...
can you help me? can you give me some tips on how to deal with this
problem????


I suggest you start cutting down your program until you've got a short
but complete program which demonstrates the problem. That program will
almost certainly not need to have anything confidential in it, which
means you'll be able to post it here, if you haven't already found the
answer by going through the exercise in the first place.

See http://www.pobox.com/~skeet/csharp/complete.html

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #8
"Jon Skeet [C# MVP]" <sk***@pobox.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...

yes... yes... that is it!!!!
that is my problem...


Yes, and the problem *we've* got is that that's just not nearly enough
information.


It must be a wind up Jon.

He'll probably tell us that it's a System.VagueExc eption.

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton
Nov 17 '05 #9
ok...
thanks for the suggestion...
i will try to do that...

but any way, my problem is very similar to that one...
my program works well in the debugger, but it doesnt work outside the
debugger...
so for now i would like to ask if you have gone through that one, and
what did you do.. did you do something to the properties or any thing
around the debugger...?

just want to know....

-----
acem-tracernet
software devt staff

C#-VB.NET programmer

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
29407
by: Johnny | last post by:
How do I create a link on a Web page on my hard drive that will run an executable file on my hard drive? For example, let's say I create runpoodle.htm and save it to my hard drive, and let's also say I have an executable file on the root of C named c:\poodle.exe. How can I create a link of some sort on runpoodle.htm that will run poodle.exe on c:\ ?
6
1316
by: foldface | last post by:
Hi Sorry, don't know how to phrase the question any better. Within Visual Studio I have a style sheet that being dynamically added to the code, i.e. not via the html page. I want to place this within a html page so that the VS designer can see the style sheet but the running executable can't #ifdef RUNNING_IN_VS
3
1930
by: BobAchgill | last post by:
I am using FTP built in to my application to update the application and data from a server... What is the normal method folks use to over write the application while the program is active? What I am running into is that the FTP code will not over write the .exe while the application is running. Do any other types of application extension files have the same issue with not wanting to be updated while the application is running: .dll,...
4
4678
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients and a desktop shortcut to the exe out on the network)... but is it really a good idea? What are some arguments for and against running a .NET Windows Forms client from a network share? Here is my initial list... I'd appreciate any additions,...
17
2652
by: Csaba Gabor | last post by:
Is there a way to determine the path to the php executable (as opposed to the script. In other words, I am looking for the path to php.exe or php-win.exe) that is currently running (ie. how was this script called) on Windows (I'm on Win XP Pro)? WScript/CScript (when programming in VBScript) allow this, for example. Failing that, is there any way to conclusively determine whether the script that is running was invoked from php.exe or...
9
1861
by: Andrzej | last post by:
Greetings. Is there any project of universal environment for running programs written in C++ ? For example a programmer compiles program using compilator and linker that produces universal executable file (not system executable file) and then he starts that program using some kind of emulator that can be implemented in any platform. That is like Java but only for C/C++ programs. Is there somewhere such project ?
10
5156
by: jon | last post by:
I am a beginner C programmer, this is actually my first programming lanugage, besides html, cgi, and javascript. I am looking for a way to make an .exe file, or a copy of my own file. I have tried writing a file, compling it, and reading it in a notepad, then writing a program to write it again, but i have had no luck. I assure you i'm not trying to create the next big virus, or worm, but only trying to expaned my knowledge on what...
4
3029
by: somank.sharma | last post by:
I am running an exe created in C. I need the full path (absolute path) of this exe. In the first argument of main, I am getting the exe name. How can I get the full path for this exe.
2
1833
by: NasirMunir | last post by:
I am trying to run an executable using shell. The executable look for certain files in the same directory and then run on those files. My problem: I have created a form which asks from the user to locate those files using browse option. Then I ask the user to locate the executable. The next step is to copy the executable to those files directory. Everything is dandy uptil here, but when I use the shell to run that executable, the executable...
4
3147
by: Brad Pears | last post by:
I have a vb.net 2005 project and have made a lot of modifications to it. The project runs fine in debug mode. Now I want to implement it and first I am running the executable on my machine to make sure it runs properly... However, when I run it locally as an executable, I get no end to run time errors - things like conversions from type string to integer etc...etc.... There's seems to be a billion problems all of a sudden. I have option...
0
10577
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9150
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5521
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.