misc/win32/apr_app.c, internal.c, misc.c and start.c include crtdbg.h and call _malloc_dbg and _realloc_dbg which provide debugging versions of malloc and realloc respectively. crtdbg.h is not available on WinCE (as well on gcc or Borland builds as reported in bug 33490). The attach patch defines a macro APR_HAVE_CRTDBG_H in apr.hw which is set to 0 for WinCE and 1 otherwise. include/arch/win32/apr_private.h adds macros for _malloc_dbg and _realloc_dbg which drop the extra arguments and calls malloc and realloc respectively. The includes of "crtdbg.h" are guarded by a check of APR_HAVE_CRTDBG_H. The patch doesn't fix the problem with the Borland or gcc's, but all that is needed is to set APR_HAVE_CRTDBG_H appropriately.
Created attachment 18523 [details] Add APR_HAVE_CRTDBG_H macro
Mass reassign the 44 open apr-bugs to apr bug list
There were a few conflicts, otherwise it compiles and builds fine on VS C++ 6.0
Created attachment 20111 [details] Much simpler patch The underlying issue has been addressed since the original patch was filed by using macros defined include/arch/win32/apr_arch_misc.h to replace calls to the crtdbg malloc variants. The only thing missing was to also avoid using the crtdbg variants when building for Windows CE.
Marking fixed, feel free to roll up a single patch with this change and the others if you would like these applied to 1.2 or 0.9. Committed to trunk r543371.