I have a program written with wxWidgets 3.0.2. It is aimed at running on a raspberry (raspbian, gcc compiler, only wxWidgets CORE services, as no GUI is running on the raspberry). But I test it on Windows (mscv 2012 compiler, wxWidgets compiled with GUI services).
This program widely uses wxDatagramSocket. Under Windows, the program executes fine and without any warnings.
But when running under linux, even if the behaviour of the program looks fine, I am completely spammed with warnings of the type :
13:55:03: Error: Failed to add descriptor 6 to epoll descriptor 5 (error 17: File exists)
This error seems to occur each time I perform a
Code: Select all
WaitForRead(-1);
The socket is initialised as below:
Code: Select all
wxIPV4address data_reception_address;
data_reception_address.AnyAddress();
data_reception_address.Service(LOCAL_DATA_PORT);
wxDatagramSocket* data_receiving_socket;
data_receiving_socket = new wxDatagramSocket(data_reception_address, wxSOCKET_NOWAIT|wxSOCKET_REUSEADDR);
Code: Select all
while (!shall_exit)
{
/* Wait for something to read */
data_receiving_socket->WaitForRead(-1);
/* Read whole buffer */
int32 reception_size = data_receiving_socket->RecvFrom(eib_net_ip.data_reception_address, eib_net_ip.data_reception_buffer, DATA_RECEPTION_BUFFER_SIZE).LastReadCount();
....
}
Any help would be very appreciated.
Regards,
Brice