Skip to content

Delete File or Folder path in C#

Following is a C# code snippet to delete a path (file or directory). First we have to determine whether the path is a file or a folder and then call appropriate Delete methods. In case of directory, you can specifiy whether the contents should be recursively deleted before deleting the directory. void DeletePath(string path) {…

Read More

Garbage Collection in Windows Mobile and Low memory conditions

Garbage collector is a piece of code responsible for allocating and freeing unreferenced objects in a managed application. Garbage collection operation is invoked whenever: the application calls GC.Collect() method CLR cannot allocate memory for an object the application loses focus and goes to the background the system sends WM_HIBERNATE message to the managed application If…

Read More

Understanding Windows Mobile Application Security Policies

Execution of programs on Windows Mobile devices depends on the application signatures and their permission levels. Devices can be configured to the following security settings. Security off Unsigned applications are allowed to run without any prompt and they can access privileged APIs, or protected areas of the registry and file system. One-tier prompt The device…

Read More

How Max recovered his lost mobile phone? (Complete Story)

Max left his office after a hard day at work. As soon as he got into a taxi outside the office, his phone started ringing. The call was from the boss who asked Max to immediately respond to an important client’s email. Max kept his Windows Mobile phone aside on the empty seat before taking…

Read More