are you sure that this isn't some sort of conflict with this library you are linking to and some fancy signal handling stuff that it might be doing internally that messes with Blitz'es ability to do debugging ?
No idea about the dll messing with Blitz. Maybe.
if the lib _were_ doing something fancy, it would probably be doing it when the lib loads, so calling the function wouldn't be the causal, simply starting the blitz exe would do it i would think.
Removing the offending line (but leaving lots of other definitions for functions in the dll in place) causes the debugging to go back to normal, and the problem happens whether I call the offending function or not, which is what made me think it was maybe a BMX thing, rather than the dll itself. I'm probably wrong though :-)
@gman - thanks, hadn't seen that (I'd previously done SQLite in B3D and just started converting it to BMX without looking to see if anyone else had done it already :-) - I'll have a look.