Click here to Skip to main content
15,900,258 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Please help with a fairly simple percentage calculation.... Pin
Guffa28-Aug-08 21:20
Guffa28-Aug-08 21:20 
JokeRe: Please help with a fairly simple percentage calculation.... Pin
Manas Bhardwaj28-Aug-08 21:55
professionalManas Bhardwaj28-Aug-08 21:55 
AnswerRe: Please help with a fairly simple percentage calculation.... Pin
Ashfield29-Aug-08 2:47
Ashfield29-Aug-08 2:47 
GeneralRe: Please help with a fairly simple percentage calculation.... Pin
Joey Picerno29-Aug-08 3:10
Joey Picerno29-Aug-08 3:10 
GeneralRe: Please help with a fairly simple percentage calculation.... Pin
Ashfield29-Aug-08 8:51
Ashfield29-Aug-08 8:51 
GeneralRe: Please help with a fairly simple percentage calculation.... Pin
Joey Picerno29-Aug-08 9:18
Joey Picerno29-Aug-08 9:18 
QuestionPossible memory leak Pin
dBrong28-Aug-08 11:53
dBrong28-Aug-08 11:53 
AnswerRe: Possible memory leak Pin
Scott Dorman28-Aug-08 13:34
professionalScott Dorman28-Aug-08 13:34 
dBrong wrote:
I put a garbage collector button in the parent window


You really don't want to do this. Each time you call GC.Collect() you are freezing your applications main thread so the GC can run.

dBrong wrote:
Are there common VB objects that need to be manually disposed of?


Any object that you are using that implements the IDisposable interface really should be cleaned up with a call to Dispose() or you should use it inside a using block.

You specifically mention that you are opening streams and database connections, but how are you making sure that they are closed properly? If you aren't using a try/finally or a using block to ensure that the Close() or Dispose() method is being called even if an exception occurs then you aren't guaranteed that the objects will get cleaned up properly. Going beyond streams and database connections, since you are in an document imaging system, any Graphics objects or any image objects (Bitmap, Image, etc.) also should be cleaned up by calling Dispose().

These same rules apply for the Pegasus objects as well. If they aren't wrapped in a try/finally or a using block there is no guarantee that they are actually being cleaned up properly.

Scott Dorman
Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA

[Blog][Articles][Forum Guidelines]
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

GeneralRe: Possible memory leak Pin
dBrong28-Aug-08 17:00
dBrong28-Aug-08 17:00 
GeneralRe: Possible memory leak Pin
Scott Dorman28-Aug-08 18:01
professionalScott Dorman28-Aug-08 18:01 
GeneralRe: Possible memory leak Pin
Guffa28-Aug-08 21:51
Guffa28-Aug-08 21:51 
QuestionClasses Pin
CodingYoshi28-Aug-08 11:25
CodingYoshi28-Aug-08 11:25 
AnswerRe: Classes Pin
Gideon Engelberth28-Aug-08 13:13
Gideon Engelberth28-Aug-08 13:13 
GeneralRe: Classes Pin
Scott Dorman28-Aug-08 13:35
professionalScott Dorman28-Aug-08 13:35 
GeneralRe: Classes Pin
Gideon Engelberth28-Aug-08 17:05
Gideon Engelberth28-Aug-08 17:05 
GeneralRe: Classes Pin
Scott Dorman28-Aug-08 17:51
professionalScott Dorman28-Aug-08 17:51 
AnswerRe: Classes [modified] Pin
Scott Dorman28-Aug-08 13:36
professionalScott Dorman28-Aug-08 13:36 
GeneralRe: Classes Pin
CodingYoshi29-Aug-08 3:17
CodingYoshi29-Aug-08 3:17 
AnswerRe: Classes Pin
Guffa29-Aug-08 4:28
Guffa29-Aug-08 4:28 
QuestionAutomatic printing with VB.Net. Pin
John Kh28-Aug-08 7:46
John Kh28-Aug-08 7:46 
AnswerRe: Automatic printing with VB.Net. Pin
paas28-Aug-08 8:53
paas28-Aug-08 8:53 
GeneralRe: Automatic printing with VB.Net. Pin
John Kh28-Aug-08 9:37
John Kh28-Aug-08 9:37 
GeneralRe: Automatic printing with VB.Net. Pin
paas29-Aug-08 1:25
paas29-Aug-08 1:25 
AnswerLow tech Automatic printing Pin
David Mujica28-Aug-08 8:57
David Mujica28-Aug-08 8:57 
AnswerRe: Automatic printing with VB.Net. Pin
compad1-Sep-08 22:20
compad1-Sep-08 22:20 

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.