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

Visual Basic

 
QuestionSystem.IO.FileNotFoundException: Could not load file or assembly 'ADODB, Version=7.0.3300.0, error in vb.net [modified] Pin
babusat20-Jul-07 17:49
babusat20-Jul-07 17:49 
AnswerRe: System.IO.FileNotFoundException: Could not load file or assembly 'ADODB, Version=7.0.3300.0, error in vb.net Pin
Luc Pattyn20-Jul-07 18:26
sitebuilderLuc Pattyn20-Jul-07 18:26 
Question"Value of type 'Double' cannot be converted ... Pin
schmidtjts20-Jul-07 13:51
schmidtjts20-Jul-07 13:51 
AnswerRe: "Value of type 'Double' cannot be converted ... Pin
Luc Pattyn20-Jul-07 17:18
sitebuilderLuc Pattyn20-Jul-07 17:18 
AnswerRe: "Value of type 'Double' cannot be converted ... Pin
Dave Kreskowiak22-Jul-07 4:28
mveDave Kreskowiak22-Jul-07 4:28 
GeneralRe: "Value of type 'Double' cannot be converted ... Pin
Luc Pattyn22-Jul-07 5:27
sitebuilderLuc Pattyn22-Jul-07 5:27 
QuestionSocket taking too long to close... Pin
uneasyrider20-Jul-07 9:39
uneasyrider20-Jul-07 9:39 
AnswerRe: Socket taking too long to close... Pin
Luc Pattyn20-Jul-07 17:32
sitebuilderLuc Pattyn20-Jul-07 17:32 
Hi,

I can not tell what is wrong just by looking.

One thing that strikes me is you have a lot of MessageBox statements, maybe one shows,
no matter what the flow in the method is. Wouldnt it then be better to close what needs to
be closed before you do a MessageBox ? (also it seems you sometimes do a GetStream.Close
after tcpCient.Close; dont know if that is wise). I think you could just set a string
variable (say "message") to the appropriate text, then go to the end of the method
where you close things and do the one and only MessageBox.Show(message).

If the above dont help, I would suggest you get more insight in the timing of your code:
what happens exactly when, and how long does it take. Therefore I would add some
timestamp logging statements.

Sorry but my examples will be in C# (I trust you'll know how to translate to VB):

// this method logs one line of text, adding a timestamp to it
private static void log(string s) {Console.WriteLine(DateTime.Now.ToString("mm:ss.fff  ")+s);}

// add log lines everywhere, as in:
log("before connect");
tcpClient.Connect("10.1.1.94", 8444)            
log("connected");

// in particular one after the last line, whatever it is:
tcpClient.GetStream.Close()
log("tcp stream closed");


looking at the output you may discover that your code really takes several seconds to
execute, and maybe that there are opportunities to make it run a lot faster.


Hope this helps




Questionvb.net Pin
sgi.manish20-Jul-07 9:38
sgi.manish20-Jul-07 9:38 
AnswerRe: vb.net Pin
Dave Kreskowiak20-Jul-07 10:01
mveDave Kreskowiak20-Jul-07 10:01 
GeneralRe: vb.net Pin
leckey20-Jul-07 10:08
leckey20-Jul-07 10:08 
AnswerPlease read the forum guidelines Pin
leckey20-Jul-07 10:06
leckey20-Jul-07 10:06 
GeneralRe: Please read the forum guidelines Pin
Paul Conrad20-Jul-07 10:28
professionalPaul Conrad20-Jul-07 10:28 
GeneralRe: Please read the forum guidelines Pin
leckey20-Jul-07 10:42
leckey20-Jul-07 10:42 
GeneralRe: Please read the forum guidelines Pin
Paul Conrad20-Jul-07 10:46
professionalPaul Conrad20-Jul-07 10:46 
QuestionVisual Basic -Data access ,Data missing Pin
Rajesh Rajan Pankapattu20-Jul-07 9:09
Rajesh Rajan Pankapattu20-Jul-07 9:09 
AnswerRe: Visual Basic -Data access ,Data missing Pin
ciacia20-Jul-07 9:28
ciacia20-Jul-07 9:28 
AnswerRe: Visual Basic -Data access ,Data missing Pin
cutequencher21-Jul-07 6:43
cutequencher21-Jul-07 6:43 
QuestionVB .NET - is it really worth it? Pin
GuyThiebaut20-Jul-07 6:47
professionalGuyThiebaut20-Jul-07 6:47 
AnswerRe: VB .NET - is it really worth it? Pin
Dave Kreskowiak20-Jul-07 7:11
mveDave Kreskowiak20-Jul-07 7:11 
GeneralRe: VB .NET - is it really worth it? Pin
GuyThiebaut20-Jul-07 7:39
professionalGuyThiebaut20-Jul-07 7:39 
GeneralRe: VB .NET - is it really worth it? Pin
Paul Conrad20-Jul-07 8:26
professionalPaul Conrad20-Jul-07 8:26 
GeneralRe: VB .NET - is it really worth it? Pin
Kevin McFarlane20-Jul-07 9:13
Kevin McFarlane20-Jul-07 9:13 
AnswerRe: VB .NET - is it really worth it? Pin
Christian Graus20-Jul-07 19:27
protectorChristian Graus20-Jul-07 19:27 
GeneralRe: VB .NET - is it really worth it? Pin
Dave Kreskowiak21-Jul-07 1:53
mveDave Kreskowiak21-Jul-07 1:53 

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.