Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

nx_packet_release returns 0x7 (NX_PTR_ERROR)

$
0
0

Hi,

I am using nx_packet_release API to release the allocated packet pointer.

But always its returning the value 0x7( NX_PTR_ERROR).

Same pointer which i have used for nx_packet_allocate, i am passing to the nx_packet_release  API.

My lines of code is as below,

nx_packet_allocate(&pool_0,&send_packet_ptr,NX_TCP_SOCKET, 500);

nx_packet_data_append(send_packet_ptr,(void *)buf,count,&pool_0,NX_WAIT_FOREVER);

nx_tcp_socket_send(&my_socket,send_packet_ptr,NX_WAIT_FOREVER);

nx_packet_release(send_packet_ptr);

All other API's are returning the value 0,except this.

After some time, the nx_packet_allocate is getting stuck.

Am i missing something?

Regards,

Nandan G


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>