# VST3.7 VSTGUI4 plugin using CBitmap crashes on non-development computer

**URL:** <https://forums.steinberg.net/t/vst3-7-vstgui4-plugin-using-cbitmap-crashes-on-non-development-computer/983485>\
**Category:** VSTGUI\
**Created:** [April 10, 2025, 7:04am UTC](https://forums.steinberg.net/t/vst3-7-vstgui4-plugin-using-cbitmap-crashes-on-non-development-computer/983485 "2025-04-10T07:04:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Em9](https://avatars.discourse-cdn.com/v4/letter/e/67e7ee/32.png) [@Em9](https://forums.steinberg.net/u/Em9)\
**Post date:** [April 10, 2025, 7:04am UTC](https://forums.steinberg.net/t/vst3-7-vstgui4-plugin-using-cbitmap-crashes-on-non-development-computer/983485/1 "2025-04-10T07:04:16Z")

</div>

I use VST3.7.11 (VS2022 Cmake Win11) to develop plug-ins, and everything works fine on the development computer. When I packaged the plug-in and ran it on another Win11 computer which did not have a development environment for c++ and vst3, my plug-in will cause DAWs to crash (Reaper, Bitwig Studio …). I have tried other commercial plugins they all work fine on this computer, so it’s not a problem with the system environment or host software.

I tried to locate the problem and found that CBitmap caused the crash. When I initialize a CBitmap, such as:  
CBitmap bitmap1(“menu-down.png”);  
CBitmap bitmap2(CPoint(10, 20));  
This line of code will directly cause a crash. Other VSTGUI control elements are all fine.

My controller initialization process follows the SDK method:  
MyController : public Steinberg::Vst::EditControllerEx1 → initialize → createView → init VSTGUIEditor → open → new CFrame  
There is no crash on my two development computers and the bitmap can be displayed.

I can’t set up development environment on that machine because the crash situation possibly not happen again. If anyone could tell me the possible reasons for this error I would be very grateful

---

<div class="post-metadata">

**Author:** ![Em9](https://avatars.discourse-cdn.com/v4/letter/e/67e7ee/32.png) [@Em9](https://forums.steinberg.net/u/Em9)\
**Post date:** [April 11, 2025, 4:16am UTC](https://forums.steinberg.net/t/vst3-7-vstgui4-plugin-using-cbitmap-crashes-on-non-development-computer/983485/2 "2025-04-11T04:16:22Z")

</div>

I continued debugging the code and found that the line that caused the crash was:  
vst3sdk\vstgui4\vstgui\lib\platform\win32\direct2d\d2dbitmap.cpp  
bool D2DBitmap::loadFromStream (IStream\* iStream)  
source = converter;  
When we assign IWICFormatConverter\* converter to IWICBitmapSource\* source, the crash occurs. The converter is not nullptr, the converter-\>Initialize has been finished
