Segfault on SDL_RegisterApp


I am having a really strange problem. All my SDL builds are segfaulting on
SDL_RegisterApp in SDL_Init. I haven’t built a debug version of SDL yet so i
don’t know exactly what it segfaults on.
I have tried building in both msvc (VC2005EE and VC2008EE) and mingw and i am
getting the same exact crash with both.
I suspect it’s something with the runtimes that either VC or something else has
installed, but i have no idea what might actually cause this behavior. If anyone
has any ideas, I would appreciate any clues you might provide.

Also I forgot to mention that these builds run just fine on other computers.
So this is only specific to the runtime environment on mine.
I’m just really stuck as to what it might even be related to.