Click here to Skip to main content
16,005,038 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFirst Call to Remote Object Does Not Respond on Two Machines Pin
TheFarsider19-Jun-08 5:28
TheFarsider19-Jun-08 5:28 
AnswerRe: First Call to Remote Object Does Not Respond on Two Machines Pin
BDEz (Member 3919223)19-Jun-08 7:28
BDEz (Member 3919223)19-Jun-08 7:28 
QuestionReferenced class won't let go of file [modified] Pin
KreativeKai19-Jun-08 3:24
professionalKreativeKai19-Jun-08 3:24 
AnswerRe: Referenced class won't let go of file Pin
Colin Angus Mackay19-Jun-08 4:05
Colin Angus Mackay19-Jun-08 4:05 
GeneralRe: Referenced class won't let go of file Pin
KreativeKai19-Jun-08 4:17
professionalKreativeKai19-Jun-08 4:17 
GeneralRe: Referenced class won't let go of file Pin
Colin Angus Mackay19-Jun-08 5:39
Colin Angus Mackay19-Jun-08 5:39 
GeneralRe: Referenced class won't let go of file Pin
KreativeKai20-Jun-08 4:05
professionalKreativeKai20-Jun-08 4:05 
AnswerRe: Referenced class won't let go of file Pin
TheFarsider19-Jun-08 5:39
TheFarsider19-Jun-08 5:39 
Its seesm to me that you are waiting on the Garbage collector to dispose of myAttachment

If you need to release it sooner then you should explicity release the resourse either with

myAttachment = nothing

or if it is disposable myAttachment.dispose

Remember that "return True" will cease all execution in the code block so anycode after "return" is not called so dispose of resources before you return.

The other option is use the

Try
'Code to Try
Catch
' Error code
Finally
' Clean up code
' You cant call return in here
' Also be carefull with dispose object that may not have been created as can end up will null reference errors
End try
GeneralRe: Referenced class won't let go of file Pin
KreativeKai20-Jun-08 3:58
professionalKreativeKai20-Jun-08 3:58 
QuestionCOMException Pin
Kevviy19-Jun-08 1:23
Kevviy19-Jun-08 1:23 
AnswerRe: COMException Pin
Noctris19-Jun-08 2:53
Noctris19-Jun-08 2:53 
AnswerRe: COMException Pin
Noctris19-Jun-08 2:54
Noctris19-Jun-08 2:54 
QuestionVB6: How to write a file joiner and splitter? Pin
oohungoo19-Jun-08 1:10
oohungoo19-Jun-08 1:10 
AnswerRe: VB6: How to write a file joiner and splitter? Pin
jzonthemtn19-Jun-08 4:26
jzonthemtn19-Jun-08 4:26 
QuestionWho knows to serial file transfer code Pin
rizal wibksana19-Jun-08 1:06
rizal wibksana19-Jun-08 1:06 
AnswerRe: Who knows to serial file transfer code Pin
jzonthemtn19-Jun-08 4:32
jzonthemtn19-Jun-08 4:32 
QuestionDrop items on specific location in listview Pin
Noctris18-Jun-08 23:13
Noctris18-Jun-08 23:13 
Questionread bitmap and display it back problem Pin
shee_dee8618-Jun-08 21:34
shee_dee8618-Jun-08 21:34 
Questionsql Pin
jacko87318-Jun-08 20:59
jacko87318-Jun-08 20:59 
AnswerRe: sql Pin
Noctris18-Jun-08 22:58
Noctris18-Jun-08 22:58 
GeneralRe: sql Pin
Ashfield18-Jun-08 23:18
Ashfield18-Jun-08 23:18 
GeneralRe: sql Pin
Noctris19-Jun-08 0:01
Noctris19-Jun-08 0:01 
GeneralRe: sql Pin
jacko87319-Jun-08 9:38
jacko87319-Jun-08 9:38 
GeneralRe: sql Pin
Noctris21-Jun-08 23:42
Noctris21-Jun-08 23:42 
QuestionRegarding Outlook progrmamming using .net Pin
Ansari Mohammad Aamir18-Jun-08 19:37
Ansari Mohammad Aamir18-Jun-08 19:37 

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.