OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: velasquez on September 11, 2012, 06:21:51 AM

Title: OpenDCL.x64.18.arx unloaded.
Post by: velasquez on September 11, 2012, 06:21:51 AM
The problem happened during a test below with "opendcl.x64.18.arx" version 7.0.0.7 with AutoCAD 2010 and 2011.
If for some reason the arx file is unloaded.
The command OpenDCL emits an error message.
And so will work on another section of the AutoCAD.

I reported the problem because it can happen at any time.

Regards, velasquez


Title: Re: OpenDCL.x64.18.arx unloaded.
Post by: owenwengerd on September 11, 2012, 02:01:56 PM
I was not able to reproduce the problem in AutoCAD 2010 on Windows 7 64 bit. Can you provide detailed steps to reproduce it?
Title: Re: OpenDCL.x64.18.arx unloaded.
Post by: velasquez on September 12, 2012, 02:36:29 PM
Quote from: owenwengerd on September 11, 2012, 02:01:56 PM
I was not able to reproduce the problem in AutoCAD 2010 on Windows 7 64 bit. Can you provide detailed steps to reproduce it?

Hi Owen
In my test I used:
1 - (arxunload "OpenDCL.x64.18.arx") version "7.0.0.5"

2 - (arxload "OpenDCL.x64.18.arx") version "7.0.0.7"

Thanks
velasquez
Title: Re: OpenDCL.x64.18.arx unloaded.
Post by: owenwengerd on September 12, 2012, 08:57:59 PM
Sorry, I don't understand. Here it looks like you are implying that you have manually loaded a different version, then manually unloaded that version and manually loaded the latest version. In your first post you said that the OPENDCL command fails.
Title: Re: OpenDCL.x64.18.arx unloaded.
Post by: velasquez on September 13, 2012, 10:28:43 AM
This was the best way I've found to show the error.
I always check the version of OpenDCL on the computer that will run my application.
And I load OpenDCL manually.
This worked well until OpenDCL 6.0.2.5.

Code (autolisp) Select

(cond
  ((null dcl_GetVersionEx)
   (arxload (strcat JoyArxPath JoyArxName) 'nil)
  )
;;;
  ((and dcl_GetVersionEx (/= (dcl_GetVersionEx) "7.0.0.7"))
   (if (arxunload JoyArxName 'nil)
     (arxload (strcat JoyArxPath JoyArxName) 'nil)
   ) ;_ fim de if
  )
  (T)
) ;_ fim de cond
Title: Re: OpenDCL.x64.18.arx unloaded.
Post by: velasquez on September 29, 2012, 05:45:31 AM
Quote from: velasquez on September 13, 2012, 10:28:43 AM
This was the best way I've found to show the error.
I always check the version of OpenDCL on the computer that will run my application.
And I load OpenDCL manually.
This worked well until OpenDCL 6.0.2.5.

Code (autolisp) Select

(cond
  ((null dcl_GetVersionEx)
   (arxload (strcat JoyArxPath JoyArxName) 'nil)
  )
;;;
  ((and dcl_GetVersionEx (/= (dcl_GetVersionEx) "7.0.0.7"))
   (if (arxunload JoyArxName 'nil)
     (arxload (strcat JoyArxPath JoyArxName) 'nil)
   ) ;_ fim de if
  )
  (T)
) ;_ fim de cond


Hi
Some people worked with similar functions.
Nobody noticed the same problem?

Thanks, velasquez


Title: Re: OpenDCL.x64.18.arx unloaded.
Post by: owenwengerd on September 30, 2012, 07:25:25 PM
I was not able to reproduce the problem with some simple testing. What you are doing is very dangerous, because it can break another application. If others are doing this, it is a recipe for disaster.
Title: Re: OpenDCL.x64.18.arx unloaded.
Post by: velasquez on October 01, 2012, 06:12:15 AM
Quote from: owenwengerd on September 30, 2012, 07:25:25 PM
I was not able to reproduce the problem with some simple testing. What you are doing is very dangerous, because it can break another application. If others are doing this, it is a recipe for disaster.

Please I have reason to work this way.
I've had problems with different versions of OpenDCL on one computer.
I can not change what is already installed.
All my apalicativo does is ensure that the correct version is being load.
I make no alreração in that already installed.
In another section of the AutoCAD nothing will change.

The problem is that it always worked well.
Title: Re: OpenDCL.x64.18.arx unloaded.
Post by: owenwengerd on October 01, 2012, 10:31:40 AM
If you unload a runtime .arx module that is being used by another application, then you are potentially breaking the other application. Better would be to alert the user and exit your application without causing further problems. In any case, I hope you can find a way for me to reproduce the problem here so I can fix it.
Title: Re: OpenDCL.x64.18.arx unloaded.
Post by: velasquez on October 01, 2012, 02:10:34 PM
Quote from: owenwengerd on October 01, 2012, 10:31:40 AM
If you unload a runtime .arx module that is being used by another application, then you are potentially breaking the other application. Better would be to alert the user and exit your application without causing further problems. In any case, I hope you can find a way for me to reproduce the problem here so I can fix it.

My test application works with OpenDCL "7.0.0.6"
Please download and install on your computer to test.

AutoCAD 32 bit
http://www.easycad.com.br/projeto-saint-gobain/DuctilCAD_2D.1308.130912.0.x32.exe
AutoCAD 64 bit
http://www.easycad.com.br/projeto-saint-gobain/DuctilCAD_2D.1308.130912.0.x64.exe

1 - After installation open AutoCAD and has a version loaded OpenDCL different.
2 â€" Type PAM on the command line.

Thank you for your attention Owen
Title: Re: OpenDCL.x64.18.arx unloaded.
Post by: owenwengerd on October 01, 2012, 02:56:21 PM
Sorry, I cannot reproduce the problem.
Title: Re: OpenDCL.x64.18.arx unloaded.
Post by: velasquez on October 02, 2012, 07:29:53 AM
Quote from: owenwengerd on October 01, 2012, 02:56:21 PM
Sorry, I cannot reproduce the problem.

Thanks Owen,
I did the tests again on Windows 7 64 bit.

The problem did not appear with AutoCAD 2013.
But look what happens when I test with AutoCAD 2010 and 2011.
Title: Re: OpenDCL.x64.18.arx unloaded.
Post by: owenwengerd on October 02, 2012, 08:33:02 AM
I think you need to recreate the problem with the simplest possible test file, then it will be easier to guess what might be going on.