I am trying to set up logging in LibVLC, and am running into some problems.
The function I am using is libvlc_log_set_file, here are the docs: LibVLC logging docs
Here is the code I have now:
//header
private:
FILE * logFile;
//source
logFile = fopen(path.c_str(), "w");
if(logFile != NULL)
{
libvlc_log_set_file(_libvlc_instance, logFile);
}
On the libvlc_log_set_file
line I get this error, "Unhandled exception at 0x77559E33 (ntdll.dll) in nw.exe: 0xC0000005: Access violation writing location 0x00000014."
I am able to open and write to the file with fputs()
just fine.
I am using NW.js with WebChimera.js compiling to 32 bit with Visual Studio 2013 on a 64 bit Windows 7 machine.
Any ideas?