This nasty issue is addressed in cvs and will appear in the 2.0.17 build.
Sorry I didn't catch this as the change snuck in quite late after my own
review of the 2.0.16 tree.
Bill
From: Jerker Bäck
To: [EMAIL PROTECTED]
Sent: Friday, April 06, 2001 9:18 AM
Subject: BUG BUG in Apache beta
> So sorry to say this, but the beta will not compile properly in VC++7. Apache
> is throwing an exception at startup. Debugging gives the following message:
>
> "Runtime check failure #0 - The value of ESP was not properly saved across a
> function call. This is usually a result of calling a function declared with one
> calling convention with a function pointer declared with a different calling
>convention."
apr_register_optional_fn() was declared stdcall but actually recast into cdecl, just
as your runtime check diagnosed. That message is far more accurate than the stack
dump of garbage I got... had to single step the code until I isolated where it was
corrupting the stack.