By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,760 Members | 1,585 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,760 IT Pros & Developers. It's quick & easy.

AccessViolationException on a malloc(UInt32)

P: 4
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 happening?
Mar 23 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.