Click here to Skip to main content
16,006,818 members
Home / Discussions / C#
   

C#

 
AnswerRe: Receiving Data Asynchronously on Socket Class Pin
jschell4-Oct-11 11:07
jschell4-Oct-11 11:07 
GeneralRe: Receiving Data Asynchronously on Socket Class Pin
Richard Andrew x644-Oct-11 11:12
professionalRichard Andrew x644-Oct-11 11:12 
GeneralRe: Receiving Data Asynchronously on Socket Class Pin
jschell5-Oct-11 9:04
jschell5-Oct-11 9:04 
QuestionRemoving duplicate object instances? Pin
R4jlu3-Oct-11 2:41
R4jlu3-Oct-11 2:41 
AnswerRe: Removing duplicate object instances? Pin
Pete O'Hanlon3-Oct-11 3:06
mvePete O'Hanlon3-Oct-11 3:06 
GeneralRe: Removing duplicate object instances? Pin
R4jlu3-Oct-11 3:26
R4jlu3-Oct-11 3:26 
AnswerRe: Removing duplicate object instances? Pin
Luc Pattyn3-Oct-11 3:51
sitebuilderLuc Pattyn3-Oct-11 3:51 
GeneralRe: Removing duplicate object instances? Pin
R4jlu3-Oct-11 4:13
R4jlu3-Oct-11 4:13 
You are indeed correct, it was the event handler that was causing the problem. Thanks very much for this.

I am still learning so yeah there are some fundamental rules i am breaking. The reason for creating the event handlers inside the classes instead of the form1 was to keep things manageable (for me) as the application is quite large and there is a lot already going on in form1. I didn't see it to be too much of an issues but then again my program has a habit of crashing every no and then. I know its bad practice and when i get chance i will change it.

I dont think i actually need the dispose method for this particular class but for others it significantly reduced the amount of RAM i was using when using the profiler.

Is it bad to call the GC.Collect() method when performing intensive tasks or is that ok?

Thanks for the advice, it is much appreciated.
AnswerRe: Removing duplicate object instances? Pin
Luc Pattyn3-Oct-11 4:48
sitebuilderLuc Pattyn3-Oct-11 4:48 
GeneralRe: Removing duplicate object instances? Pin
Pete O'Hanlon3-Oct-11 5:04
mvePete O'Hanlon3-Oct-11 5:04 
AnswerRe: Removing duplicate object instances? Pin
Luc Pattyn3-Oct-11 5:12
sitebuilderLuc Pattyn3-Oct-11 5:12 
GeneralRe: Removing duplicate object instances? Pin
BobJanova3-Oct-11 5:24
BobJanova3-Oct-11 5:24 
GeneralRe: Removing duplicate object instances? Pin
R4jlu3-Oct-11 5:58
R4jlu3-Oct-11 5:58 
GeneralRe: Removing duplicate object instances? Pin
Pete O'Hanlon3-Oct-11 6:03
mvePete O'Hanlon3-Oct-11 6:03 
AnswerRe: Removing duplicate object instances? Pin
BobJanova3-Oct-11 4:23
BobJanova3-Oct-11 4:23 
QuestionWinForm Management Pin
Arjun Thadani2-Oct-11 22:17
Arjun Thadani2-Oct-11 22:17 
AnswerRe: WinForm Management Pin
Shameel2-Oct-11 22:31
professionalShameel2-Oct-11 22:31 
GeneralRe: WinForm Management Pin
Arjun Thadani2-Oct-11 23:40
Arjun Thadani2-Oct-11 23:40 
GeneralRe: WinForm Management Pin
BobJanova3-Oct-11 1:05
BobJanova3-Oct-11 1:05 
QuestionHow do you get an Idle Message in a UserControl class in C#? Pin
Xarzu2-Oct-11 18:05
Xarzu2-Oct-11 18:05 
Questionget Url of a frame from browser Pin
moums2-Oct-11 8:46
moums2-Oct-11 8:46 
Questioncode for HDD serial number Pin
sokh2-Oct-11 2:41
sokh2-Oct-11 2:41 
AnswerRe: code for HDD serial number Pin
André Kraak2-Oct-11 2:59
André Kraak2-Oct-11 2:59 
AnswerRe: code for HDD serial number Pin
Dave Kreskowiak2-Oct-11 4:57
mveDave Kreskowiak2-Oct-11 4:57 
AnswerRe: code for HDD serial number Pin
Luc Pattyn2-Oct-11 7:00
sitebuilderLuc Pattyn2-Oct-11 7:00 

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.