Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm would guess that the constructor for <code>yami::agent</code> throws an exception which is why all the couts are not being run. As Oli mentioned in the comments all member variables of a class will be constructed before the class constructor is entered so <code>yami::agent::agent()</code> will be run before <code>Base::Base()</code> is entered. </p> <p>Edit:</p> <p>If you have something like:</p> <pre><code>class MyObject { yami::agent m_Agent; public: MyObject::MyObject() { } }; </code></pre> <p>then m_Agent will get constructed using its default constructor which is declared as <code>agent(const parameters &amp; options = parameters());</code>. As you mention, for some reason yami::agent::agent() throws an exception which could due to any number of reasons such as a network initialization error, invalid input parameters, etc....</p> <p>If you want to specify custom parameters to the yami::agent constructor you can do something like:</p> <pre><code> yami::parameters&amp; GetDefaultYamiOptions (void) { static yami::parameters options; /* The following are just some example parameters */ options.set_integer(yami::option_names::connection_retries, 1); options.set_integer(yami::option_names::connection_retry_delay_spread, 10); options.set_integer(yami::option_names::tcp_nonblocking, true); options.set_integer(yami::option_names::file_nonblocking, true); options.set_integer(yami::option_names::tcp_connect_timeout, 1000); return options; } class MyObject { yami::agent m_Agent; public: MyObject::MyObject() : m_Agent(GetDefaultYamiOptions()) { } }; </code></pre> <p>What parameters you need may be different than what I use and the cause of the issue may not be even related to incorrect parameters. It could well be a low level networking error from the OS or even hardware. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload