What is the behavior that results when an IM is received while another is already being processed -- will a new thread be spun off to handle the new IM, or is this IM added to a buffer that will be handled when the previous one is finished?
I guess I am just asking what order these calls will be handled. I have code in an OnImReceived method that takes some time to process and I am wondering if that is what is causing a bug that leads to dropped messages (I am not sure if they are dropped outgoing messages or dropped ingoing, I am still investigating). All I know is that these bugs were not present when it was just me and some friends testing out the bot, but once it was in the wild (with multiple users sending IMs concurrently), these errors seem to pop out.
Does the code in an OnImReceived method (as in the c++ accbot sample) need to be threadsafe?
Thanks,
Joel

Re: AIM Bot Bug - behavior upon receiving an IM while an IM is a
AIMCC is apartment threaded per IAccSession, so if you decide to process messages on another thread you should take care not to make calls into AIMCC from that thread. Blocking OnImReceived for a long time is not good for overall performance, though the only way it would result in messages being dropped is if the connection was dropped.