Click here to Skip to main content
15,890,579 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionGetType on a Referenced Assemble without hardcoding assembly loadfrom values Pin
MartyK200731-May-08 8:19
MartyK200731-May-08 8:19 
AnswerRe: GetType on a Referenced Assemble without hardcoding assembly loadfrom values Pin
Dave Kreskowiak1-Jun-08 4:09
mveDave Kreskowiak1-Jun-08 4:09 
GeneralRe: GetType on a Referenced Assemble without hardcoding assembly loadfrom values Pin
MartyK20072-Jun-08 0:58
MartyK20072-Jun-08 0:58 
GeneralRe: GetType on a Referenced Assemble without hardcoding assembly loadfrom values Pin
Dave Kreskowiak2-Jun-08 1:34
mveDave Kreskowiak2-Jun-08 1:34 
GeneralRe: GetType on a Referenced Assemble without hardcoding assembly loadfrom values Pin
MartyK20072-Jun-08 6:13
MartyK20072-Jun-08 6:13 
GeneralRe: GetType on a Referenced Assemble without hardcoding assembly loadfrom values Pin
Dave Kreskowiak2-Jun-08 15:28
mveDave Kreskowiak2-Jun-08 15:28 
QuestionClipCursor not working Pin
Chris Copeland31-May-08 7:15
mveChris Copeland31-May-08 7:15 
QuestionI/O leak when using .NET functions Pin
WhiteDog31-May-08 6:13
WhiteDog31-May-08 6:13 
I've just started experimenting with VB.Net and ran into a problem I don't really kniw how to handle.

I'm writing a simple DU Meter like appliation with a timer that retrieves some network information every second. When i have a look in the Task Manager, I see my applications "I/O Other" counter is rising about 2000 points every second (in comparison, the average app only uses 20000).

I narrowed it down to the following piece of code:
Imports System
Imports System.Net
Imports System.Net.NetworkInformation

Public Class DUMeter
    Public Function InterfacesCount() as Integer
        InterfacesCount = NetworkInterface.GetAllNetworkInterfaces.Length
    End Function
End Class


So every time I retrieve the number of adapters, that number rises. Is there a way to clean up these resources or am I doing something fundamentally wrong?
AnswerRe: I/O leak when using .NET functions Pin
Dave Kreskowiak31-May-08 12:14
mveDave Kreskowiak31-May-08 12:14 
GeneralRe: I/O leak when using .NET functions Pin
WhiteDog31-May-08 15:57
WhiteDog31-May-08 15:57 
GeneralRe: I/O leak when using .NET functions Pin
Dave Kreskowiak1-Jun-08 3:57
mveDave Kreskowiak1-Jun-08 3:57 
QuestionpreInsert Trigger Pin
sahar_mal31-May-08 3:44
sahar_mal31-May-08 3:44 
AnswerRe: preInsert Trigger Pin
Dave Kreskowiak31-May-08 11:59
mveDave Kreskowiak31-May-08 11:59 
GeneralRe: preInsert Trigger Pin
sahar_mal1-Jun-08 20:18
sahar_mal1-Jun-08 20:18 
GeneralRe: preInsert Trigger Pin
Dave Kreskowiak2-Jun-08 1:28
mveDave Kreskowiak2-Jun-08 1:28 
GeneralRe: preInsert Trigger Pin
sahar_mal2-Jun-08 19:55
sahar_mal2-Jun-08 19:55 
QuestiondataGridView Chenge with ComboBox Pin
sahar_mal31-May-08 3:39
sahar_mal31-May-08 3:39 
QuestionTransfer Datas Pin
senthilsstil31-May-08 1:34
senthilsstil31-May-08 1:34 
AnswerRe: Transfer Datas Pin
Mycroft Holmes31-May-08 2:00
professionalMycroft Holmes31-May-08 2:00 
GeneralRe: Transfer Datas Pin
senthilsstil31-May-08 2:08
senthilsstil31-May-08 2:08 
Question.Net and touch screens [modified] Pin
The Web Developer30-May-08 11:55
The Web Developer30-May-08 11:55 
AnswerRe: .Net and touch screens Pin
Joe Woodbury30-May-08 12:01
professionalJoe Woodbury30-May-08 12:01 
GeneralRe: .Net and touch screens Pin
The Web Developer30-May-08 12:24
The Web Developer30-May-08 12:24 
GeneralRe: .Net and touch screens Pin
Joe Woodbury30-May-08 12:31
professionalJoe Woodbury30-May-08 12:31 
JokeRe: .Net and touch screens Pin
FyreWyrm30-May-08 13:51
FyreWyrm30-May-08 13:51 

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.