Hi.

I'm currently in the process of migrating to J602a (again) and I hit a
brick wall. J would crash right after the calling .NET application
exits. 

First off, I'm using the following softwares:
1. Vista Ultimate
2. C# on Visual Studio .NET 2005 Professional Edition

Since I know that not everyone has my version of Visual Studio .NET, I
replicated the problem using the FREE Visual Studio .NET 2008 Express
Edition. You can download a copy from here:
http://www.microsoft.com/express/default.aspx

So follow these steps to replicate the crash:
1. Run Microsoft Visual C# 2008 Express Edition
2. Create a new Windows Application project. The automatically created
project should have a form named form1
3. Add a reference to J602\bin\j.exe 
4. Add a button to form1
5. Add the following code into form1:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        private JEXEServerLib.JEXEServerClass jObject;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            jObject = new JEXEServerLib.JEXEServerClass();
            jObject.Quit();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            jObject.Do("[res=: i. 1024 1024");
        }

        private void Form1_FormClosing(object sender,
FormClosingEventArgs e)
        {
            jObject = null;
        }
    }

}

As you can see from the code above. This project will do nothing but
create an instance of J when it loads. A button that would just make a
1024x1024 matrix inside the J instance and then set the jObject variable
to nothing when it closes.

The problem is that after this application closes, J will crash
spectacularly. :)

I have tested this in VB.NET and C# in both Visual Studio .NET 2005
Professional and 2008 Express edition.

I am hoping that I am just missing a step somewhere. Like maybe I need
to call a "release" manually? Any insight would be helpful. 

Thanks.

r/alex
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to