outSourced
Programmer
I am trying to consolidate some utility functions into a dll for Visual C++. Some of the functions have a FILE pointer argument. Everything compiles ok and I was able to get a small test dll to work. But, when I try to use a function that has one of its arguments a file pointer, I get an access violation error:
"First-chance exception in ludRCard.exe (NTDLL.DLL): 0xC0000005: Access Violation."
I found on the web the following statement for a plug-in example:
"Note that despite accepting a file name it must append its output to the given file. Normally, we would have made printFile accept a file pointer but it seems that Microsoft Windows have problem with file pointers being shared with dynamically linked code"
Is this true? There must be some work around?
Is it only a debugger problem? I have not tried to run outside the debugger.
"First-chance exception in ludRCard.exe (NTDLL.DLL): 0xC0000005: Access Violation."
I found on the web the following statement for a plug-in example:
"Note that despite accepting a file name it must append its output to the given file. Normally, we would have made printFile accept a file pointer but it seems that Microsoft Windows have problem with file pointers being shared with dynamically linked code"
Is this true? There must be some work around?
Is it only a debugger problem? I have not tried to run outside the debugger.