Click here to Skip to main content
15,917,628 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionPrint Count of a machine..? Pin
Masood Kochi,SSF11-Mar-09 0:43
Masood Kochi,SSF11-Mar-09 0:43 
AnswerRe: Print Count of a machine..? Pin
dan!sh 11-Mar-09 2:49
professional dan!sh 11-Mar-09 2:49 
QuestionInStr & Mid$ Pin
dec8211-Mar-09 0:24
dec8211-Mar-09 0:24 
AnswerRe: InStr & Mid$ Pin
Alan N11-Mar-09 1:00
Alan N11-Mar-09 1:00 
GeneralRe: InStr & Mid$ Pin
dec8211-Mar-09 1:09
dec8211-Mar-09 1:09 
GeneralRe: InStr & Mid$ Pin
Alan N11-Mar-09 1:30
Alan N11-Mar-09 1:30 
QuestionGarbage Collector query Pin
jugs010111-Mar-09 0:08
jugs010111-Mar-09 0:08 
AnswerRe: Garbage Collector query Pin
Tom Deketelaere11-Mar-09 0:16
professionalTom Deketelaere11-Mar-09 0:16 
First thing you should look at is are you cleaning your objects up correctly and consistently. Meaning closing,set to 'nothing',... the one's you don't need anymore.

Secondly if you are using thirth party components (com mostly has this problem) you might have to call the GC.Collect() and/or GC.WaitForPendingFinalizers() methods. This is not recommended tho (and shouldn't be needed) but I'v found that sometimes it is needed (I work with several thirth party products and so far at least 2 demand this)

Other than that I can only say that 'normally' .net takes care of the garbage collecting and it should 'work out off the box'.
Some operations however do take allot of time/memory. For instance having a data adapter updating a table (with allot off records) takes more time and memory than actually manually going over the datatable (with a for loop) and updating the table with sql-statements. I was able to bring a program that used to take more than 10min down to only a couple seconds with this.
So you might want to look into different ways of doing what needs to be done.
GeneralRe: Garbage Collector query Pin
jugs010111-Mar-09 2:09
jugs010111-Mar-09 2:09 
GeneralRe: Garbage Collector query Pin
Tom Deketelaere11-Mar-09 2:22
professionalTom Deketelaere11-Mar-09 2:22 
GeneralRe: Garbage Collector query Pin
Gideon Engelberth11-Mar-09 3:17
Gideon Engelberth11-Mar-09 3:17 
AnswerRe: Garbage Collector query Pin
Luc Pattyn11-Mar-09 2:42
sitebuilderLuc Pattyn11-Mar-09 2:42 
GeneralRe: Garbage Collector query Pin
jugs010111-Mar-09 4:12
jugs010111-Mar-09 4:12 
GeneralRe: Garbage Collector query Pin
Dave Kreskowiak11-Mar-09 4:27
mveDave Kreskowiak11-Mar-09 4:27 
GeneralRe: Garbage Collector query Pin
Luc Pattyn11-Mar-09 4:57
sitebuilderLuc Pattyn11-Mar-09 4:57 
QuestionEntry into three tables having foriegn key constraints Pin
Saleem Tahiri10-Mar-09 23:14
Saleem Tahiri10-Mar-09 23:14 
AnswerRe: Entry into three tables having foriegn key constraints Pin
Tom Deketelaere10-Mar-09 23:23
professionalTom Deketelaere10-Mar-09 23:23 
QuestionIncluding player in vb.net2005 Pin
hrishiS10-Mar-09 23:04
hrishiS10-Mar-09 23:04 
AnswerRe: Including player in vb.net2005 Pin
Tom Deketelaere10-Mar-09 23:09
professionalTom Deketelaere10-Mar-09 23:09 
QuestionGetting file type info Pin
Alan Burkhart10-Mar-09 22:48
Alan Burkhart10-Mar-09 22:48 
AnswerRe: Getting file type info Pin
Xmen Real 11-Mar-09 0:13
professional Xmen Real 11-Mar-09 0:13 
GeneralRe: Getting file type info Pin
Alan Burkhart11-Mar-09 3:13
Alan Burkhart11-Mar-09 3:13 
GeneralRe: Getting file type info Pin
Xmen Real 11-Mar-09 4:02
professional Xmen Real 11-Mar-09 4:02 
QuestionProblem sending EMail Pin
Pankaj Garg10-Mar-09 22:33
Pankaj Garg10-Mar-09 22:33 
Generalhi all Pin
vickyjohn10-Mar-09 20:39
vickyjohn10-Mar-09 20:39 

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.