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

 

 

 

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

Reply via email to