Search results for query: *

  1. C

    Windows Main Form slows down processing if I do not click on it

    I have try separate the ui thread processing from data thread processing. The display log in main window updates now but still slower compared with same program running on other laptops which show fast and smooth update on display log. It may be that particular laptop has OS/program priority...
  2. C

    Windows Main Form slows down processing if I do not click on it

    yes. that is because ProcessMessage does the decoding and parsing of raw data. Invoke calls via Timer is for chart plotting. Is there any way to better this? Please advise . Chee Wai
  3. C

    Windows Main Form slows down processing if I do not click on it

    a quick question, how to do it in one trip? Best Regards Tang
  4. C

    Windows Main Form slows down processing if I do not click on it

    I will keep you updated after I create the simpler test project Thanks Tang
  5. C

    Windows Main Form slows down processing if I do not click on it

    Ok.. Is the following method to exchange data between a thread running on sub form and main form ok? public byte[] HS1_data // (on HS1 form) { get { return HS1_Message.data; } set { HS1_Message.data = value; } } public bool HS1_canRead { get { return HS1_Message.msg_avail; }...
  6. C

    Windows Main Form slows down processing if I do not click on it

    Hi, Here I post the relevant code below: private void btn_HS1_Click(object sender, EventArgs e) // button click to start monitor HS1 CAN-ID msg (on main form) { if (!HS1_diagnose) { this.btn_HS1.Text = "Stop HS1 log"; HS1_diagnose = true; hs1Data = new...
  7. C

    Windows Main Form slows down processing if I do not click on it

    Sorry, To add on, The slow down occurs WHEN NONE of the forms are clicked and held on. Clicking and holding onto ANY ONE FORM (either MAIN FOR or ANY OF THE SUB FORM DOING THE CHART PLOT) will cause things to go back to normal (smooth continuous update of message count in the main form and...
  8. C

    Windows Main Form slows down processing if I do not click on it

    Hi All. I have encountered a weird problem as follows: I am running C# Win Form app build with Visual Studio Community 2019. The main form will be constantly receiving CAN messages via USB-CAN adaptor using DLL file provided by CAN manufacturer. I clicked a button to select which particular...
Back
Top Bottom