Page 1 of 1

How to debug libvlc inside managed C# application

Posted: 26 Apr 2016 12:08
by Alexolut
I have C# WinForms application with using libvlc via P/Invoke.
Some times my app crash when I communicate with libvlc code.
VisualStudio can't show me a point of crashing. Only that app stopped with APPCRASH reason.

Does anybody know how to debug this situation?

Thanks in advance.

Re: How to debug libvlc inside managed C# application

Posted: 26 Apr 2016 14:00
by Alexolut
As stated in answer on stackoverflow I enabled native code debugging.
I already use debug version of libvlc (downloaded from nightly builds).
But now I need a *.pdb (debugging symbols) file for libvlc.dll
How can I obtain this file? Is it even possible?

Re: How to debug libvlc inside managed C# application

Posted: 26 Apr 2016 18:02
by mowpy
Did you put break point in your code ?
If yes, try with and without, in my code it was the problem

Re: How to debug libvlc inside managed C# application

Posted: 28 Apr 2016 11:26
by Alexolut
In this case for libvlc debugging gdb may be used.
See here for more information.

1. run C# application (without debug)
2. run gdb
3. attach <c#_application_pid>
4. use gdb commands, like "continue", "bt" etc