Recent posts

#41
Runtime/AutoLISP / Re: OpenDCL MEMORY MANAGEMENT ...
Last post by domenicomaria - May 26, 2024, 07:56:24 AM
TEXT BOX (tt-text-box)

number of repetitions : 5000

average list MIN : 215
average list MAX : 243
AVERAGE of AVERAGES : 232.620
AVERAGE LIST : (216 215 217 223 225 224 224 225 225 225 225 228 226 227 227 228 230 228 231 231 232 233 233 234 234 233 234 236 234 236 238 239 238 237 238 237 239 239 238 240 239 239 240 240 243 240 241 242 242 243)

(every number of the average list represents the average of elapsed time of 100 tests)


so it seems that there is also a problem with the TEXT BOX
(in the various Filter Styles)...

#42
Runtime/AutoLISP / Re: OpenDCL MEMORY MANAGEMENT ...
Last post by domenicomaria - May 26, 2024, 04:53:27 AM
TAB STRIP with IMAGE LIST that does NOT contain IMAGES (tt-tab-strip-0)
number of repetitions : 5000
average list MIN : 156
average list MAX : 180
AVERAGE of AVERAGES : 170.500
AVERAGE LIST : (156 159 158 160 158 159 160 160 163 165 167 165 166 162 166 166 168 167 169 168 170 169 174 172 172 170 171 172 175 175 172 175 176 175 175 176 178 177 178 178 176 179 180 178 176 179 179 179 179 178)




TAB STRIP with IMAGE LIST that contains IMAGES (tt-tab-strip-1)
number of repetitions : 5000
average list MIN : 207
average list MAX : 237
AVERAGE of AVERAGES : 223.100
AVERAGE LIST : (209 207 207 212 208 212 210 211 217 213 213 216 216 216 218 220 221 221 219 226 222 223 226 224 223 226 227 227 226 228 225 228 228 227 231 229 228 228 230 232 229 230 233 234 234 237 232 234 233 229)


5000+5000 tests without a crash !

But however there is a little problem with TAB STRIP too !


(every number of the average list represents the average of elapsed time of 100 tests)

