OpenDCL MEMORY MANAGEMENT ?

Started by domenicomaria, May 16, 2024, 08:21:21 AM

Previous topic - Next topic

domenicomaria

I'm writing a fairly complex lisp (which uses OpenDCL) and the ODCL file is very rich in controls.

And I'm testing this software and so I show and then close the ODCL dialog many times.

The first few times everything is fine, i.e. I wait 1 second from the command until the dialogue is shown.

But by repeating this operation many times, many dozens of times,
the time between the command I enter in the Acad command line
and when the ODCL dialog is shown ALWAYS INCREASES.

So much so that sometimes I have to wait up to 20 seconds before the dialogue is shown.

Each time the dialogue is reloaded:
(dcl-project-load #ddiim-prj t)

And I think it's an OpenDCL MEMORY MANAGEMENT problem

It's possible ?

owenwengerd

There is no way to know the cause without creating a simple reproducible case and investigating it. I suggest to test with a simple dialog containing only copies of one type of control. If the problem does not reproduce, try other controls until the particular control (or controls) is identified. If it happens with any control type, then it could be a memory leak, or just heap fragmentation causing Windows to start paging to disk. There is no way to guess, it has to be investigated.

domenicomaria

Hi Owen

Thanks for your attention.

It seems that the problem is caused by the Picture Folder...

Take a look at the attached test