Author Topic: AutoCad 2006 memory leak or bad programming?!?  (Read 2174 times)

0 Members and 1 Guest are viewing this topic.

whdjr

  • Guest
AutoCad 2006 memory leak or bad programming?!?
« on: January 19, 2006, 04:46:35 PM »
I am having an issue where towards the end of our workday at our office (which is a 9 hour day) some of the Autocad sessions close automatically stating they have run out of memory.  I was wondering if anyone else has had any memory issues on 2006?

I was also curiuos if this might be caused by bad programming on my part.  What types of programming issues can cause memory leaks?

MickD

  • King Gator
  • Posts: 3636
  • (x-in)->[process]->(y-out) ... simples!
Re: AutoCad 2006 memory leak or bad programming?!?
« Reply #1 on: January 19, 2006, 04:55:03 PM »
Depending on which language you use, creating things with 'new' and not deleting them with the corresponding 'delete' will cause memory leaks. Using key words similar to these allows you access to the 'heap' which is where you can use memory at run time for your application when you don't know how much memory you will need at compile time. If you use the heap, you have to give it back as soon as possible or that is exactly what happens.
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Short cuts make long delays,' argued Pippin.
- J.R.R. Tolkien

Dinosaur

  • Guest
Re: AutoCad 2006 memory leak or bad programming?!?
« Reply #2 on: January 19, 2006, 04:58:41 PM »
I am not sure about plain 2006, but Civil 3D 2006 will free up considerable memory according to Task Manager by minimizing the application.

whdjr

  • Guest
Re: AutoCad 2006 memory leak or bad programming?!?
« Reply #3 on: January 19, 2006, 05:12:09 PM »
All my custom programming is done with Lisp.

Paul Marshall

  • Guest
Re: AutoCad 2006 memory leak or bad programming?!?
« Reply #4 on: January 21, 2006, 08:55:39 PM »
I am having an issue where towards the end of our workday at our office (which is a 9 hour day) some of the Autocad sessions close automatically stating they have run out of memory.  I was wondering if anyone else has had any memory issues on 2006?

I was also curiuos if this might be caused by bad programming on my part.  What types of programming issues can cause memory leaks?

Can't speak to 2006 but I've seen what looks like a memory leak when editing tables in 2005.

hyposmurf

  • Guest
Re: AutoCad 2006 memory leak or bad programming?!?
« Reply #5 on: January 22, 2006, 03:31:33 PM »
I am not sure about plain 2006, but Civil 3D 2006 will free up considerable memory according to Task Manager by minimizing the application.
In fact with 2004 ADT if my PC starts to run really low on memory,thats one thing I do and it seems to help.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: AutoCad 2006 memory leak or bad programming?!?
« Reply #6 on: January 22, 2006, 11:38:54 PM »
I use lisp..

there it is..
The first LSP file that AutoCAD read is ACAD.LSP...
He search this file from the AutoCAD search path directory...
so this path is network folder...called x:\acad..
you need to put this folder on TOP because if AutoCAd didn't find the ACAD.LSP in the first one...
he continue to search...

In this Acad.LSP file I load the setup lisp...

Setup lisp is diffrent depending our diffrent client..
so the program set the client in this drawing and load the variable from a txt file located on network..
also, this program allow user to customise there menus..

I've created this setup because to much client standard and to much program client use the (defun s::startup()...
so this is a pain...when trying to get more than one program running...trust me.

Also, you can use the PROFILE name to load what you need...

Code: [Select]
(setq CPROFILE (STRASE (getvar "CPROFILE")))
(IF (= CPROFILE "CLIENT1")(load .....))
(IF (= CPROFILE "CLIENT2")(load .....))
(IF (= CPROFILE "CLIENT3")(load .....))

that how it run here...
so if you have any other best solution.....
don't be shy.
 :wink:
Keep smile...

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: AutoCad 2006 memory leak or bad programming?!?
« Reply #7 on: January 22, 2006, 11:52:14 PM »
I use lisp..


Code: [Select]
(setq CPROFILE (STRASE (getvar "CPROFILE")))
(IF (= CPROFILE "CLIENT1")(load .....))
(IF (= CPROFILE "CLIENT2")(load .....))
(IF (= CPROFILE "CLIENT3")(load .....))

that how it run here...
so if you have any other best solution.....
don't be shy.
 :wink:

[Se7en Speak]
?Huh ? :?
[/Se7en Speak]

« Last Edit: January 23, 2006, 12:45:25 AM by Kerry Brown »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.