Click here to Skip to main content
15,391,859 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn16-Aug-07 11:24
sitebuilderLuc Pattyn16-Aug-07 11:24 
GeneralRe: Printing with GDI+ Pin
BuckBrown16-Aug-07 12:27
MemberBuckBrown16-Aug-07 12:27 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn16-Aug-07 12:50
sitebuilderLuc Pattyn16-Aug-07 12:50 
GeneralRe: Printing with GDI+ Pin
BuckBrown20-Aug-07 6:26
MemberBuckBrown20-Aug-07 6:26 
GeneralRe: Printing with GDI+ Pin
BuckBrown20-Aug-07 6:42
MemberBuckBrown20-Aug-07 6:42 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn20-Aug-07 13:12
sitebuilderLuc Pattyn20-Aug-07 13:12 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn16-Aug-07 11:41
sitebuilderLuc Pattyn16-Aug-07 11:41 
QuestionHeapAlloc Pin
miah alom15-Aug-07 11:13
Membermiah alom15-Aug-07 11:13 
Hi,

I have an application in C# which allocates 200MB of data from the unmanaged heap using the

[DllImport("kernel32")]
static extern void* HeapAlloc(int hHeap, int flags, int size);

I have another fucntion

[DllImport("cppwrapper.dll")]
private extern static int test(IntPtr DataOut, out string ErrorOut);

I want to pass the the pointer returned by HeapAlloc into the test function using the parameter DataOut instead of string as I run into OutofmemoryException randomly(There is a limitation on the managed heap). But I am constantly getting the system.accessviolation exception.

The body of test method looks like

SOME_API int test(LPSTR* DataOut, LPSTR* ErrorOut)
{
return _lpsomefunction(DataOut, ErrorOut);
}


Can someone guide me in the right direction...
AnswerRe: HeapAlloc Pin
Luc Pattyn15-Aug-07 11:23
sitebuilderLuc Pattyn15-Aug-07 11:23 
GeneralRe: HeapAlloc Pin
Mark Salsbery15-Aug-07 11:26
MemberMark Salsbery15-Aug-07 11:26 
GeneralRe: HeapAlloc Pin
miah alom15-Aug-07 11:50
Membermiah alom15-Aug-07 11:50 
GeneralRe: HeapAlloc Pin
Mark Salsbery15-Aug-07 12:16
MemberMark Salsbery15-Aug-07 12:16 
GeneralRe: HeapAlloc Pin
Luc Pattyn15-Aug-07 11:55
sitebuilderLuc Pattyn15-Aug-07 11:55 
GeneralRe: HeapAlloc Pin
Mark Salsbery15-Aug-07 12:16
MemberMark Salsbery15-Aug-07 12:16 
GeneralRe: HeapAlloc Pin
miah alom15-Aug-07 11:49
Membermiah alom15-Aug-07 11:49 
GeneralRe: HeapAlloc Pin
miah alom15-Aug-07 11:59
Membermiah alom15-Aug-07 11:59 
GeneralRe: HeapAlloc Pin
Luc Pattyn15-Aug-07 12:07
sitebuilderLuc Pattyn15-Aug-07 12:07 
GeneralRe: HeapAlloc Pin
miah alom15-Aug-07 12:17
Membermiah alom15-Aug-07 12:17 
GeneralRe: HeapAlloc Pin
Richard Andrew x6416-Aug-07 17:03
professionalRichard Andrew x6416-Aug-07 17:03 
QuestionParallel port access in Windows XP [modified] Pin
shaleen415-Aug-07 8:31
Membershaleen415-Aug-07 8:31 
AnswerRe: Parallel port access in Windows XP Pin
Mark Salsbery15-Aug-07 9:13
MemberMark Salsbery15-Aug-07 9:13 
GeneralRe: Parallel port access in Windows XP Pin
led mike15-Aug-07 11:36
Memberled mike15-Aug-07 11:36 
GeneralRe: Parallel port access in Windows XP Pin
Mark Salsbery15-Aug-07 12:21
MemberMark Salsbery15-Aug-07 12:21 
QuestionRe: Parallel port access in Windows XP Pin
mirispearl16-Aug-07 19:45
Membermirispearl16-Aug-07 19:45 
QuestionError while compiling a simple C++ program Pin
vkondar13-Aug-07 17:21
Membervkondar13-Aug-07 17:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.