OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Joseph on September 15, 2023, 01:11:35 AM

Title: ZwCAD slow ResultBuffer after OpenDCL ZRX load
Post by: Joseph on September 15, 2023, 01:11:35 AM
In ZwCAD there is a strange behaviour with resultbuffer if the OpenDCL ZRX loaded.
Here is a simple dot net sample code:


[LispFunction("GetMyString")]
public static string GetMyString(ResultBuffer resBufIn)
{
    return "MyString";
}


Lets call this function 10.000 times:

(repeat 10000 (GetMyString))

It the OpenDCL ZRX is NOT loaded the performance is like 0.25 seconds.
It the OpenDCL ZRX is LOADED the performance is like 2.00 seconds.
The performance results are the same for ZwCAD 2022, 2023 and 2024.

OpenDCL or ZwCAD bug?

Update:
Maybe a ZwCAD bug.
If I load additional VLS files with lot of lisp codes the performance becomes slower.
Title: Re: ZwCAD slow ResultBuffer after OpenDCL ZRX load
Post by: Joseph on September 15, 2023, 10:54:30 PM
I made some tests, loading ZRX files from the ZwCAD installation folder and the performance remains fast.
After loading the OpenDCL ZRX the performance became slow.
Maybe the OpenDCL ZRX has a bug.
Title: Re: ZwCAD slow ResultBuffer after OpenDCL ZRX load
Post by: owenwengerd on October 31, 2023, 06:31:02 PM
I think this is something to take up with ZWCAD tech support.
Title: Re: ZwCAD slow ResultBuffer after OpenDCL ZRX load
Post by: Joseph on November 06, 2023, 01:44:04 AM
Indeed, you are right.
Just installed the new service pack for ZwCAD and the bug is gone. They solved it.