I don't know anything about those sort of application error dumps, so can't really help you based on that. However, I'll just mention that some infinite loops can be cancelled by *holding* control-break for up to 5 seconds rather than just hitting it once. This will do a repeat of Ctrl-Break and often that's enough to break out of a loop that doesn't want to cancel. That doesn't help you with the problem unless it shows an appropriate line number, but it at least breaks you out of the problem without restarting mIRC.

The best method, imo, is to keep track of exactly *when* it hangs. What's going on? Use that to try and track the cause.