[vbox-dev] VirtualBox 5.x IDisplaySourceBitmap life cycle
Vitali.Pelenjow at oracle.com
Wed Feb 3 10:07:37 UTC 2016
the VRAM pointer will be valid, because it points to the memory
allocated for the VM graphics device.
The memory is deallocated when VM shuts down.
However the memory content might change of course.
On 2/3/2016 11:01 AM, Rūdolfs Bundulis wrote:
> > Yes, it is an automatically generated file, a COM wrapper based on
> the IDL description. It does make navigating the source code a bit
> 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?
> vbox-dev mailing list
> vbox-dev at virtualbox.org
More information about the vbox-dev