Dear all,
I want to make each vehicle in SUMO receives a TCP socket from an external
C++ Server to change its route.
The received packet is a struct.
I tried to extract from this latter an edges list.
I insert this code :

*char *token ;*
* /* get the first token */*
*token strtok(packet_optimal_route.EdgesList_ID, s);*
* /* walk through other tokens */*
* while (token != NULL)*
* {*
* cout << " edge ID" << token << endl;*
* token = strtok(NULL, s);*

* } *

I got this error when I runned a SUMO project : "Bad allocation Quitting
(on error)"
What is the problem ? Can you help me please ?

Thanks.



-- 
​Best Regards
​,​
SAGAAMA Insaf.

PhD student at CRISTAL Lab, RAMSIS Pole, ENSI- Tunisia.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-devel mailing list
sumo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-devel

Reply via email to