FLTK logo

Re: [fltk.general] Strange artefacts visible on controls

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Strange artefacts visible on controls "wea... Jul 08, 2022  
  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 ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.