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 10 of 10

Add-In Development Goes Sour

This is a discussion on Add-In Development Goes Sour within the Development forums, part of the MapPoint Desktop Discussion category; Sorry for the duplicate post - didn't find this forum until now. I have been developing an Add-In for MP2004 ...

  1. #1
    SatelliteSurfer is offline Junior Member Yellow Belt
    Join Date
    Jul 2009
    Posts
    17

    Add-In Development Goes Sour

    Sorry for the duplicate post - didn't find this forum until now.

    I have been developing an Add-In for MP2004 using VB6 SP6. Most of the functionality in the Add-In is computational so I develop mostly in a helper application so that I can debug the development. Every now and then, I integrate the code from the helper to the Add-In and verify the functionality in the Add-In.
    Everything was going well until a day ago when I received an 'object not set' error. The error appears only in the Add-In - not in the helper application. I commented out the offending code and the error appeared again only a few lines above the commented out code. Since I can't debug in MapPoint, I wanted to post in the forum for advice, similar experience, and help.

    Thanks,

    Joe

  2. #2
    Mattys Consulting's Avatar
    Mattys Consulting is offline Senior Member Black Belt
    Join Date
    Dec 2002
    Posts
    1,040

    Re: Add-In Development Goes Sour

    I work in both VB6 and C#.

    With the advent of .Net and some rather recent patches called
    (something like) "COM-Killers," I've noticed a few things:

    - It appears that all VB6 calls are routed through .Net (invoke)
    - VB6 seems to have a governor on it's speed (to frustrate any late adopters). C# is as fast as VB6 used to be.
    - There are random errors that never happened before these "patches."

    "VB6 doesn't handle COM correctly" was what I was told.
    Right! - not anymore, it doesn't!

    Mike Mattys

  3. #3
    Mattys Consulting's Avatar
    Mattys Consulting is offline Senior Member Black Belt
    Join Date
    Dec 2002
    Posts
    1,040

    Re: Add-In Development Goes Sour

    Heh, Speaking of sour ...

    For the record, I'm beginning to like Visual Studio 2008 very much.
    Add to that SQL Server Express and the rest of the Microsoft lineup ...
    Once the rock gets rolling again it's going to be a blast!

    Sorry 'bout the hijacking, back to the task at hand:

    One thing I did was to put a label AtTheTop and then a trap (on error resume next/if err.number>0 then goto Trap) where I reinstantiated everything and then Resume AtTheTop.


    Mike Mattys
    Mattys Consulting - Custom Programming

  4. #4
    SatelliteSurfer is offline Junior Member Yellow Belt
    Join Date
    Jul 2009
    Posts
    17

    Re: Add-In Development Goes Sour

    Thanks for the response!

    Wow! I think my laptop received a couple of patches recently. I almost feel watched.

    So, a couple of follow up questions:

    1. Can I use VS 2008 to develop the Add-In and call it through a CCW in MP2004?
    2. What version(s) of MapPoint support .Net?
    3. I like the solution in the last post but I was wondering if you have experienced a race condition with it?

  5. #5
    Mattys Consulting's Avatar
    Mattys Consulting is offline Senior Member Black Belt
    Join Date
    Dec 2002
    Posts
    1,040

    Re: Add-In Development Goes Sour

    Hi Joe,

    1) Yes
    2) MapPoint can't really tell the difference between programming environments unless, of course, you're using
    3) Let's see, MapPoint is single threaded and this is a COM Addin ... hm ... nope, I don't think so.

    Mike Mattys
    Mattys Consulting - Custom Programming

  6. #6
    Mattys Consulting's Avatar
    Mattys Consulting is offline Senior Member Black Belt
    Join Date
    Dec 2002
    Posts
    1,040

    Re: Add-In Development Goes Sour

    Just in case:
    See this thread: VB6 Mutex? Need to Eliminate Race Conditions - VBForums
    Look for code called cFileLock.

    (Not sure what you're application is)

    Mike Mattys

  7. #7
    SatelliteSurfer is offline Junior Member Yellow Belt
    Join Date
    Jul 2009
    Posts
    17

    Re: Add-In Development Goes Sour

    Thanks for the quick reply!

    My application is weather balloon tracking. The Add-In provides the computations to predict a flight path (and display it on the map), simulation a balloon flight (and display it on the map), and track a balloon in real-time (and, well, you know).

    Race may have been a poor word choice on my part. From the posted solution, the Add-In would resume execution, and start over (that might be simplifying it). If the error continues, then it resumes and starts over again. It seemed like a possible scenario so I asked about it.
    I'm curious about VS 2008 and the CCW. Would that combination get around the 'features' in the patches? My thought is MP2004 might have issues using COM as well and I would be no farther ahead. On the other hand, if it is stable, then I have a solution for multiple versions of MapPoint.

    Thanks,

    Joe

  8. #8
    Mattys Consulting's Avatar
    Mattys Consulting is offline Senior Member Black Belt
    Join Date
    Dec 2002
    Posts
    1,040

    Re: Add-In Development Goes Sour

    I'm not sure what this COM Callable Wrapper thingie is.

    All we did was copy the registry keys that were made for other Office Addins under our own MapPoint Key and the Addin showed up with right-click-Install of the setup component.

    Nothing to do with VB6, though - can't get around it being non-multithread and non-Unicode (unless you want to pay somebody $800 for it).

    Mike Mattys

  9. #9
    SatelliteSurfer is offline Junior Member Yellow Belt
    Join Date
    Jul 2009
    Posts
    17

    Re: Add-In Development Goes Sour

    Thanks!

    If I may ask, what level of VS2008 are you using? Express? Standard? Professional?

    Joe

  10. #10
    Mattys Consulting's Avatar
    Mattys Consulting is offline Senior Member Black Belt
    Join Date
    Dec 2002
    Posts
    1,040

    Re: Add-In Development Goes Sour

    Hi Joe,

    I jumped right into purchasing the Pro version to participate in
    a SCRUM run with several developers from dba MainPage
    to produce Northwind.NET - Home.

    Thereafter, my brother, Eric, and I began experimenting with different
    ideas using ADO, SAP, SQLS, MapPoint, Access, etc.

    Mike Mattys
    Mattys Consulting - Custom Programming

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Software Development
    By ben45 in forum News and Announcements
    Replies: 0
    Last Post: 03-05-2008, 11:53 AM
  2. Best Development Product
    By mtcook01 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-08-2007, 02:45 PM
  3. MapPoint Development Strategies?
    By tacaldo in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-23-2005, 02:03 PM
  4. MapPoint control for Win CE.NET development (x86)
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 12-21-2004, 05:27 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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127