Author Topic: Virtual Memory Usage  (Read 1693 times)

0 Members and 1 Guest are viewing this topic.

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Virtual Memory Usage
« on: December 11, 2012, 06:28:42 PM »
Odd question;

Is it possible to temporarily write a DCL file to virtual memory from a LISP, use it within that LISP then delete it from VIRTUAL Memory.  I am having issues writing the DCL file to disk as Windows 7 security features are a PITA.  Not sure if this would solve my issue, depending on the ease fo being able to do so.

If it is possible, any ideas on the coding.

Thanks,
Bruce

irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: Virtual Memory Usage
« Reply #1 on: December 12, 2012, 01:18:36 AM »
I think not, and also I think writing direct to VM would be even more of a PITA.

Have you tried writing the DCL to another folder? Generally I do this by writing to the folder in the TempPrefix system variable. You generally have write access to that folder.
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.

ElpanovEvgeniy

  • Water Moccasin
  • Posts: 1569
  • Moscow (Russia)
Re: Virtual Memory Usage
« Reply #2 on: December 12, 2012, 01:19:40 AM »
 :-)
Code - Auto/Visual Lisp: [Select]
  1. (setq f (open (strcat (getenv "USERPROFILE") "\\Desktop\\test.dcl") "w"))
or
Code - Auto/Visual Lisp: [Select]
  1. (setq f (open (strcat (getenv "TEMP") "\\test.dcl") "w"))

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Re: Virtual Memory Usage
« Reply #3 on: December 12, 2012, 03:33:41 AM »
Thanks,

ElpanovEvgeniy

worked just fine.


Bruce

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Virtual Memory Usage
« Reply #4 on: December 12, 2012, 05:05:47 AM »
For relatively small DCL files, I recommend:

Code - Auto/Visual Lisp: [Select]
  1. (setq tmp (vl-filename-mktemp nil nil ".dcl"))
  2.  
  3. < Write & Load DCL file >
  4.  

Example.