Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

VB .NET is so slow!

This is a discussion on VB .NET is so slow! within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have recently been converting a MapPoint project from VB6 to VB .NET 2003. The project includes two distinctly separate ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    VB .NET is so slow!

    I have recently been converting a MapPoint project from VB6 to VB .NET 2003. The project includes two distinctly separate procedures that perform multiple iterations to obtain the end result. It felt slower in .NET so I timed the procedures using the Timer function.

    In VB6 both procedures took aproximately 1.0 seconds even if repeated several times.

    The initial times in .NET were 1.25 seconds, however if the procedures were repeated, then the times would gradually increase to 5.0 seconds and then revert back to 1.25 seconds in a cyclical fashion.

    Both produced exactly the same result and used the same code, no modifications were required for .NET.

    So if you want fast code stick with VB6!!!!

    Perhaps everyone knew this already.

    If anyone has any thoughts on this I'd be interested.

    Roger

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    If you made no changes for .NET and your getting cyclical performance results, my first thought would be you need to add calls to object Dispose methods. You can use Intelisense to find which classes implement Dispose, for instances of those objects be sure to call it.

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Thanks but still having problems. I suspected it might be a problem with garbage disposal so moved the code onto a form, created a new instance of the form, ran the code, then called the dispose method on the form instance.
    The code itself only uses standard variables and does not create any new objects that can be disposed.
    The times still vary cyclically with each call to the procedure.

    Roger

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Shapes.AddPolyline is very slow
    By tdaffin in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-27-2006, 08:08 AM
  2. Access and MapPoint control _really_ slow
    By dynek in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-07-2005, 12:14 PM
  3. moving through recordset is slow
    By stephenmillington in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-07-2004, 06:28 AM
  4. MP 2004 really slow with large custom territories
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 02-04-2004, 07:21 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96