[vbox-dev] VirtualBox 5.x IDisplaySourceBitmap life cycle

Rūdolfs Bundulis rudolfs.bundulis at gmail.com
Wed Feb 3 10:01:26 GMT 2016


>  Yes, it is an automatically generated file, a COM wrapper based on the
IDL description. It does make navigating the source code a bit harder.
Ok thanks for clearing this out.

I managed  to find the place where the memory is actually handled
- DisplaySourceBitmap::initSourceBitmap() in DisplaySourceBitmapImpl.cpp.
It seems that in case the VRAM is not used my assumption is true and the
IDisplaySourceBitmap frees the allocated memory in its dtor so as long as I
keep a reference I'm safe. But in case VRAM is used, what happens if a
IDisplaySourceBitmap instance
is still alive when the resolution changes - does the contained pointer
simply become invalid?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20160203/ad741ad1/attachment.html>


More information about the vbox-dev mailing list