{{Quickfixn}} Cannot launch an initiator app

Mike Gatny mgatny at connamara.com
Fri Feb 28 07:28:29 PST 2020


On Fri, Feb 28, 2020 at 8:56 AM Mark Smith <msmith at rpia.ca> wrote:

> using (Initiator)
>
> Initiator.Start();
>

The Initiator's *Start()* method does not block.  If you allow the main
thread to continue outside of that *using* block, your Initiator is going
to be disposed, which is going to attempt to dispose your log files,
etc...  hence the error where the Initiator is trying to write to closed
logs.

You could enter a while loop (like
Examples/TradeClient/TradeClientApp.cs does),
or block/wait on a condition, or both.

--
Mike Gatny
Connamara Systems

-- 
This email, along with any attachments, is confidential. If you believe you 
received this message in error, please contact the sender immediately and 
delete all copies of the message. Thank you from Connamara Systems, LLC.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20200228/4b97ff48/attachment.htm>


More information about the Quickfixn mailing list