Hi Thomas,
 
Thank you so much for your prompt answer! I will change the register as you mentioned and see if I get a more specific error. I get the lovely .NET message, but most of things are empty (nothing) or just a repetition of the error I sent. That's why I'm looking for help.
 
Most of things I did are working. I will keep you posted if I find the solution.
 
Thank you again.
Sandra

----- Original Message ----
From: [EMAIL PROTECTED]
To: mapinfo-l@lists.directionsmag.com
Sent: Thursday, March 30, 2006 9:41:32 PM
Subject: MapInfo-L Digest, Vol 5, Issue 96

Send MapInfo-L mailing list submissions to
    mapinfo-l@lists.directionsmag.com

To subscribe or unsubscribe via the World Wide Web, visit
    http://www.directionsmag.com/mailman/listinfo/mapinfo-l
or, via email, send a message with subject or body 'help' to
    [EMAIL PROTECTED]

You can reach the person managing the list at
    [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of MapInfo-L digest..."


Today's Topics:

   1. farthest distance between two points within a polygon (Rena J.)
   2. Closing tables and callback in vb 2005 express edition    (.net)
      - urgent. (SM)
   3. RE: Closing tables and callback in vb 2005 express
      edition(.net) - urgent. (SCISOFT)


----------------------------------------------------------------------

Message: 1
Date: Thu, 30 Mar 2006 15:37:26 -0500
From: "Rena J." <[EMAIL PROTECTED]>
Subject: [MI-L] farthest distance between two points within a polygon
To: mapinfo-l@lists.directionsmag.com
Message-ID:
    <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Is there a quick way to calculate the longest distance between the nodes in
a polygon?  I think the distance tool does MORE than I need. I'm only
interested in the longest distance between any two nodes in a particular
region, and I'd like to calculate this for a map of about 1100 regions.

Thanks !

RJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.directionsmag.com/pipermail/mapinfo-l/attachments/20060330/6e8715f9/attachment-0001.htm

------------------------------

Message: 2
Date: Thu, 30 Mar 2006 16:42:19 -0800 (PST)
From: SM <[EMAIL PROTECTED]>
Subject: [MI-L] Closing tables and callback in vb 2005 express edition
    (.net) - urgent.
To: mapinfo-l@lists.directionsmag.com
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

Hi all,

I'm using vb 2005 express and I created a program to use mapinfo as a base for my tables, I'm using callbacks and succesfully conect with all Mapinfo funcitons as I want.

I have a couple of issues I'm working on, but the main one is that I'm receiving a COM error when I'm closing the last table I'm using, these are the steps:

1) I'm connecting via OLE
2) I'm using a Form as MIDI and a picture box on my MIDI dialog box where I can see my mapinfo tables
3) I can basically run any of the mappinfo commands through my program, open, close, modify tables, open Mif files, etc. I can get back the info windows, etc. Very good and very nice.  But now I want to do some other especific table manipulations.

The error I'm having and no matter how I tried can't find the reason. It might be something related to the OLE connection, but I would like your suggestions, if possible on how to fix my problem. Here are the steps I want to do and the problem

1- I'm registering a table from a text file.
2- I open the table
3- create the map of the table
4- create a selection of that table, from which I create points, according to my coordinates.
5- I commit this selection and points to a new table, as I want to be able to open it later as a regular table.
6- I close the selection

No errors so far, but then when I want to close the initial table, which is the one corresponding to the .txt file I read, I have an error that is:

"The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"

If anyone has any idea on why this is happening it would be greatly appreciated!!!

Thank you.

SM



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.directionsmag.com/pipermail/mapinfo-l/attachments/20060330/f0a234f7/attachment-0001.htm

------------------------------

Message: 3
Date: Fri, 31 Mar 2006 10:38:42 +0800
From: "SCISOFT" <[EMAIL PROTECTED]>
Subject: RE: [MI-L] Closing tables and callback in vb 2005 express
    edition(.net) - urgent.
To: "'SM'" <[EMAIL PROTECTED]>, <mapinfo-l@lists.directionsmag.com>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

Sorry, no specific advice I can give.

This (RPC_E_SERVERFAULT) is a non-specific error message, by design - a COM
interop error.  Most Microsoft articles that point to application bugs are
for a fix needed in Word 2002 or Excel, but as I read it, more commonly this
error it has a more general cause in users' code.  



Although this
<http://support.microsoft.com/default.aspx?scid=kb;en-us;198623>  article is
about JIT debugging with Visual C++, it contains a registry key setting
which will allow additional error messages to pass though to you (I think
this should work for you ), so that you can see just what the real error is.




HKEY_LOCAL_MACHINE\Software\Microsoft\Ole IgnoreServerExceptions="Y"



When the above key is set, the COM/RPC run time will pass the following
exceptions on to the caller (for debug purposes):

*    STATUS_ACCESS_VIOLATION
*    STATUS_POSSIBLE_DEADLOCK
*    STATUS_DATATYPE_MISALIGNMENT
*    STATUS_INSTRUCTION_MISALIGNMENT
*    STATUS_ILLEGAL_INSTRUCTION
*    STATUS_PRIVILEGED_INSTRUCTION

Because the COM/RPC run time no longer handles the above types of
exceptions, they go unhandled and JIT debugging is therefore possible. For
any other exceptions, use the pseudo-JIT debug methods outlined below (or
run the local server from within the debugger).



As you can see from the additional messages (and the advice following it),
there are a number of possibilities. I assume that you have a .NET 2.0
project, so have a closer look at the messages you're getting when it dies.
.NET generally gives a nice long dump that helps track down the problems.



IL Thomas
GeoSciSoft  - Perth, Australia

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of SM
Sent: Friday, March 31, 2006 8:42 AM
To: mapinfo-l@lists.directionsmag.com
Subject: [MI-L] Closing tables and callback in vb 2005 express edition(.net)
- urgent.



Hi all,



I'm using vb 2005 express and I created a program to use mapinfo as a base
for my tables, I'm using callbacks and succesfully conect with all Mapinfo
funcitons as I want.



I have a couple of issues I'm working on, but the main one is that I'm
receiving a COM error when I'm closing the last table I'm using, these are
the steps:



1) I'm connecting via OLE

2) I'm using a Form as MIDI and a picture box on my MIDI dialog box where I
can see my mapinfo tables

3) I can basically run any of the mappinfo commands through my program,
open, close, modify tables, open Mif files, etc. I can get back the info
windows, etc. Very good and very nice.  But now I want to do some other
especific table manipulations.



The error I'm having and no matter how I tried can't find the reason. It
might be something related to the OLE connection, but I would like your
suggestions, if possible on how to fix my problem. Here are the steps I want
to do and the problem



1- I'm registering a table from a text file.

2- I open the table

3- create the map of the table

4- create a selection of that table, from which I create points, according
to my coordinates.

5- I commit this selection and points to a new table, as I want to be able
to open it later as a regular table.

6- I close the selection



No errors so far, but then when I want to close the initial table, which is
the one corresponding to the .txt file I read, I have an error that is:



"The server threw an exception. (Exception from HRESULT: 0x80010105
(RPC_E_SERVERFAULT))"



If anyone has any idea on why this is happening it would be greatly
appreciated!!!



Thank you.



SM







-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.directionsmag.com/pipermail/mapinfo-l/attachments/20060331/3c21a3b6/attachment.htm

------------------------------

_______________________________________________
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


End of MapInfo-L Digest, Vol 5, Issue 96
****************************************
_______________________________________________
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to