Click here to Skip to main content
15,914,385 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Help with a progress bar Pin
Christian Graus12-Jun-07 11:13
protectorChristian Graus12-Jun-07 11:13 
GeneralRe: Help with a progress bar Pin
Xandip12-Jun-07 18:45
Xandip12-Jun-07 18:45 
GeneralRe: Help with a progress bar Pin
Psycho-*Coder*-Extreme22-Jun-07 1:58
Psycho-*Coder*-Extreme22-Jun-07 1:58 
GeneralRe: Help with a progress bar Pin
GoodID21-Jun-07 20:00
GoodID21-Jun-07 20:00 
QuestionUnbound DataGridView and Checkbox Pin
jadaar12-Jun-07 9:10
jadaar12-Jun-07 9:10 
QuestionUnable to dispose of shared object Pin
mad_cow12-Jun-07 8:14
mad_cow12-Jun-07 8:14 
AnswerRe: Unable to dispose of shared object Pin
Guffa12-Jun-07 8:31
Guffa12-Jun-07 8:31 
GeneralRe: Unable to dispose of shared object Pin
mad_cow12-Jun-07 8:58
mad_cow12-Jun-07 8:58 
Thanks Guffa, and what you say about setting the reference to Nothing was my original understanding, but it didn't seem to work, which lead to my wrong path down the Dispose lane. Here was my original code from my calling program:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim myclass1 As Class1 = Class1.GetInstance
    Response.Write(myclass1.myVal)
    myclass1 = Nothing
End Sub


Now, when a person opens his browser, he will see the value "1" displayed on his screen. Open another browser instance, and he will see "2", and so on. Even though the reference was set to nothing, the second browser instance will use the shared value from the object that is supposed to be Nothing. Ok, I can't tell when the garbage collector would have released it from memory, but it seems to me that the second browser instance shouldn't have access to it anyway. So, I am still seem to be stuck with this thing hanging out in memory.

By the way, excuse me, but I think I may have posted this question to the wrong discussion group since this has a bit of a web orientation, but perhaps it applies to workstation applications too.
GeneralRe: Unable to dispose of shared object Pin
MidwestLimey12-Jun-07 9:33
professionalMidwestLimey12-Jun-07 9:33 
GeneralRe: Unable to dispose of shared object Pin
mad_cow12-Jun-07 9:49
mad_cow12-Jun-07 9:49 
GeneralRe: Unable to dispose of shared object Pin
MidwestLimey12-Jun-07 9:54
professionalMidwestLimey12-Jun-07 9:54 
GeneralRe: Unable to dispose of shared object Pin
mad_cow12-Jun-07 10:14
mad_cow12-Jun-07 10:14 
GeneralRe: Unable to dispose of shared object Pin
MidwestLimey12-Jun-07 10:30
professionalMidwestLimey12-Jun-07 10:30 
GeneralRe: Unable to dispose of shared object Pin
mad_cow12-Jun-07 10:36
mad_cow12-Jun-07 10:36 
AnswerRe: Unable to dispose of shared object Pin
Guffa12-Jun-07 10:32
Guffa12-Jun-07 10:32 
GeneralRe: Unable to dispose of shared object Pin
mad_cow12-Jun-07 10:47
mad_cow12-Jun-07 10:47 
Questionlistitem in vb.net Pin
jds120712-Jun-07 8:06
jds120712-Jun-07 8:06 
AnswerRe: listitem in vb.net Pin
Tarakeshwar Reddy12-Jun-07 10:43
professionalTarakeshwar Reddy12-Jun-07 10:43 
Questiondb connection Pin
vishnu mohan12-Jun-07 6:46
vishnu mohan12-Jun-07 6:46 
AnswerRe: db connection [modified] Pin
WhiteGirl2312-Jun-07 19:24
WhiteGirl2312-Jun-07 19:24 
QuestionUDP - computer with 2 ip address Pin
pinhas12-Jun-07 6:06
pinhas12-Jun-07 6:06 
AnswerRe: UDP - computer with 2 ip address Pin
nlarson1112-Jun-07 8:03
nlarson1112-Jun-07 8:03 
GeneralRe: UDP - computer with 2 ip address Pin
pinhas12-Jun-07 21:04
pinhas12-Jun-07 21:04 
QuestionReader is closed Pin
Brendan Vogt12-Jun-07 4:14
Brendan Vogt12-Jun-07 4:14 
AnswerRe: Reader is closed Pin
ctlqt1212-Jun-07 5:34
ctlqt1212-Jun-07 5:34 

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.