How to debug libvlc inside managed C# application

This forum is about all development around libVLC.
Alexolut
Blank Cone
Blank Cone
Posts: 21
Joined: 28 Aug 2012 12:39

How to debug libvlc inside managed C# application

Postby Alexolut » 26 Apr 2016 12:08

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.

Alexolut
Blank Cone
Blank Cone
Posts: 21
Joined: 28 Aug 2012 12:39

Re: How to debug libvlc inside managed C# application

Postby Alexolut » 26 Apr 2016 14:00

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?

mowpy
New Cone
New Cone
Posts: 3
Joined: 14 Mar 2016 11:07

Re: How to debug libvlc inside managed C# application

Postby mowpy » 26 Apr 2016 18:02

Did you put break point in your code ?
If yes, try with and without, in my code it was the problem

Alexolut
Blank Cone
Blank Cone
Posts: 21
Joined: 28 Aug 2012 12:39

Re: How to debug libvlc inside managed C# application

Postby Alexolut » 28 Apr 2016 11:26

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests