Crazy day: filesystemwatcher, sharpziplib, virtual machine, IPC and others

Source: Internet
Author: User

There are so many busy things today. If I don't want to check it next Monday, I won't try so hard.

This morning I tested a small package named mp3splitter.ProgramI found that only one folder in the installation folder of the program was caught, and it was quite strange. I observed it with Filemon and found that all the files were there. So I began to suspect filesystemwatcer-relatedCodeNow. I checked several back and forth and found that the problem may occur without considering rename. some software will create some temporary files during the copy or download process, and correct the names when the files are copied or downloaded, such as thunder. I added the renamed event of filesystemwatcher. then we found that the registry was not captured correctly, and a lot of important information was not captured. this is because I only set a process to be monitored when calling regmon. the mp3splitter will create one at the end of the installation. the temp process is mainly used to process registry operations. look at the one in the task manager. I can't believe my eyes in TMP. it seems that I can only use the exclusion method.

The installation script has not found any problems, so I began to write and upload it. at the beginning, we planned to upload the installation package from windows to the Linux server, so I added an upload function to the C # program using SFTP. later, considering that it is difficult for Linux to actively transfer files to Windows (Samba can be used to achieve mutual access between Linux and Windows files, but it does not meet my requirements, because I want Linux to take the initiative to send files to Windows for automatic execution, and the target Widnows host may have just been installed and there is no additional software on it ). later I thought it would be easier to put the Windows Installation Package on a Windows host. this saves the trouble of turning around in Linux. on the Linux server, you only need to add a record to the database. so I wrote it like this. A new windows virtual machine is created on the Linux server, and The ServU is installed to store the software installation package in windows. In addition, the software deployment on other Windows Target machines is realized through IPC $. C # It is very easy to implement FTP upload in it, but a problem later puzzled me for a long time. two windows virtual machines are installed on the Linux server. One is the proxy machine (acting as the FTP server and executing remote deployment), and the other is the target machine, that is, the machine where the software is to be deployed. the IP addresses, gateways, and DNS addresses of the two machines are set correctly. but they cannot Ping each other, and real machines cannot ping them. we have been busy for this for a long time. At, our senior student found the reason. It turned out to be 802. X settings. the Windows virtual machine on my own host can ping the firewall. the final problem solved is the problem of IPC connection. I found the cause on the Internet. It turns out that the sharing of simple folders was not removed.

In the afternoon, I also encountered a thread problem, which is also a bug in my program. I should declare a member of the thread class and put the result in the function, the thread is invalid after the function is executed. but what I don't understand is why it often works normally. some time in the middle, my zip compression function encountered an error. After debugging for a long time, I did not find the cause. I don't know how to do it. I was calling the thread, so I was not sure why.

I had to write a PHP Web page, but it didn't work. I almost never use PHP now. I wrote one during my junior year internship, But I just used it for a while. it's only a year since now, and I have forgotten it. however, it does not seem very difficult.

We need to test it in a centralized manner tomorrow.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.