Click here to Skip to main content
15,885,869 members
Articles / Programming Languages / VC++

Programs doesn't end successfully

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
20 Sep 2012CPOL 0  
I think you make corrupt stack at:b_Total_hourmeter[8]='\0';You declare a b_Total_hourmeter[8] buffer, maximum index of buffer is 7, not 8.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
20 Sep 2012Tarun Batra 1 alternative  
i have made the program like the followingint main(){//create a socket//connect to server//send data to server//recv data from server//parse the dataIN the parse function "fill1.Total_hourmeter" get filled after parsing the data//write parse the data into buffer{char...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Vietnam Vietnam
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions