Note that there are some explanatory texts on larger screens.

plurals
  1. POVB program works fine when stepping through but crashes when ran with the .exe
    text
    copied!<p>This is a weird persistant issue I am having with a small visual basic program.</p> <p><strong>Problem:</strong> The excutable of the vb program crashes when trying to run but when I step through the program inside of visual studio it runs successfully.</p> <p><strong>Details:</strong> The program performs a winscp.com transfer from a ftp server and then takes the downloaded file and extracts the data from it before sending it to a webpage. The program also decrypts a des3 encrypted file which holds the login details for the sftp server and the webpage.</p> <p><strong>My Thoughts:</strong> I was thinking this could be something to do with the excutable jumping ahead of the slower transfer and decrypt functions thus causing a "file not found" exception to be produced and the program to exit. Lending to this if I slowly (aka spend 10+ seconds stepping through the code) move through the code it works just fine.</p> <p><strong>Solution:</strong> I was thinking of including some kind of checks inside the program to make sure that the file exsists before moving on but I still wanted to get your guys opinion.</p> <p>Thanks!</p> <hr> <p><em>As requested</em> <strong>Crash Messages:</strong> (I capture everything in exceptions and exit properly so no "crash" is reported but the error I get in my logs is as follows:)</p> <p><strong>1st run</strong> with standard test case: Could not find file 'C:\Users\Administrator\Desktop..\ILC2INFOENC.txt'</p> <p><strong>2nd run</strong> standard case (the file above was not deleted by my cleanup function either as it could not be found) Could not find file 'C:\Users\Administrator\Desktop..\ILCNETSL10663.csv'</p> <p><strong>Background:</strong> The first file that is found missing is the encrypted login information file while the second file is the winscp.com downloaded csv file.</p> <hr> <p>Thanks again for all the help and suggestions.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload