Tuesday, December 26, 2017

Datacap360 Channel gets 10,000 view

I started this Datacap Youtube channel at the end of 2016 and after more initial views than I expected I set a goal in July to have 10,000 views by the end of the year. The channel surpassed 10,000 views just before Christmas. Thanks to everyone for watching. I'm working on more Datacap videos and probably going to start a how to program (games focus) channel this year. https://www.youtube.com/c/Datacap360 The goal now is 100k views by the end of 2018. Merry Christmas everyone. Thanks, Wood

Monday, March 20, 2017

C# trick to launch runtime debugger

I have used this trick quite successfully many times to launch a debugger from a running application. It works really well for things that are hard to debug.  Things like DLLs that might be running under a different application, or display tasks that happen periodically and launching the application in the debugger might change the way the application runs and not cause the bug you are looking for.  It works by basically crashing the application with an exception which brings up the dialog to allow you to continue or debug.  You can have visual studio already loaded with the application and choose that instance of VS from the list.  It is a one liner that you add to your code.

So simple. In your C# code, simply add this line.

Debugger.Launch();

You can do this in any language, but I'm using c# at the moment so showing that. This is very handy.