Feb 2007 CTP - Integrated VS Config Editor Still Errors

Topics: General discussion
Mar 1, 2007 at 5:46 PM
Edited Mar 1, 2007 at 7:05 PM
I can get the Visual Studio Integrated Configuration Editor to bomb everytime I do the following:

1) Create New Console Application Project
2) Add app.config
3) Right-Click on app.config and choose to open with Ent Lib Editor
4) It asks to close app.config and re-open with new editor...

At this point it used to totally close Visual Studio. Now in the Feb 2007 CTP it asks me to debug it.

I debug with a new instance of Visual Studio 2005 and get the following information:

"A buffer overrun has occurred in devenv.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.

For more details please see Help topic 'How to debug Buffer Overrun Issues'."

Breaks on the debuggerhook_dummy = 0 statment at the end.

*dbghook.c - Debug CRT Hook Functions
*       Copyright (c) Microsoft Corporation. All rights reserved.
*       Allow users to override default alloc hook at link time.
#include <dbgint.h>
#ifdef _DEBUG
#include <internal.h>
#include <limits.h>
#include <mtdll.h>
#include <malloc.h>
#include <stdlib.h>
_CRT_ALLOC_HOOK _pfnAllocHook = _CrtDefaultAllocHook;
*int _CrtDefaultAllocHook() - allow allocation
*       allow allocation
*       all parameters ignored
*       returns TRUE
int __cdecl _CrtDefaultAllocHook(
        int nAllocType,
        void * pvData,
        size_t nSize,
        int nBlockUse,
        long lRequest,
        const unsigned char * szFileName,
        int nLine
        return 1; /* allow all allocs/reallocs/frees */
#endif  /* _DEBUG */
int _debugger_hook_dummy;
#ifdef _M_IA64
#define _CRT_DEBUGGER_HOOK __crt_debugger_hook
#endif  /* _M_IA64 */
void __cdecl _CRT_DEBUGGER_HOOK(int _Reserved)
    /* assign 0 to _debugger_hook_dummy so that the function is not folded in retail */
    _debugger_hook_dummy = 0;




David Hayden
Microsoft MVP C#
Mar 1, 2007 at 6:31 PM
In addition to Dave's problem, it also seems to bomb if I forget to check-out app.config from Perforce.

Mar 1, 2007 at 6:48 PM
Thanks guys - we'll look into this.
Mar 1, 2007 at 8:36 PM
In addition, if you open the editor, close it, edit the raw app.config, and then open the editor again, the changes are not reflected. This was in the jan-CTP, I have not tested the feb-CTP.