LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Having problems closing a file that was sent as an attachment using .net protocols...

I am attempting to use the gmail.vi attached below as a subvi within a larger program.  I want to send a file as an attachment and my problem arises when I try to access a file later on in the vi that was sent as an attachment earlier by the gmail.vi.  How do I close that file so that it can be accessed later?  I tried closing all of the .net refs but it still doesn't close the file itself which must be opened at some point?  Hopefully someone out there knows this answer!

 

Thank-you so much!

 

 

0 Kudos
Message 1 of 5
(2,779 Views)

I'm unable to replicate the condition. I tried sending a few different types of files and each time I was able to open the file from my system. LabVIEW was still running, and the VI was still loaded. Does this happen with specific types of files, or all files?

0 Kudos
Message 2 of 5
(2,773 Views)

In the second sequence of my vi after running the gmail subvi in the 1st sequence and sending a file (normal .txt file) as an attachment  - I try to open the file using open/create/replace file and an error occurs. 

0 Kudos
Message 3 of 5
(2,769 Views)

Here is a simpler example of the error...

0 Kudos
Message 4 of 5
(2,764 Views)

here is the subvi

0 Kudos
Message 5 of 5
(2,763 Views)