Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VB6 on Win-10, multi-media control (MCI32.OCX) crashes Windows (BSOD) in IDE

... but the compiled application runs fine. This is a large (~500k LOC) mature application, which I've been maintaining for many years on Windows-10 with no unexplained issues. I just moved to a new computer (a Lenovo laptop) and installed all my stuff, including the VB6 IDE. This all went smoothly, so I loaded up the application and ran it within the IDE, resulting in an immediate BSOD. I narrowed down the crashing statement to a MMControl1.Command "Open" on the applications opening banner screen. The file it's supposed to open exists, and everything else is the same environmentally as the previous development machine.

Note that I've installed the VB6 IDE on at least a half-dozen Win-10 machines, and a couple of Win-11, with no problems, and in fact I've never BSODed any of these machines. I've also run the VB6 IDE in a Win-XP virtual machine on the problem computer, and (as expected) the application ran there with no issues. Again, the compiled program works fine even on the problem computer, and everything else in this large program does also in the IDE (no other use of the Multi-Media control, though).

Any ideas of what to try? Thanks!

like image 242
Mark Moulding Avatar asked Oct 16 '25 02:10

Mark Moulding


1 Answers

Apparently solved. I have yet to extensively test this, but it appears that running in compatibility mode with a reduced color mode (I was using 65536 colors) leads to this crash. With this compatibility option turned off, I'm no longer getting BSOD crashes, and on this (much newer) laptop, the graphic performance of the IDE doesn't seem to be unduly affected.

like image 128
Mark Moulding Avatar answered Oct 19 '25 15:10

Mark Moulding



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!