Search code examples
c++qtdlllibvlc

How to trace the loading process of C++ libraries?


I'm developing a small qt app that uses libvlc libraries to provide video playback functionality, but the problem I met is that it needs much time to load all the libraries at first time playback is launched.

So there's the question - is there any ability to trace the process of loading libraries? (It's better to show some kind of "Loading..." window to user.)


Solution

  • Rather than monitoring the loading, you can simply trigger loading those libraries during program start. This will make it invisible to your users, because people expect a program to take a second or two to load anyway.

    An easy way to do this might be to call libvlc_new() when your program is starting up.