OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Edward on November 24, 2014, 11:28:16 PM

Title: OpenDCL 8 running in VMware
Post by: Edward on November 24, 2014, 11:28:16 PM
Hi,

When I load my application, built with OpenDCL 8.0.0.6) in AutoCAD (2014/2015) and WIndows 7 or 8 under VMware I get messages like:
"An OpenDCL function argument processing exception has occured!" "Error: NIL value not allowed Function: dcl-Control-SetTextLimit Argument: 0".
These sounds familiar when OpenDCL is not loaded into the system and you maken calls to the OpenDCL functions.
But when I run it on a non virtual system my application runs without any messages.

I can not debug this because the VMware runs on a test machine at Autodesk.

Any clues where to look for?

Thanks,

Kind regards

Edward

I use OpenDCL runtime 8.0.0.6 under Windows 7 x64 and AutoCAD 2014/2015.
Title: Re: OpenDCL 8 running in VMware
Post by: owenwengerd on November 25, 2014, 05:29:49 AM
I think it's likely that there are bugs in your code that may only manifest in specific cases. I would add some diagnostic code to pin down when (or if) the culprit symbol is set to the expected value, and when it gets reset to NIL so you can compare to a working case on your development machine. If my theory is correct, there will be some difference in timing or conditional program flow on the VM that exposes a flaw in your code.
Title: Re: OpenDCL 8 running in VMware
Post by: Edward on November 25, 2014, 11:34:46 AM
You'r pointing me in the right direction.
Because the error happens during initialization it seems to do with some system settings I retrieve from the system. The USERPROFILE environement for example or a registry key which I create during installation. If those settings are not correctly set the return value will be NIL. So I could error trap these settings.

The bigger problem I have though is that I don't have access to the VMware system Autodesk is using to debug my application.
Because I have created a VMware environment of my own and tested this and also under a Hyper-V environment. Both virtual systems give me no errors at all.
Also Autodesk shows to me that my application is working when installed on a non virtual system: on a 'normal' system my application runs well.
But they want my application to run under their virtual systems as well... :-(
Title: Re: OpenDCL 8 running in VMware
Post by: Peter2 on November 25, 2014, 02:45:29 PM
Hi

I can not give you a special advice, but I use Acad 2014 + ODCL 8 under Win 7 x64 under VMWare Workstation 10 - and have no problems (except of common graphics issue on the entire system ...). So maybe that's an indication that there is maybe no common problem.
Title: Re: OpenDCL 8 running in VMware
Post by: Edward on November 27, 2014, 05:15:34 AM
Thanks for the information about your VMware setup.
Always good to know.