Hi Karol, I tried to transmit captured data with size of 320*240*2 (per frame), and find out the program was blocked when running to the following code line, nx_packet_data_append(packet_ptr, g_user_buffer1, 320*240*2, &pool_0, NX_WAIT_FOREVER); but it is easy to pass for the same project if the size 320*240*2 was reduced to 50 or smaller, I've checked some reference for this function as below, but still wonder what's the actual limited size for the parameter data_size ? UINT nx_packet_data_append (NX_PACKET *packet_ptr, VOID *data_start, ULONG data_size, NX_PACKET_POOL *pool_ptr, ULONG wait_option); packet_ptr Packet pointer. data_start Pointer to the start of the user’s data area to append to the packet. data_size Size of user’s data area. pool_ptr Pointer to packet pool from which to allocate another packet if there is not enough room in the current packet. wait_option Defines how the service behaves if there are no packets available. The wait options are defined as follows: NX_NO_WAIT (0x00000000) NX_WAIT_FOREVER (0xFFFFFFFF) timeout value (0x00000001 through 0xFFFFFFFE)
↧