Click here to Skip to main content
15,888,325 members
Home / Discussions / C#
   

C#

 
QuestionC# Windows Application seems to be not responding! Pin
Adeel Chaudhry5-May-07 8:24
Adeel Chaudhry5-May-07 8:24 
AnswerRe: C# Windows Application seems to be not responding! Pin
Giorgi Dalakishvili5-May-07 8:38
mentorGiorgi Dalakishvili5-May-07 8:38 
GeneralRe: C# Windows Application seems to be not responding! Pin
Adeel Chaudhry5-May-07 8:55
Adeel Chaudhry5-May-07 8:55 
GeneralRe: C# Windows Application seems to be not responding! Pin
Giorgi Dalakishvili5-May-07 9:12
mentorGiorgi Dalakishvili5-May-07 9:12 
AnswerRe: C# Windows Application seems to be not responding! Pin
Rob Graham5-May-07 8:46
Rob Graham5-May-07 8:46 
GeneralRe: C# Windows Application seems to be not responding! Pin
Adeel Chaudhry5-May-07 8:58
Adeel Chaudhry5-May-07 8:58 
GeneralRe: C# Windows Application seems to be not responding! Pin
Adeel Chaudhry6-May-07 4:20
Adeel Chaudhry6-May-07 4:20 
AnswerRe: C# Windows Application seems to be not responding! Pin
AFSEKI7-May-07 2:47
AFSEKI7-May-07 2:47 
Create a BackgroundThread for processing the file. If you are storing the data read from the file in memory, make sure it does not consume too much ( Check the return value of FileStream.Read which returns the number of bytes read and add them to a "long totalBytesRead = 0;" variable each time as "totalBytesRead += bytesRead" and check:

if(totalBytesRead <= (1024*1024*50)) // more than 50 MB
{
ReadMore();
}
else
{
ProcessCurrentData();
CleanMemory(); // reset the read buffer forexample
}

And don't forget Application.DoEvents(); method Wink | ;)

Hope this helps...
Questionload combobox from xml [modified] Pin
Planker5-May-07 3:48
Planker5-May-07 3:48 
AnswerRe: load combobox from xml Pin
CPallini5-May-07 6:23
mveCPallini5-May-07 6:23 
GeneralRe: load combobox from xml Pin
Planker5-May-07 6:45
Planker5-May-07 6:45 
GeneralRe: load combobox from xml Pin
CPallini5-May-07 8:57
mveCPallini5-May-07 8:57 
QuestionRe: load combobox from xml Pin
Planker5-May-07 11:39
Planker5-May-07 11:39 
AnswerRe: load combobox from xml Pin
CPallini5-May-07 11:55
mveCPallini5-May-07 11:55 
GeneralRe: load combobox from xml Pin
Planker6-May-07 18:44
Planker6-May-07 18:44 
AnswerRe: load combobox from xml Pin
AFSEKI7-May-07 2:53
AFSEKI7-May-07 2:53 
GeneralRe: load combobox from xml Pin
Planker7-May-07 4:03
Planker7-May-07 4:03 
GeneralRe: load combobox from xml Pin
AFSEKI7-May-07 22:45
AFSEKI7-May-07 22:45 
GeneralRe: load combobox from xml Pin
Planker8-May-07 1:20
Planker8-May-07 1:20 
GeneralRe: load combobox from xml Pin
AFSEKI8-May-07 21:07
AFSEKI8-May-07 21:07 
QuestionProb with SerialPort ReadExisting method Pin
sew44125-May-07 3:27
sew44125-May-07 3:27 
AnswerRe: Prob with SerialPort ReadExisting method Pin
Luc Pattyn5-May-07 3:39
sitebuilderLuc Pattyn5-May-07 3:39 
GeneralRe: Prob with SerialPort ReadExisting method Pin
sew44125-May-07 10:15
sew44125-May-07 10:15 
GeneralTried and got same behaviour, Ideas? Pin
sew44126-May-07 2:40
sew44126-May-07 2:40 
GeneralRe: Tried and got same behaviour, Ideas? Pin
Luc Pattyn6-May-07 4:01
sitebuilderLuc Pattyn6-May-07 4:01 

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.