> 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?
_______________________________________________ vbox-dev mailing list vbox-dev@virtualbox.org https://www.virtualbox.org/mailman/listinfo/vbox-dev