I created a TaskBar application in Visual Studio which minimizes itself inside the system tray and show notifications to the user based on the database change. Whenever a new task assigned to the user he will notified at the system tray like a balloon popup. But whenever the applications runs for an average 15 hours time suddenly my applications crashes and shows out of memory exception. So i have some questions please answer them.
- How can i debug this issue ? I can’t wait for 15 hours and check for this issue ?
- Is there any tool available to check the memory leakage of my application which can directly point at my issue ?
- How can i generate out of memory exception to my program so it will be debugged easily and fast ?
- What should i do to avoid memory leakage in my code ?
Image of my application : 
You can examine the stack trace as follows (posted as an answer so it would format correctly):