;   (setq  #tt-prj "tt-text-box")
(setq  #tt-prj "tt-tab-strip-0")
;   (setq  #tt-prj "tt-tab-strip-1")

;   (progn (dcl-project-load #tt-prj t) (dcl-form-show  #tt-prj "form") )

(defun :LST-NUM-AVERAGE      (l) (/ (apply '+ l) (float (length l) ) ) )

;         -         -         -         -         -
(defun :DCL-TIME-TEST ( rep-no / average elapsed-time elapsed-time-lst start )
   ;         -
   (defun :DCL-TIME-TEST-SUB ()
      (defun C:DCL-TIME-TEST/FORM#ONTIMER (/) (dcl-form-close  #tt-prj "form") )
      (defun C:DCL-TIME-TEST/FORM#ONINITIALIZE (/)   (dcl-Form-StartTimer #tt-prj "form" 10) )
      (dcl-project-load #tt-prj t)
      (dcl-form-show  #tt-prj "form")
   )
   
   ;         -
   (repeat rep-no
      (setq start (getvar "millisecs") )
      (:DCL-TIME-TEST-SUB)
      (setq elapsed-time (- (getvar "millisecs") start) )
      (setq elapsed-time-lst (append elapsed-time-lst (list elapsed-time ) ) )
   )
   (setq average  (/ (apply '+ elapsed-time-lst) (length elapsed-time-lst) ) )
   (princ (strcat "\n average : " (itoa average) ) ) (princ)   
   average
)



;         -         -         -         -         -
(defun :DCL-TIME-TEST-100 ()   (:DCL-TIME-TEST 100 ) )



;         -         -         -         -         -
(defun C:TT-100 () (:DCL-TIME-TEST-100) )



;         -         -         -         -         -
(defun C:TT-5000 ( / average average-lst count)
   (setq count 0)
   (repeat 50
      (setq count (+ 1 count) )
      (setq average (:DCL-TIME-TEST-100) )
      (princ (strcat "\nnumber of repetitions so far : " (itoa (* count 100) ) ) ) (princ)
      (setq average-lst (append average-lst (list average ) ) )
   )
   (princ "\nnumber of repetitions : 5000")   (princ)
   (princ (strcat "\n average list MIN : " (itoa (apply 'min average-lst) ) ) )   (princ)
   (princ (strcat "\n average list MAX : " (itoa (apply 'max average-lst) ) ) )   (princ)
   (princ (strcat "\n AVERAGE of AVERAGES : " (rtos (:LST-NUM-AVERAGE average-lst) 2 3) ) )   (princ)
   (princ (strcat "\n AVERAGE LIST : " (vl-prin1-to-string average-lst) ) )   (princ)
   
)


#43
Studio/Dialog Editor / Re: Splitter Control goes wron...
Last post by sysuwzx - May 25, 2024, 08:42:00 PM
My computer is Windows 10 Pro, Version 1803, Processor is Intel(R) Core(TM) i5-8300H CPU @ 2.3GHz
#44
Studio/Dialog Editor / Re: Splitter Control goes wron...
Last post by owenwengerd - May 25, 2024, 03:04:00 PM
I'll try to improve the splitter behavior. I can't reproduce the About dialog issue on my US English Windows 10 system. That content comes from License.htm, which is saved in UTF8 with BOM marks, and it looks like your browser control is confused by the BOM marks. I suppose the file could probably be saved without the BOM marks and still work fine. I'll experiment a bit.
#45
Runtime/AutoLISP / Re: OpenDCL MEMORY MANAGEMENT ...
Last post by owenwengerd - May 25, 2024, 01:15:53 PM
Thanks, I found and fixed a bigger leak in several combo types. I'll include the fix in the next release.
#46
Runtime/AutoLISP / Re: OpenDCL MEMORY MANAGEMENT ...
Last post by domenicomaria - May 25, 2024, 08:49:35 AM
and I suppose that a crash that
more or less always happens at the same point
could depend on some memory management problem...
#47
Runtime/AutoLISP / Re: OpenDCL MEMORY MANAGEMENT ...
Last post by domenicomaria - May 25, 2024, 07:50:10 AM
it seems that there are problems with the comboboxes too...

... try to run the attached test...

... unfortunately I can't do many tests (2500)
because after 400 or 500 tests there is a crash !
#48
Runtime/AutoLISP / Re: OpenDCL MEMORY MANAGEMENT ...
Last post by domenicomaria - May 25, 2024, 06:42:01 AM
I loaded and showed this dialog 100 times and calculated the average time taken

and I did this 20 times

and the result is this:

 average : 100
 average : 100
 average : 99
 average : 101
 average : 99
 average : 101
 average : 100
 average : 100
 average : 100
 average : 101
 average : 100
 average : 99
 average : 100
 average : 99
 average : 99
 average : 100
 average : 100
 average : 99
 average : 98
 average : 100


and so, it seems that there is no longer any problem with the Picture Folder

but I agree with you.

There is more.

And I still don't know what it is.

I have to do more tests with other controls.

And I'll let you know

Thanks for everything

ciao
#49
Studio/Dialog Editor / Splitter Control goes wrong
Last post by sysuwzx - May 25, 2024, 03:04:42 AM
When testing  OpenDCL Studio 9.2.3.1 ENU version, i notice something about Splitter Control works not well.
1.  If double click the splitter, the control brower appears, but it shows the palette.
2.  If select the splitter by single click , it won't choose it. It seems the splitter should be chosen by draw a chosen area, just like select objects by a rectangle in AutoCAD.

By the way, in the menu of OpenDCL , if i click the "About OpenDCL" in HELP, the "About OpenDCL" brower shows the first few rows, which seems abnormal.

Following are the images.
#50
Runtime/AutoLISP / Re: OpenDCL MEMORY MANAGEMENT ...
Last post by owenwengerd - May 24, 2024, 10:34:36 PM
Thanks, I found and fixed a small resource leak during (dcl-Project-Load). I'm not sure this leak is the one you're experiencing, but it was the only one I noticed with your test code. Please test the next development build and let me know if you notice any difference.