I am reporting this as a separate error. When Comodo crashed, a crash report screen came up. I typed something in the box to say what I was doing when it crashed and clicked send, or whatever button was there. It then said I had no email client registered, to please register an email client, and did not send the report. Subsequently, I clicked start, programs, Comodo, firewall, and restarted the firewall. A dialog appeared saying the previous crash report had not been sent and asked me if I wanted to send. I said no, cancel, or whatever. Then I had to do this eight times because the dialog kept reappearing. I thought I was going to have to reboot the machine, but by chance the dialog quit appearing.
You have two problems here. First, you should not be using email to do a crash report. You do not know the environment your program is running in. What you have done is a common shortcut used for error reporting, but such only works if you totally manage the environment. The only thing you can do is a direct IP/port connection. That is the only thing you can rely on. This means you must make a server-side process available somewhere to facilitate the communication, and you cannot do it all on the client side. HTTP won’t work because you cannot use a browser. The second problem is whatever logic you coded to make that dialog keep popping up.