Different Behavior Depending on Launch Method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jtm5044
    New Member
    • Dec 2008
    • 2

    Different Behavior Depending on Launch Method

    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
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    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.

    Comment

    • jtm5044
      New Member
      • Dec 2008
      • 2

      #3
      Thank you RedSon! Actually the problem was I was attempting to attach a file to the email with the path "..\\..\\(M Y 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!

      Comment

      Working...