Welcome to MSDN Blogs Sign in | Join | Help

September 2006 - Posts

Using CreateRemoteThread from C#

If you want to create a new thread in your process in C#, you can use Thread.Start . But things are a little harder if you want to create a thread in another process, ala kernel32!CreateRemoteThread . Disclaimer : CreateRemoteThread is evil, could dead-lock,
Posted by jmstall | 6 Comments
Filed under:

How to start a console app in a new window, the parent's window, or no window

The ProcessStartInfo.CreateNoWindow property says "Gets or sets a value indicating whether to start the process in a new window." and later " true to start the process without creating a new window to contain it; otherwise, false . The default is false
Posted by jmstall | 4 Comments
Filed under: ,

The Nintendo DS is awesome!

I got myself a Nintendo DS . It's amazing! It's the first gameboy / handheld gaming device I've ever purchased. The things I like most about it: The New Super Marios Bros : Great software sells a platform. This was the big reason I got one. The stylus
Posted by jmstall | 9 Comments
Filed under:

What I learned this morning...

... Don't run your disk defragmentor on your laptop when it's not plugged in. My battery went down fast! It seems so obvious in hindsight. On the bright side, the defragmentor kindly told me after it had drained my battery down to 20% that it was stopping
Posted by jmstall | 3 Comments
Filed under:

My baby, the finite state machine.

My 19-month old daughter was quite the finite state machine today. She's recently become mobile and ended up getting her finger caught in a door for the first time. It gave her a little blood blister and the new experience inspired her to cry for a very
Posted by jmstall | 8 Comments
Filed under: ,

LoadClass events are usually meaningless

ICorDebug notifies a debugger when a managed class is loaded via LoadClass debug event. For dynamic-modules, this is useful because it tells you that you just baked a new type and so may have new code to bind breakpoints in (see here for debugging ref-emit
Posted by jmstall | 1 Comments
Filed under:

Nothing is simple

There is no such thing as a "simple" feature. The example of-the-day is Debugger.Launch , the API that will launch a managed debugger with special command line arguments that will direct it to automatically attach it to the calling app (see here for details).
Posted by jmstall | 2 Comments
Filed under:

Iron Python 1.0 is released

You probably already read this 100 times, but Iron Python 1.0 is released. Check out Jim Hugunin's reflections on the project so far. Very cool! We hope to include some python integration with the next Mdbg sample release. While I'm on the topic, you
Posted by jmstall | 0 Comments

How can you force clients to use your APIs properly?

It's tough to make a client use your API correctly. It's especially tough to get clients to not do things that appear to work 90% of the time, but aren't correct and break down in that remaining 10%. It's even harder for things that work 100% of the time
Posted by jmstall | 2 Comments
Filed under:
 
Page view tracker