![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 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 Specs![]() |
| | #3 (permalink) |
| | 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". 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 Specs![]() |
| | #4 (permalink) |
| | 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 > 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 Specs![]() |
| | #5 (permalink) |
| | 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 >> 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 Specs![]() |
![]() |
| 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 | |||