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

run-time error 16391 with MP control in vb6

This is a discussion on run-time error 16391 with MP control in vb6 within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have a vb6 app that uses the MapPoint control. I recently recompiled the app (after several Windows updates). Now, ...

  1. #1
    cwrude is offline Junior Member Yellow Belt
    Join Date
    Nov 2004
    Posts
    19

    run-time error 16391 with MP control in vb6

    I have a vb6 app that uses the MapPoint control. I recently recompiled the app (after several Windows updates). Now, only on Windows 2003 servers, whenever I load the form in my app that contains the MP Control, I receive the vb msgbox with "Run-time error '16391'". I have tried re-compiling the app on an XP Pro machine, a 2000 Server and a Win 2K box. The app that was compiled on the win 2K does NOT exhibit the error when run on a Windows 2003 server. This would lead me to believe that something in the Windows update for XP and/or 2000 server has introduced some incompatibility. Has anyone else seen this behavior?

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Compiling on any machine should produce the same executable, so you have strange result. I did some search about that error but could not fount anything, tryed also the hexadecimal equivalent but also without result. You absolutely sure of the error number ? If it is a VB error I'm pretty sure it is documented somewere.

  3. #3
    cwrude is offline Junior Member Yellow Belt
    Join Date
    Nov 2004
    Posts
    19
    Turns out that the problem was version-related. I had MapPoint 2004 and MapPoint 2006 installed in my development environment. And even though my vb Project had all components and references pointing to the 2004 files (*.ocx etc.), the 2006 objects were being included in the compile. When running the app on a system running MP 2004, 2006 control references caused the run-time errors. I still do not understand why this will only happen when run on 2003 server. In any event, uninstalling MP 2006 from the development environment took care of the problem.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Error using ActiveX control in VB 6
    By bgower in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 09-16-2005, 09:40 AM
  2. Re: Keyboard control in mappoint activex control
    By djcapslock in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-10-2005, 11:16 AM
  3. About ERROR 4-40028-1. Error or Bug ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 12
    Last Post: 01-11-2005, 10:32 AM
  4. Run-time Error 16398 using Mappoint 2004 ocx
    By blueisland in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-13-2004, 01:59 AM
  5. Run-time error 'Method 'UpdateLink' object 'DataSet' failed
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-18-2003, 04:53 PM

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