>What are the process creation flags? Maybe there's something set there
which shouldn't be?
They have:
DWORD dwFlags = CREATE_DEFAULT_ERROR_MODE | CREATE_SUSPENDED;
As opposed to 0L in the Tortoise shell extension.
No idea what the "default error mode" is really, but "default" sounds
like "should work in most cases" :-)
CREATE_SUSPENDED might of course be a reason, but they call
ResumeThread(pi.hThread) at some point later.
>Also, if you create the registry key
>HKCU\Software\TortoiseSVN\Debug
>with a DWORD value != 0, then TortoiseProc will show you a messagebox
with the command line params it received on each startup. Maybe you can
see there >what's wrong.
Now this is truly surprising... I added that debug registry key (not
believing the command line params were wrong, but nevertheless going to
make sure), and it suddenly worked fine! It showed the commandline
parameters, and then it started into GUI just as it should. Tried a
dozen times with different parameters, always the same result.
Deleted that debug key, and it is dysfunct again. Did not change a line
of my code. No way I can get it to run now, except by starting from cmd.
Slightly off-topic, to give you a smile, here is something I discovered
in the wx sources:
if ( flags & wxEXEC_SYNC )
{
int running;
do
{
wxYield();
running = GetModuleUsage((HINSTANCE)instanceID);
} while (running);
}
They do it, too :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Jun 22 18:56:47 2005