Hello
I have enabled debug checks and discovered that evthread_use_windows_threads() must be called before event_base_new(). Now the application has been running in debug mode without any problems for several hours. I will disable the debug mode and see how well the application is running. If no new messages from me appear in this topic, then that means the original problem was caused by instantiating libevent base before calling evthread_use_windows_threads().
Thank you for your help and the great network I/O framework that you have designed!
Best regards,
Sten Kultakangas