Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Recordset exception. What am I doing wrong? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Here is some test code in my program that I used to hunt down an exception. MapPoint.DataSet assignedMembers = oMap.DataSets.AddPushpinSet( ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Recordset exception. What am I doing wrong? MapPoint.DataSet assignedMembers = oMap.DataSets.AddPushpinSet( "Membership2" ); // Add 0 or more pushpins to the dataset MapPoint.Recordset rs; for ( int i = 0; i < 500 ; i++) { rs = assignedMembers.QueryAllRecords(); } Regardless of how many pushpins are added to the dataset, there will always be an unknown COM exception thrown when i = 201. Is there something that needs to be done to dispose, reset, delete, release, or reset the Recordset? Help me Obe Wan Kenobe. You are my last hope. -- Regards. Mark K Vallevand mark.vallevand@unisys.com |
| |||
|
Someone made this suggestion: I think you either need to call ReleaseDispatch() between invocations of QueryAllRecords() or create a "new" Recordset each time and delete when you're done. I don't grok this. ReleaseDispatch() is on what object? I don't see it anywhere. What do you mean by "new" and "delete" Recordset? QueryAllRecords() returns a Recordset. I assume that C# manages this object like others. I don't need to explicitly delete it. I'm missing something obvious or fundamental. |
| |||
|
OK. This guy was talking C++. This is C#. Has anyone ever called any of the query methods and gotten more than 200 recordsets? I think there is a bug here. Regards. Mark K Vallevand mark.vallevand@unisys.com |
![]() |
| Tags |
| exception, recordset, wrong |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unknown Host Exception | amitsh | MapPoint 2006/2009 Discussion | 3 | 12-19-2008 12:39 AM |
| OutOfMemory Exception | Gianmaria | MapPoint 2006/2009 Discussion | 1 | 01-24-2006 12:26 PM |
| Regarding COM exception at the end of execution... | Anonymous | MP2K Magazine Articles | 0 | 05-12-2005 12:23 PM |
| What am i doing wrong??? | alt-088 | MapPoint 2006/2009 Discussion | 2 | 09-16-2004 03:37 PM |
| Deriving a recordset from a mappoint recordset | RichardHayes | MapPoint 2006/2009 Discussion | 0 | 09-06-2002 02:44 AM |
Corfu Holiday
Why not enjoy the option of a Corfu holiday through UlookUbook? Check out the online offers...