|
-
Feb 26th, 2024, 03:29 PM
#6
Re: Program hang when running outside of VS
 Originally Posted by stanav
@dbasenett:
- The removed code was intended since it was irrelevant to the issue.
- Me.StatusUpdate is just a sub to update the UI letting the user know the progress of the current test, which is working fine. There is no issue with the data received either. The problem comes in when I try to display that data to the UI. And it is only problematic when the program runs outside of VS.
- I already tried what you suggested before posting this, and it made no difference.
- I also mentioned that if I set the Form.CheckForIllegalCrossThreadCalls = False then it works fine, but this is hacking and I try to avoid this.
Any other suggestions?
So Me.StatusUpdate is also checking for Me.InvokeRequired? You said,"Narrow down to this line when it gets stuck: Me.BeginInvoke(New UpdateUI_Delegate(AddressOf PopulateForm))", and I find that hard to believe since the BeginInvoke documentation says, "The delegate is called asynchronously, and this method returns immediately."
Looking at your code I suspect that you could have PopulateForm running simultaneously though using Me.Invoke should have cured that.
How much data do you expect when you Me.ReadIncomingSerialData? The code I'd most like to see is Me.ReadIncomingSerialData.
What version of .Net Framework are you using?
Last edited by dbasnett; Feb 26th, 2024 at 03:32 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|