Click here to Skip to main content
15,913,722 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Please help with a fairly simple percentage calculation.... Pin
Sathesh Sakthivel28-Aug-08 20:42
Sathesh Sakthivel28-Aug-08 20:42 
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 
I have written a document imaging system in VB.Net, using Pegasus tool kit.

We have over 100 client's with no problems. However our latest client is experiencing problems. They have two users and both are having the same problem. The error message is to the affect:

"attempt to read or write to protected memory"

This is occuring after they open and close a scaning window numerous times over the course of 30 minutes.

I made sure that I disposed of all the Pegasus tools (put msgbox()) in the window's dispose method. I don't create any 'fancy' objects, although I do open file streams. But I make sure they are closed, as I do for Sqlconnections and data readers.

I put a garbage collector button in the parent window:

GC.Collect()
GC.WaitForPendingFinalizers()
GC.Collect()
GC.WaitForPendingFinalizers()
MessageBox.Show("Done!" + vbCrLf + _
"Memory Allocated: " + GC.GetTotalMemory(False).ToString, "Garbage Collection")

I can see the memory usage going up everytime I instantiate a new window. What's interesting is that from run to run the amount reported by GetTotalMemory is always different.

Does anyone have any advice as how to approach this? Are there common VB objects that need to be manually disposed of?

Thanks!
AnswerRe: Possible memory leak Pin
Scott Dorman28-Aug-08 13:34
professionalScott Dorman28-Aug-08 13:34 
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 

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.