Community of VE/MapPoint Users and Developers
This is a discussion on VB .NET is so slow! within the MapPoint 2006/2009 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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| VB .NET is so slow! 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 |
| |||
|
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. |
| |||
|
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 |
![]() |
| Tags |
| net, slow |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shapes.AddPolyline is very slow | tdaffin | MapPoint 2006/2009 Discussion | 4 | 01-27-2006 08:08 AM |
| Access and MapPoint control _really_ slow | dynek | MapPoint 2006/2009 Discussion | 2 | 01-07-2005 12:14 PM |
| moving through recordset is slow | stephenmillington | MapPoint 2006/2009 Discussion | 0 | 07-07-2004 06:28 AM |
| MP 2004 really slow with large custom territories | Anonymous | MapPoint 2006/2009 Discussion | 4 | 02-04-2004 07:21 AM |