Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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