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

Home Posts Topics Members FAQ

Different Behavior Depending on Launch Method

2 New Member
Hello,

I am writing an application that will monitor a directory and when a new file is saved into that directory, it will open the file, extract the information needed and send an email with the information to the correct recipient. The program works great when I run it from the debugger (Visual C++ 2008) and all emails are sent, however when I attempt to run the *.exe file from the release folder, it appears to be doing the job (I get no errors) however the emails are never sent. I am so confused as to why it would work fine from the debugger, but not from the release folder, any suggestions?

Thank you for your time!

P.S. I am building and compiling in "release" mode
Dec 30 '08 #1
2 1505
RedSon
5,000 Recognized Expert Expert
You should try outputting a log file after each element of your program so you can trace the runtime execution of your release exe. Sometimes debug apps run with different permissions or with different timing than a release image.
Dec 30 '08 #2
jtm5044
2 New Member
Thank you RedSon! Actually the problem was I was attempting to attach a file to the email with the path "..\\..\\(MY FILE HERE)" and this was causing the issue. I can only guess that the *.exe didn't know where the heck I was talking about, however it knew when I ran it using the debugger! Thanks again for your help!
Dec 30 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: nebjy | last post by:
Hi, I've got a problem where I want to have an interface to a Graphics class (though the nature of the class isn't relevant to the problem), and I want to have a method that returns a pointer to a...
0
by: adbarnet | last post by:
Hi, A second question... In my treeview control, I would like to offer the user the ability to right click on a tree-node, and depending on the type of node clicked provide them either a list...
0
by: Raghu Rudra | last post by:
I have an ASP.NET web application, which accepts posted xml to do its work and returns response xml. This xml is large and is in the order of 1MB. I started testing this web app with client utility...
0
by: MilanB | last post by:
Hello, I understand that it is possible to set application level and page level behavior of session state cookieless. Is it possible to set different behavior for session level. In my case some...
4
by: yannis.corre | last post by:
Hello, I don't understand the difference of behavior of these two webservers : I'm uploading a file and I launch a thread that makes some treatments with the Request.Files. I saw that a new...
7
bugboy
by: bugboy | last post by:
Hi, I'm just learning PHP. I want to redirect the user, after hitting submit, either to the same page displaying the results (as it is now) or if no results are found then send them to a new page...
9
by: jay123 | last post by:
hi all, what i am trying to do is i have three folders 1) sentto 2) error 3) sent i am using web services in which we give the name of XML file ( which is in sentto folder. when the name...
5
by: maraa | last post by:
Hi, I am working on a website (set-up in Wordpress) in 5 languages, each language is in one folder: domain.com/en/, domain.com/es/ etc. Now I want for example in the sidebar and in the header...
1
by: Kat Magic | last post by:
I need to be able to display data in a different decimal format depending on the value of a selected column ("myDecimalData"). Below does not work, every value is displayed in hundredths, and I do...
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
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
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: 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...
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.