_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!

Categories

_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
#include "Form1.h"

using namespace junk;

[STAThreadAttribute]
int main(array ^args)
{
// Enabling Windows XP visual effects before any controls are created
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);

// 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.