Problem with the mavlink messages (pixhawk stop sending msg)

Hello guys i can receive messages from the pixhawks using mavlink protocol, i’m sending a request each 100 ms to receive messages but i can receive them just for a few moment
private void timer1_Tick(object sender, EventArgs e)
{
try
{

            Mavlink_request_data((int)MAV_DATA_STREAM.EXTRA1, 0x01);//send request to read all Data
        }
        catch
        {
            Console.WriteLine("request not sent");
        }
    }

and then i have this on the console app:
Le thread 0x2990 s’est arrêté avec le code 0 (0x0).
Le thread 0x135c s’est arrêté avec le code 0 (0x0).
Le thread 0x1a38 s’est arrêté avec le code 0 (0x0).
Le thread 0x343c s’est arrêté avec le code 0 (0x0).
Le thread 0x2f70 s’est arrêté avec le code 0 (0x0).
Le thread 0x3024 s’est arrêté avec le code 0 (0x0).
Le thread 0x2c6c s’est arrêté avec le code 0 (0x0).
Le thread 0x32ac s’est arrêté avec le code 0 (0x0).
Le thread 0x3774 s’est arrêté avec le code 0 (0x0).

do you have any idea how to correct that.

That’s the wrong way to use that method. You only need to send that message once to inform the Ardupilot that you want to receive those messages and how often. In fact you don’t even need to send that message as it can be set in the Ardupilot.

You need to be sending a heartbeat message every second with the correct sequence number to inform the Ardupilot that you are there and alive otherwise it times out and stops sending the messages.

Mike