Click here to Skip to main content
15,915,702 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionbuilt video movie maker in vb.NET application Pin
cheerup_woe14-Jun-07 0:20
cheerup_woe14-Jun-07 0:20 
AnswerRe: built video movie maker in vb.NET application Pin
Steven J Jowett14-Jun-07 5:14
Steven J Jowett14-Jun-07 5:14 
QuestionCannot delete file because it is in use by another process Pin
Tom Deketelaere13-Jun-07 23:36
professionalTom Deketelaere13-Jun-07 23:36 
AnswerRe: Cannot delete file because it is in use by another process Pin
Colin Angus Mackay13-Jun-07 23:41
Colin Angus Mackay13-Jun-07 23:41 
GeneralRe: Cannot delete file because it is in use by another process Pin
Tom Deketelaere13-Jun-07 23:48
professionalTom Deketelaere13-Jun-07 23:48 
GeneralRe: Cannot delete file because it is in use by another process Pin
Colin Angus Mackay13-Jun-07 23:58
Colin Angus Mackay13-Jun-07 23:58 
GeneralRe: Cannot delete file because it is in use by another process Pin
Tom Deketelaere14-Jun-07 0:02
professionalTom Deketelaere14-Jun-07 0:02 
GeneralRe: Cannot delete file because it is in use by another process Pin
Colin Angus Mackay14-Jun-07 0:42
Colin Angus Mackay14-Jun-07 0:42 
TDDragon wrote:
Dim im As Image = Drawing.Image.FromFile(path)
pic.Image = im
im = Nothing


All this does is set the reference that im holds to nothing. The object still exists because you passed the reference to it to pic.Image.

Remember, most (the vast majority) of object types are reference types. Setting a variable to nothing just means the variable's reference is set to nothing. It does not mean the object ceased to exist. If something else is using the actual object then it will continue to exist.

TDDragon wrote:
is this what you mean by disposing the image?


No. Look for the Dispose() method.

Do NOT Dispose an object that is in use. Only Dispose of an object when it is no longer needed.


Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5

Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton


My website

GeneralRe: Cannot delete file because it is in use by another process Pin
Tom Deketelaere14-Jun-07 1:37
professionalTom Deketelaere14-Jun-07 1:37 
GeneralRe: Cannot delete file because it is in use by another process Pin
Dave Kreskowiak14-Jun-07 5:23
mveDave Kreskowiak14-Jun-07 5:23 
GeneralRe: Cannot delete file because it is in use by another process Pin
Tom Deketelaere14-Jun-07 21:12
professionalTom Deketelaere14-Jun-07 21:12 
GeneralRe: Cannot delete file because it is in use by another process Pin
Dave Kreskowiak16-Jun-07 11:48
mveDave Kreskowiak16-Jun-07 11:48 
GeneralRe: Cannot delete file because it is in use by another process Pin
Tom Deketelaere14-Jun-07 0:18
professionalTom Deketelaere14-Jun-07 0:18 
GeneralRe: Cannot delete file because it is in use by another process Pin
Colin Angus Mackay14-Jun-07 0:46
Colin Angus Mackay14-Jun-07 0:46 
QuestionCreating a patch application Pin
steve_rm13-Jun-07 23:04
steve_rm13-Jun-07 23:04 
AnswerRe: Creating a patch application Pin
Dave Kreskowiak14-Jun-07 5:20
mveDave Kreskowiak14-Jun-07 5:20 
Questionsaving clocking in and out of a employee Pin
saraswathy14313-Jun-07 22:09
saraswathy14313-Jun-07 22:09 
AnswerRe: saving clocking in and out of a employee Pin
Steven J Jowett13-Jun-07 22:20
Steven J Jowett13-Jun-07 22:20 
GeneralRe: saving clocking in and out of a employee Pin
saraswathy14314-Jun-07 23:06
saraswathy14314-Jun-07 23:06 
QuestionControl Casting Not Working Pin
Brendan Vogt13-Jun-07 22:05
Brendan Vogt13-Jun-07 22:05 
QuestionRe: Control Casting Not Working Pin
Brendan Vogt13-Jun-07 22:16
Brendan Vogt13-Jun-07 22:16 
QuestionExtended Web Browser Pin
kevinido13-Jun-07 21:36
kevinido13-Jun-07 21:36 
AnswerRe: Extended Web Browser Pin
Steven J Jowett13-Jun-07 22:21
Steven J Jowett13-Jun-07 22:21 
GeneralRe: Extended Web Browser Pin
kevinido13-Jun-07 23:32
kevinido13-Jun-07 23:32 
GeneralRe: Extended Web Browser Pin
Steven J Jowett14-Jun-07 5:27
Steven J Jowett14-Jun-07 5:27 

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.