theDeSilva.com Andrew de Silva

Search process that has locked a file on Windows

April 26th, 2011 · No Comments · Uncategorized

To know which process has locked a file, you may use Process Explorer. It can shows you information about which handles and DLLs processes have opened or loaded the file that is locked.

  1. Click the Find menu, and choose Find Handle or DLL…
  2. Type the file name (this is the name of the file that you cannot access/delete)
  3. After typing the search phrase, click the Search button
  4. Once it returns the list of application that is accessing your file you can either close the application manually or use Process Explorer to terminate it

 

→ No CommentsTags:

Firefox – Flash Debugger Player Crash

February 25th, 2011 · No Comments · Flash, Flex

If you are using the Flash Debugger Player like I do to debug your work , you will soon to realized that the newer versions of Firefox tends to crash whenever the debugger prompts a warning. This is happening because Firefox will kill the debug session and cause it to crash Firefox. Here’s a solution to it

1. Goto addresss bar and type in about:config
2. Click on the I’ll be careful, I promise button.
3. Type dom.ipc.plugins.timeoutSecs
4. Find value and double click and change the value to -1

Viola and now your flash debugger player will stop crashing each time it throws a warning as you have changed the default timeout value from 45 to unlimited.

→ No CommentsTags:

Find your Base Path / Local Directory using VB.NET

September 20th, 2010 · No Comments · .NET

Here’s a fast way to find what’s your application base path. Why do you need to do this ? This is extemely handy when you are trying to figure where your files are hosted on the hosting company. It’s not always easy to figure out this path.

Response.Write(System.AppDomain.CurrentDomain.BaseDirectory)

→ No CommentsTags:

ReferenceError: Error #1069: Property startDrag not found on flash.text.TextField

August 4th, 2010 · No Comments · Flash, Flex

Here’s a quick solution to the error ReferenceError: Error #1069: Property startDrag not found on flash.text.TextField . This normally happens when you are trying to get the TextField to drag.

 
textField.addEventListener(MouseEvent.MOUSE_DOWN, drag);
textField.addEventListener(MouseEvent.MOUSE_UP, drop);
 
// by setting mouseChildren = false it makes the drag function to use the container 
// of the movie clip rather than the compenent within the movieclip. 
// This is where the ReferenceError: Error #1069: Property startDrag 
// not found on flash.text.TextField is coming from 
 
textField.mouseChildren = false;
textField.text1.selectable = false;
 
function drag(e:MouseEvent):void {
	e.target.startDrag();
}
 
 
function drop(e:MouseEvent):void {
  	e.target.stopDrag();
}

→ No CommentsTags:···