Do you use dll's for something? Try disabling some scripts/dll's you suspect and see if the error still appears. My guess is some faulty dll, since I've never seen mIRC crash that way.
There have been some ways to crash mIRC using scripting only, but those crashes don't give a message box, mIRC just disappears then...