thank your reply. I think that works.
Here another question rises due my further investigation on not only downloading a file through ftp, but also through http. do you have any idea how to use NT commands to download a file from a web like http://www.mydomain.co m/data/datafile.zip ?
Thanks in advance.
User Profile
Collapse
-
FTP a dynamic file with year and month
Do somebody know how to come up with a dynamic file name when ftp it ? I need to download a monthly updated file. The file name appears like datafile_yyyymm .zip where yyyy mean year 2008, and mm mean month 02. -
I think the problem has been resovled. The problem I guess is because I did not close the StreamWriter. When I add code to close the streaWirter, the problem goes away.
Thanks for all you guys' comments and help.Leave a comment:
-
it is writing to one log file for multithreads and I am using a static WriteLogEntry method.
Today I created a dummy project to see if it is the problem of multithreading. But it looks I can run 1000 threads without any problem (message lost) to WriteLogEntry to one log file.
Actually there is only one batch log file of the 7 batch log files missing the log message from middle somewhere from where there are no any logs....Leave a comment:
-
Thank your reply.
But I have no space problem. The space still has 10 GB. No security, permission problem, because it has already been written several hundreds bytes log. I used to guess it is a problem of dead lock, because I use multithreading. However I already took care of the thread safe issue. Because of the complication of the multithread logging, so it is still the candidate. Another candidate is buffer flushing problem....Leave a comment:
-
StreamWriter is not reliable
for who have any idea about my question.
I have a multithread middle tier engine and use StreamWriter to log events to console and files. I run the engine for whole night (6 - 10 hours) and there are 8 batch log files generated. Sometimes some log files (one or two of 8) is cut off on the very last portion. I thought it might be because buffer is not flushed out. But I use AutoFlush and Flush. The problem still exist. Do some body...
No activity results to display
Show More
Leave a comment: