Jump to content
Excelsior Forums
Sign in to follow this  

XDS Modula 2 Debugger and .Net

Recommended Posts

We are currently investigating the feasibility of creating a Modula 2 application that uses a mixed mode (managed/unmanaged) .Net DLL. 

We are using Microsoft Visual Studio 2005 C++/CLI to produce the DLL.  The DLL exports an unmanaged function ?TestFunction? that displays a simple .Net Windows Form.  We have created a Modula 2 application that simply loads the DLL and calls ?TestFunction?.  The application runs successfully when executed outside the XDS Debugger. 

The problem we are having is when the application is executed within the XDS Debugger.  The XDS debugger crashes with the following message:

*** Sorry, but in debugger ***

#RTS: unhandled exception #0: invalid index

We have tried V2.50 and V2.51 of the XDS Modula 2 compiler and debugger.  The debugger crashes in both versions.

We have done further investigations in an attempt to isolate the problem.  Below is a list of things we have tried and the corresponding results.

1) Test applications written in Delphi 5, Delphi 2006 and Visual Studio 6.  Each application loaded the DLL and called the ?TestFunction?.  The debuggers associated with each development environment worked fine.

2) We executed the Modula 2 application in the Microsoft WinDgb debugger.  The application executed successfully.

3) We created a mixed mode .Net DLL targeting the .Net Framework 1.1 using Visual Studio 2003.  We then configured the Modula 2 application use the .Net Framework 1.1 runtime (via a ?hostname.exe.config? file).  The application ran outside and inside the XDS Debugger successfully.  We then configured the Modula 2 application to use the .Net Framework 2.0 runtime.  The application ran outside but not inside XDS Debugger.

4) We modified the DLL ?TestFunction? so that it does nothing.  The application ran outside and inside the XDS Debugger successfully.

It would be very much appreciated if anyone has suggestions or solutions. 

I am able to supply our source code if required.

Thank you

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this