Another two trick I discovered recently:
1. How to unlock a file/directory that is locked by a unfriendly process?
On Windows, you cannot delete or rename (move) a file/directory if it is
locked by a process. There is a way to do it (CreateRemoteThread). See
http://social.msdn.microsoft.com/Forums/en-SG/csharpgeneral/thread/9e2044c5-ae5d-4552-a335-01cc567dfc58. But if I want a tool to do it, then,
Unlocker is all you need.
2. How to check memory leak on Windows?
Well, using MSVC runtime, you can use the crtdbg interface. The post is here:
http://msdn.microsoft.com/en-us/library/e5ewb1h3%28VS.80%29.aspx
Thursday, January 28, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment