Question About ⎕USING and )SAVE

Using (or providing) Microsoft.NET Classes
Post Reply
User avatar
PGilbert
Posts: 440
Joined: Sun Dec 13, 2009 8:46 pm
Location: Montréal, Québec, Canada

Question About ⎕USING and )SAVE

Post by PGilbert »

If I assign a value to ⎕USING as a global variable:

      ⎕USING←,⊂'System'

it is working as expected:

      Environment.GetFolderPath Environment.SpecialFolder.ProgramFiles
C:\Program Files (x86)

but if I do a )SAVE than I get the following error if I try to redo the previous line:

System.NullReferenceException: Object reference not set to an instance of an object.

Looks like )SAVE is destroying the instances of classes and I have to redo all my classes after a )SAVE. Is it me or I am doing something wrong ?

Thanks,

Pierre Gilbert

Using: 12.1 Unicode
Vince|Dyalog
Posts: 439
Joined: Wed Oct 01, 2008 9:39 am

Re: Question About ⎕USING and )SAVE

Post by Vince|Dyalog »

Hello Pierre,

This looks like a bug, so I have logged it as 006335.

Regards,

Vince
User avatar
PGilbert
Posts: 440
Joined: Sun Dec 13, 2009 8:46 pm
Location: Montréal, Québec, Canada

Re: Question About ⎕USING and )SAVE

Post by PGilbert »

I found that I can save the WS by doing:

      0 ⎕SAVE ⎕WSID

without affecting .Net, but:

      ⎕SAVE ⎕WSID

will.

Pierre Gilbert
Vince|Dyalog
Posts: 439
Joined: Wed Oct 01, 2008 9:39 am

Re: Question About ⎕USING and )SAVE

Post by Vince|Dyalog »

This bug 006335 has been fixed.

The fix will be available in the DSS patch on 7 Sept 2010 or soon after.

Regards,

Vince
Post Reply