|
|
Hi
void GUIDlgNetClient::connectToServer(void) { srvIPAddressInput->deactivate(); srvPortInput->deactivate(); netMessages->value(u8""); addMessage(gui.getTranslation().Translate(u8"Connecting to server...")); Fl::check(); int ret = gui.getNet().getClient().start();
if (ret != Network::NET_OK)
{ addMessage(GUI::translateErrorCode(ret)); if (gui.getNet().getClient().isActive()) gui.getNet().getClient().stop(); } else { addMessage(gui.getTranslation().Translate(u8"Connected!").c_str());
Just an idea, but maybe the problem is here ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^. Maybe it operates on temporary objects or takes the pointer produced by c_str() and the problem is in the pointer handling? Just guessing. gui.getNet().sendMessage(NetProtocol::MsgHello::ID); // <<<<<< This line makes the artifacts! }
}
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/24a93a9e-4099-4274-8c0f-e36607edd36dn%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |