_CrtIsValidHeapPointer assert failure - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


_CrtIsValidHeapPointer assert failure

eromascanueromascanu Posts: 1Member
I've created a simple Windows Forms Application in MSVS 2005:
- Use MFC in a Shared DLL
- /clr
I inserted the 2nd include for as shown below:

// test1.cpp : main project file.

#include "stdafx.h"
#include "Form1.h"

using namespace junk;

int main(array ^args)
// Enabling Windows XP visual effects before any controls are created

// Create the main window and run it
Application::Run(gcnew Form1());
return 0;

The debug build crashes with _CrtIsValidHeapPointer assertion. Releas build is ok. So far didn't have any success in finding out why this happens. I attached the project. Any help will be greatly appreciated. Thx.

Sign In or Register to comment.