Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Running App in design environment is very slow

Reply
 
Old 05-11-2009   #1 (permalink)
Young


 
 

Running App in design environment is very slow

Hi,

I am converting a VB6 app. to VB.Net.

When I run the app. in the IDE, it is very very slow. If I compiled it, the
speed is acceptable but still slower than the equivalent VB6 app.

Can someone please tell me if there's any compile settings/options that will
make the app. run faster in the IDE as well as the compiled version? I've
already set it to compile "optimisation".

TIA
Young



My System SpecsSystem Spec
Old 05-11-2009   #2 (permalink)
PvdG42


 
 

Re: Running App in design environment is very slow


"Young" <young10000@xxxxxx> wrote in message
news:4a08c4e4$1@xxxxxx
Quote:

> Hi,
>
> I am converting a VB6 app. to VB.Net.
>
> When I run the app. in the IDE, it is very very slow. If I compiled it,
> the speed is acceptable but still slower than the equivalent VB6 app.
>
> Can someone please tell me if there's any compile settings/options that
> will make the app. run faster in the IDE as well as the compiled version?
> I've already set it to compile "optimisation".
>
> TIA
> Young
Before we can address your issue, it would be helpful if you could describe
exactly what you mean by "I am converting...".
Are you redesigning/rewriting the code to do things "the .NET" way, or did
you accept conversion wizard output and make minimal code changes as
required by wizard instructions? I'm not trying to say this is the only
issue, but if you did the latter, the results will be less efficient.

My System SpecsSystem Spec
Old 05-11-2009   #3 (permalink)
Nobody


 
 

Re: Running App in design environment is very slow

"Young" <young10000@xxxxxx> wrote in message
news:4a08c4e4$1@xxxxxx
Quote:

> Hi,
>
> I am converting a VB6 app. to VB.Net.
>
> When I run the app. in the IDE, it is very very slow. If I compiled it,
> the speed is acceptable but still slower than the equivalent VB6 app.
>
> Can someone please tell me if there's any compile settings/options that
> will make the app. run faster in the IDE as well as the compiled version?
> I've already set it to compile "optimisation".
How much memory do you have in your system?

Try using Ngen tool:

http://en.wikipedia.org/wiki/Common_...or_compilation

Native Image Generator (Ngen.exe)
http://msdn.microsoft.com/en-us/libr...cf(VS.80).aspx


My System SpecsSystem Spec
Old 05-16-2009   #4 (permalink)
Young


 
 

Re: Running App in design environment is very slow

Hi,

I am doing the conversion manually.

Young

"PvdG42" <pvan@xxxxxx> wrote in message
news:uG2qg9p0JHA.1900@xxxxxx
Quote:

>
> "Young" <young10000@xxxxxx> wrote in message
> news:4a08c4e4$1@xxxxxx
Quote:

>> Hi,
>>
>> I am converting a VB6 app. to VB.Net.
>>
>> When I run the app. in the IDE, it is very very slow. If I compiled it,
>> the speed is acceptable but still slower than the equivalent VB6 app.
>>
>> Can someone please tell me if there's any compile settings/options that
>> will make the app. run faster in the IDE as well as the compiled version?
>> I've already set it to compile "optimisation".
>>
>> TIA
>> Young
> Before we can address your issue, it would be helpful if you could
> describe exactly what you mean by "I am converting...".
> Are you redesigning/rewriting the code to do things "the .NET" way, or did
> you accept conversion wizard output and make minimal code changes as
> required by wizard instructions? I'm not trying to say this is the only
> issue, but if you did the latter, the results will be less efficient.
>

My System SpecsSystem Spec
Old 05-16-2009   #5 (permalink)
Cor Ligthert[MVP]


 
 

Re: Running App in design environment is very slow

Young,

This is in fact not of interest to ask in all those newsgroups you are cross
posting to.
This is typical language VB, therefore please cut of those newsgroups which
are not language.vb the next time.
I don't do that now to show others that I have asked this already to you.

Now your answer,

Running VB for Net is normally as fast as any (large) C++ or C# language.

However, to make conversion from VB to VB6 possible, it was needed to keep
the same behaviour as in VB6 (which is obviously slower then C++).
This behaviour is late (Type) binding (resolve types at runtime instead of
design time), think about the Var in VB6 to get an idea about this.

The simple trick is to set Option Strict to On in top of your programs or
easier in the Options (However, in fact is in top better because the Options
are an IDE part).

As you are using version 2008 and set then direct Option Infer to On, then
you get back a little bit of the VB6 behaviour but then with early (Type)
binding, but this only inside a method. This I write because because do you
have less to change (and this late sentence for the puritans).

It is easier for you to set it every time in top of a class (form whatever
you probably still call it), because then you can do it class by class.

The most problems you will encounter will be solved by this statement
"CType(TheVariable,TheType)" you see mostly the type in the error message
which shows up. (It is better to use Directcast instead CType in some
situations, but the result of that is so low that it is not important while
being busy with conversion).

I hope this helps a little bit,

Cor



"Young" <young10000@xxxxxx> wrote in message
news:4a0e5d91$1@xxxxxx
Quote:

> Hi,
>
> I am doing the conversion manually.
>
> Young
>
> "PvdG42" <pvan@xxxxxx> wrote in message
> news:uG2qg9p0JHA.1900@xxxxxx
Quote:

>>
>> "Young" <young10000@xxxxxx> wrote in message
>> news:4a08c4e4$1@xxxxxx
Quote:

>>> Hi,
>>>
>>> I am converting a VB6 app. to VB.Net.
>>>
>>> When I run the app. in the IDE, it is very very slow. If I compiled it,
>>> the speed is acceptable but still slower than the equivalent VB6 app.
>>>
>>> Can someone please tell me if there's any compile settings/options that
>>> will make the app. run faster in the IDE as well as the compiled
>>> version? I've already set it to compile "optimisation".
>>>
>>> TIA
>>> Young
>> Before we can address your issue, it would be helpful if you could
>> describe exactly what you mean by "I am converting...".
>> Are you redesigning/rewriting the code to do things "the .NET" way, or
>> did you accept conversion wizard output and make minimal code changes as
>> required by wizard instructions? I'm not trying to say this is the only
>> issue, but if you did the latter, the results will be less efficient.
>>
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Problems running slow after update, IE but expecially running any Vista music pictures video
Workflow ending in slow server environment .NET General
Slow install and running slow after, HELP!!! :) Vista installation & setup
PC slow in development environment .NET General
CPU Running 100% - Very Slow Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46