I used boost::interprocess::message_queue to implement a sender and receiver for interprocess communication. When the sender is used directly in the test program, data is sent and received correctly — the receiver can receive the data without issues.
However, when I build the sender code as a DLL and use it in the test program, sending data causes a problem. The first message is sent successfully, but when sending the second message, the program crashes with the following error:
Process finished with exit code -1073740791 (0xC0000409)