Click here to Skip to main content
15,913,854 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionMulti-threaded code runs slower after upgrading to VS 2005 & .Net 2.0 Pin
JW7389-Dec-06 18:04
JW7389-Dec-06 18:04 
AnswerRe: Multi-threaded code runs slower after upgrading to VS 2005 & .Net 2.0 Pin
Guffa9-Dec-06 19:01
Guffa9-Dec-06 19:01 
GeneralRe: Multi-threaded code runs slower after upgrading to VS 2005 & .Net 2.0 Pin
JW7389-Dec-06 21:34
JW7389-Dec-06 21:34 
GeneralRe: Multi-threaded code runs slower after upgrading to VS 2005 & .Net 2.0 Pin
Robert Rohde10-Dec-06 5:59
Robert Rohde10-Dec-06 5:59 
GeneralRe: Multi-threaded code runs slower after upgrading to VS 2005 & .Net 2.0 Pin
JW73810-Dec-06 16:10
JW73810-Dec-06 16:10 
GeneralRe: Multi-threaded code runs slower after upgrading to VS 2005 & .Net 2.0 Pin
Guffa10-Dec-06 18:31
Guffa10-Dec-06 18:31 
GeneralRe: Multi-threaded code runs slower after upgrading to VS 2005 & .Net 2.0 Pin
JW73810-Dec-06 22:50
JW73810-Dec-06 22:50 
GeneralRe: Multi-threaded code runs slower after upgrading to VS 2005 & .Net 2.0 Pin
Guffa10-Dec-06 23:10
Guffa10-Dec-06 23:10 
I see... so it added an implicit conversion, which is slow because it has to take any possible data type in consideration. VB is so helpful to add bad code instead of telling you that your code is wrong. Wink | ;)

Use DirectCast instead of CType if you only want to specify the data type of existing data, and don't want to do any conversion. It's faster, and the code gets clearer.

---
b { font-weight: normal; }

GeneralRe: Multi-threaded code runs slower after upgrading to VS 2005 & .Net 2.0 Pin
Kevin McFarlane12-Dec-06 5:12
Kevin McFarlane12-Dec-06 5:12 
QuestionI NEED HELP!!!!!!!!!!!!!!!! Pin
lfpmx9-Dec-06 9:57
lfpmx9-Dec-06 9:57 
GeneralRe: Useless subject Pin
Guffa9-Dec-06 10:35
Guffa9-Dec-06 10:35 
AnswerRe: I NEED HELP!!!!!!!!!!!!!!!! Pin
Paul Conrad9-Dec-06 10:53
professionalPaul Conrad9-Dec-06 10:53 
AnswerRe: I NEED HELP!!!!!!!!!!!!!!!! Pin
The ANZAC9-Dec-06 12:57
The ANZAC9-Dec-06 12:57 
AnswerRe: I NEED HELP!!!!!!!!!!!!!!!! Pin
Kevin McFarlane9-Dec-06 13:38
Kevin McFarlane9-Dec-06 13:38 
GeneralRe: I NEED HELP!!!!!!!!!!!!!!!! Pin
Guffa9-Dec-06 14:11
Guffa9-Dec-06 14:11 
GeneralRe: I NEED HELP!!!!!!!!!!!!!!!! Pin
Kevin McFarlane9-Dec-06 23:48
Kevin McFarlane9-Dec-06 23:48 
AnswerRe: I NEED HELP!!!!!!!!!!!!!!!! Pin
Christian Graus9-Dec-06 23:46
protectorChristian Graus9-Dec-06 23:46 
GeneralRe: I NEED HELP!!!!!!!!!!!!!!!! Pin
Guffa10-Dec-06 1:58
Guffa10-Dec-06 1:58 
GeneralRe: I NEED HELP!!!!!!!!!!!!!!!! Pin
Robert Rohde10-Dec-06 6:04
Robert Rohde10-Dec-06 6:04 
AnswerRe: I NEED HELP!!!!!!!!!!!!!!!! Pin
gocap11-Dec-06 1:17
gocap11-Dec-06 1:17 
QuestionHiding forms Pin
freefika9-Dec-06 8:45
freefika9-Dec-06 8:45 
AnswerRe: Hiding forms Pin
Christian Graus9-Dec-06 23:49
protectorChristian Graus9-Dec-06 23:49 
QuestionForm on topmost Pin
tessers9-Dec-06 8:30
tessers9-Dec-06 8:30 
AnswerRe: Form on topmost Pin
Paul Conrad9-Dec-06 10:56
professionalPaul Conrad9-Dec-06 10:56 
GeneralRe: Form on topmost Pin
tessers10-Dec-06 1:20
tessers10-Dec-06 1:20 

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.