Hi Jared,

I noticed that you have a 'getchar' in the Web constructor.

This prevents the Web ctor from ever finishing (well, until someone has
pressed a key).
Since the constructor never returns, the 'm_instance' variable is never set
and every call to 'get_Instance' will try to create a new instance.

The usual way would be to call 'mg_start' in the constructor and 'mg_stop'
in the destructor.  The main can then call 'getchar' to wait for completion.

Cheers,
/ulrich

-- 
You received this message because you are subscribed to the Google Groups 
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to