Error I've never seen… StretchDlBits
I’ve never been able to run multiple instances of one of my home-made Pluggo plug-ins without crashing Cubase, so I finally sat down and spent about 10 hours tracing out the problem. I think I’ve finally isolated it, but now I’m left with an error message that I don’t understand.
I narrowed the problem down to a single (albeit large… 26 pages of code) jsui object, and isolated that object out. Now when I run multiple instances of a plug-in with that object inside the vst~ object I get occasional errors in the Max window along the lines of:
"jsui error StretchDlBits error:0"
"jsui error StretchDlBits error:8"
"jsui error StretchDlBits error:6"
I have no idea what "StretchDlBits" means, but I think these errors are what crash Cubase. Can anyone translate?
After some googling, it looks like it’s StretchDIBits, a function in the Windows GDI.
I’m really stumped here. Is this something I can or can’t work around somehow?
Aaron Faulstich schrieb:
> After some googling, it looks like it’s StretchDIBits, a function in
> the Windows GDI.
> I’m really stumped here. Is this something I can or can’t work around
I don’t know anything about Windows, but according to your experience,
I’d try to look into variables which might need to be local/unique for
You could also try if one of the standard JSUI objects, maybe one of the
dials, exhibits the same behaviour, if yes, it should go to support,
because then those have to be fixed as well.
As you tracked it down to be related to JSUI, you might want to move the
I’m pretty sure the local/global variables are all setup correctly. I’ve gone over them all many times, and I don’t have any problems when running copies of the same jsui in a regular max patch.
Oddly enough, the error messages when running the plug inside Max have stopped today (having changed *nothing* in the patch, just rebooting my computer) and multiple instances are working.
It’s still crashing Cubase SX, though. I’m starting to think there may just be too much going on in the patch.