O'Reilly logo

C# 2008 and 2005 Threaded Programming: Beginner's Guide by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - Isolating results

Using the debugging techniques learned to isolate a single thread, you can show the results of one encryption thread in the Immediate Window. This way, you will be able to explain to the FBI agents what just happened in the encryption procedure. Furthermore, finally, they will be happy with you!

Now, we are going to isolate the thread as we did in a previous example, but using our recently added code to the Encrypt procedure to show partial results in the Immediate Window as the text is being encoded:

  1. Stay in the project, SMSEncryption.
  2. Define a breakpoint at the line int liThreadNumber = (int)poThreadParameter; in the ThreadEncryptProcedure procedure code.
  3. Enter or copy and paste a short text, using the same lines ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required