5 Replies - 3965 Views - Last Post: 20 December 2010 - 02:06 PM Rate Topic: -----

#1 Krischu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 08-January 08

VB6 program (EXE slows down factor 5-10 under Windows 7)

Posted 16 December 2010 - 07:45 AM

I'm doing this for a colleague who has written the program. The attached project, compiled under VB6 under Windows XP runs fine. When the .EXE is run under Windows 7, the performance slows down by a factor of 5-10. Does anyone have a clue?

Any help welcome. Thanks in advance.

--
Christoph

Attached File(s)


This post has been edited by Krischu: 16 December 2010 - 07:45 AM

Is This A Good Question/Topic? 0
  • +

Replies To: VB6 program (EXE slows down factor 5-10 under Windows 7)

#2 maj3091  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 273
  • View blog
  • Posts: 1,635
  • Joined: 26-March 09

Re: VB6 program (EXE slows down factor 5-10 under Windows 7)

Posted 17 December 2010 - 07:23 AM

Can't really say why it's slower on Windows 7 (are they the same spec machine??).

A couple of things that could speed it up.

Before you start the loop, set the grid visible property to false, then at the end of the loop, set it to true.

I did this test and it speeds it up dramatically.

If you don't need to loop through the whole grid, you could just set the toprow to the value of IREND-1 and don't call the loop.

Hope that helps.
Was This Post Helpful? 0
  • +
  • -

#3 Krischu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 08-January 08

Re: VB6 program (EXE slows down factor 5-10 under Windows 7)

Posted 18 December 2010 - 08:12 AM

View Postmaj3091, on 17 December 2010 - 06:23 AM, said:

Can't really say why it's slower on Windows 7 (are they the same spec machine??).

A couple of things that could speed it up.

Before you start the loop, set the grid visible property to false, then at the end of the loop, set it to true.

I did this test and it speeds it up dramatically.

If you don't need to loop through the whole grid, you could just set the toprow to the value of IREND-1 and don't call the loop.

Hope that helps.


Thanks. Yes, machines are comparable. My colleague will probably read your answer as well and will comment whether your suggestions will be appropriate.

--
Christoph
Was This Post Helpful? 0
  • +
  • -

#4 Krischu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 08-January 08

Re: VB6 program (EXE slows down factor 5-10 under Windows 7)

Posted 20 December 2010 - 10:59 AM

View Postmaj3091, on 17 December 2010 - 06:23 AM, said:

Can't really say why it's slower on Windows 7 (are they the same spec machine??).

A couple of things that could speed it up.

Before you start the loop, set the grid visible property to false, then at the end of the loop, set it to true.

I did this test and it speeds it up dramatically.

If you don't need to loop through the whole grid, you could just set the toprow to the value of IREND-1 and don't call the loop.

Hope that helps.


Here is what my colleague writes:

Hello maj3091,

thanks for your answer! You’re right, the visible property speeds up performance, also the redraw property is useful. But sorry, in this special case, I need to know which is the active row (this short program example is part of an application, which shows the user what row is processed, so that he can stop and continue everywhere he wants). Therefore I‘m searching for some kind of smooth but quick scrolling (like under XP).
Was This Post Helpful? 0
  • +
  • -

#5 maj3091  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 273
  • View blog
  • Posts: 1,635
  • Joined: 26-March 09

Re: VB6 program (EXE slows down factor 5-10 under Windows 7)

Posted 20 December 2010 - 11:19 AM

I understand what you're saying, but unfortunately I don't have XP to look at the differences myself, to be able to advise any further.
Was This Post Helpful? 0
  • +
  • -

#6 raziel_  Icon User is offline

  • Like a lollipop
  • member icon

Reputation: 458
  • View blog
  • Posts: 4,222
  • Joined: 25-March 09

Re: VB6 program (EXE slows down factor 5-10 under Windows 7)

Posted 20 December 2010 - 02:06 PM

you see there is a lots of things that can slow down your application. first and most of all it use GUI. if the windows 7 graphic effects are on it will do all kind of cool looking (slowing the performance) miracles on your GUI. also this can be because of some restrictions of using dlls in system directory of your windows. but i cant give you a clear answer since i dont have window 7
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1