473,467 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Difference between F5 et running directly the debug exe

Hello there -
I've got the following problem: my C# app (an .exe using different
dlls) has a different behaviour regarding the way I launch it.
The right behaviour when I press F5 from Visual C# Express, and the
wrong when I launch the exe file from the bin\debug directory.
What's the difference between the 2 calls ? This is the same .exe !
Are dll loaded differently ?
The difference is an object which becomes empty for an unknown reason.

Thanks!
Antoine.

Nov 29 '06 #1
3 3007
When you run an object in debug mode (F5) objects aren't cleared by the
GC in the same way that they are when you run the release version. The
reason being that they are kept alive so you can do things like view
them in the debugger and check what there values are etc... This
probabally has a lot to do with your problem.

caveat: *i'm a complete novice, what i say may be completely wrong...*

HTH Gary.

Antoine P. wrote:
Hello there -
I've got the following problem: my C# app (an .exe using different
dlls) has a different behaviour regarding the way I launch it.
The right behaviour when I press F5 from Visual C# Express, and the
wrong when I launch the exe file from the bin\debug directory.
What's the difference between the 2 calls ? This is the same .exe !
Are dll loaded differently ?
The difference is an object which becomes empty for an unknown reason.

Thanks!
Antoine.
Nov 29 '06 #2
Hello there -
I've got the following problem: my C# app (an .exe using different
dlls) has a different behaviour regarding the way I launch it.
The right behaviour when I press F5 from Visual C# Express, and the
wrong when I launch the exe file from the bin\debug directory.
What's the difference between the 2 calls ? This is the same .exe !
Are dll loaded differently ?
The difference is an object which becomes empty for an unknown reason.
Yes, there are differences because you are running from within a debugger
when using F5. In addition, you are likely running your app inside of a Visual
Studio hosting process. So, when you press F5, things *do* run differently
when you run your app outside of Visual Studio. Normally, the debugger doesn't
cause problems but there are cases where it can be intrusive.

Are you able to isolate the problem and reproduce it in a small demo app?
If you can create a reproducible case, it'll be easier to figure out exactly
what is happening and how the debugger is interfering.

Best Regards,
Dustin Campbell
Developer Express Inc.
Nov 29 '06 #3
Thanks for your answers, i'm now pretty sure this is caused by the
GC...even if 'cause' is not the right word ;) I've got a bug, I now
have to find it...
The thing which is complicating the whole stuff is that i'm using IKVM
(i'm using DevExpress components too, but this is not linked :) ), so
this is a java object which is garbage collected...i'll check with
Jeroen Frijters :)

Love IKVM, Love DevExpress

Antoine.

Nov 30 '06 #4

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

Similar topics

0
by: Peter Row | last post by:
Hi, I have written a DLL that implements IHttpHandler methods, i.e GetHandler, ProcessRequest etc... I also automatically login visitors to the site as an appropriate guest (based on browser...
1
by: Lee Connell | last post by:
I can't seem to figure out how to debug my own asp.net apps on my windows 2003 small business server thats running sharepoint. When I try to debug an app it tells me the project is not configured...
3
by: Jarod_24 | last post by:
Dim p As Diagnostics.Process Debug.WriteLine(p.Id) Debug.WriteLine(p.Handle) What is the difference between a process's ID and Handle I see that they are different, and i know that the...
3
by: Oenone | last post by:
In VB6, it's possible to create a project with a class library within it. The project can then be run with F5, and it sits and waits for an external process to create an instance of one of its...
13
by: John Salerno | last post by:
If I want to write my code in a separate text editor (I like UltraEdit) but then press a single button to have that code run in the IDLE environment, is that possible? I know that you can configure...
9
by: esakal | last post by:
Hello, I'm programming an application based on CAB infrastructure in the client side (c# .net 2005) Since my application must be sequencally, i wrote all the code in the UI thread. my...
10
by: TS | last post by:
i just noticed the website i created in VS 2005 is running on a different port than the default. I see that it is running on the local web server, and also that the website i created isn't in IIS....
5
by: Jonas Hallgren | last post by:
Hello, Is there any general tips on how to solve this problem: my Debug version runs fine but when I do a Release version I get error messages!? I'm hoping it is a simple option somewhere or...
7
by: alexbf | last post by:
Hello, I have a stored procedure in SQL Server 2000. When I execute it through my .NET application (OleDbCommand), I can see (in SQL Profiler) that it takes 423 ms to complete. If I run the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.