Dear all
I would like to develop an application on top of libvlc. The development platform (dictated by other needs) is MS Windows XP , Visual Studio 8, using the intel c compiler 10.0 (supposed to be compatible with GCC 3.2), MultiThreaded (MT) run time library. After some searching, I located and installed libvlc.dll.a to link with. My (for the moment embryonical) application compiles and links nicely, but crashes with a access violation during its first (and for the moment only) call to a libvlc function. Details below. I don't think the program code is the problem. It must be some compiler setting, or the compiler is unsuited, or am I linking against the wrong library? (I didn't consider the .net wrappers, as I'm trying to stay away as must as possible from MS windows specific libraries in my code - the same code should compile and run on mac and linux as well).
Any clue would be highly welcome.
Best and thanks a lot in advance,
Philippe.
main.cpp
extern "C" {
#include "vlc/vlc.h"
}
int main(int argc, char **argv)
{
libvlc_exception_t ex;
fprintf(stderr, "main.cpp:%d\n", __LINE__); // we get here (line 129)
libvlc_exception_init(&ex);
fprintf(stderr, "main.cpp:%d\n", __LINE__); // but not here.
}
Program output:
...
main.cpp:129
main: Caught unhandled exception:
Fri Jul 24 18:18:40 2009
ACCESS VIOLATION: The thread tried to read from or write to a virtual address for which it does not have the appropri
access.
WHILE writing ADDRESS 0x00432E7F
EXECUTING AT ve_setup_XX_uncoupled() [0x009097E3]