Connecting Tech Pros Worldwide Forums | Help | Site Map

AccessViolationException on a malloc(UInt32)

Newbie
 
Join Date: Mar 2007
Posts: 4
#1: Mar 23 '07
I'm trying to use a DLL that was built with Visual C++.NET 7.1 on a new program that I'm developing in VS2005 C# program.

Every time I call a function of the 7.1 DLL I receive an anoying AccessViolationException

I followed the code, and found that the problem is originated on a simple malloc call:

LPBYTE imData = (unsigned char *)malloc(100);


Does anybody has an idea of why this is happening?

Reply