Click here to Skip to main content
15,882,951 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to save values in table in SQL without crashing when it is used by multiple users Pin
TarunKumarSusarapu23-Jan-17 18:13
professionalTarunKumarSusarapu23-Jan-17 18:13 
GeneralRe: How to save values in table in SQL without crashing when it is used by multiple users Pin
Gerry Schmitz23-Jan-17 19:07
mveGerry Schmitz23-Jan-17 19:07 
GeneralRe: How to save values in table in SQL without crashing when it is used by multiple users Pin
TarunKumarSusarapu24-Jan-17 0:52
professionalTarunKumarSusarapu24-Jan-17 0:52 
GeneralRe: How to save values in table in SQL without crashing when it is used by multiple users Pin
Gerry Schmitz24-Jan-17 2:36
mveGerry Schmitz24-Jan-17 2:36 
AnswerRe: How to save values in table in SQL without crashing when it is used by multiple users Pin
palikhelsanjeeb25-Jan-17 21:13
palikhelsanjeeb25-Jan-17 21:13 
GeneralRe: How to save values in table in SQL without crashing when it is used by multiple users Pin
TarunKumarSusarapu29-Jan-17 19:00
professionalTarunKumarSusarapu29-Jan-17 19:00 
QuestionHaving trouble closing and reopening of communication port RS232 Pin
goldsoft21-Jan-17 1:40
goldsoft21-Jan-17 1:40 
AnswerRe: Having trouble closing and reopening of communication port RS232 Pin
Afzaal Ahmad Zeeshan21-Jan-17 2:04
professionalAfzaal Ahmad Zeeshan21-Jan-17 2:04 
From where I can see this, I believe you are facing the UI freezing effect (there are various threads that explain what it is in technical aspect). The effect is that, when your application is doing a task that takes some time (if I remember correctly, it was more than 100ms or 1 second) then you need to run that task on a background thread, otherwise your application will freeze and user might think that the application is stuck, because the UI thread doesn't get enough time to update its components or respond to UI interaction; although it is still working properly.

The way you wrote the code, it is a bit tough to consider where you might put a background thread to execute. But the nearest of it to cover the try...catch block in the Recepcion function. There are various ways to solve this problem, and various ways to increase the pain, so I will leave that in your hand to change the code in order to minimize the UI thread to wait for the updating.

Read more here, Asynchronous Programming with Async and Await (C# and Visual Basic)
wpf - C# UI freezing when serial port attempts to connect - Stack Overflow
c# - What causes my UI to freeze when closing a serial port? - Stack Overflow
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: Having trouble closing and reopening of communication port RS232 Pin
goldsoft22-Jan-17 10:19
goldsoft22-Jan-17 10:19 
AnswerRe: Having trouble closing and reopening of communication port RS232 Pin
Bernhard Hiller22-Jan-17 21:20
Bernhard Hiller22-Jan-17 21:20 
AnswerRe: Having trouble closing and reopening of communication port RS232 Pin
Gerry Schmitz23-Jan-17 8:17
mveGerry Schmitz23-Jan-17 8:17 
QuestionC# Project Suggestion ! Pin
TEProjects20-Jan-17 23:49
professionalTEProjects20-Jan-17 23:49 
AnswerRe: C# Project Suggestion ! Pin
Richard MacCutchan21-Jan-17 0:06
mveRichard MacCutchan21-Jan-17 0:06 
GeneralRe: C# Project Suggestion ! Pin
TEProjects23-Jan-17 1:41
professionalTEProjects23-Jan-17 1:41 
AnswerRe: C# Project Suggestion ! Pin
NotPolitcallyCorrect21-Jan-17 1:14
NotPolitcallyCorrect21-Jan-17 1:14 
GeneralRe: C# Project Suggestion ! Pin
TEProjects23-Jan-17 1:43
professionalTEProjects23-Jan-17 1:43 
GeneralRe: C# Project Suggestion ! Pin
Pete O'Hanlon23-Jan-17 1:49
mvePete O'Hanlon23-Jan-17 1:49 
GeneralMessage Closed Pin
23-Jan-17 1:50
professionalTEProjects23-Jan-17 1:50 
GeneralRe: C# Project Suggestion ! Pin
Pete O'Hanlon23-Jan-17 1:53
mvePete O'Hanlon23-Jan-17 1:53 
AnswerRe: C# Project Suggestion ! Pin
Afzaal Ahmad Zeeshan21-Jan-17 1:50
professionalAfzaal Ahmad Zeeshan21-Jan-17 1:50 
GeneralRe: C# Project Suggestion ! Pin
TEProjects23-Jan-17 1:44
professionalTEProjects23-Jan-17 1:44 
AnswerRe: C# Project Suggestion ! Pin
BillWoodruff22-Jan-17 15:01
professionalBillWoodruff22-Jan-17 15:01 
GeneralRe: C# Project Suggestion ! Pin
TEProjects23-Jan-17 1:48
professionalTEProjects23-Jan-17 1:48 
GeneralRe: C# Project Suggestion ! Pin
BillWoodruff23-Jan-17 23:49
professionalBillWoodruff23-Jan-17 23:49 
AnswerRe: C# Project Suggestion ! Pin
Eddy Vluggen23-Jan-17 2:32
professionalEddy Vluggen23-Jan-17 2:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.