OpenDCL.x64.18.arx unloaded.

Started by velasquez, September 11, 2012, 06:21:51 AM

Previous topic - Next topic

velasquez

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



owenwengerd

I was not able to reproduce the problem in AutoCAD 2010 on Windows 7 64 bit. Can you provide detailed steps to reproduce it?
Owen Wengerd (Outside The Box) / ManuSoft

velasquez

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

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft

velasquez

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

velasquez

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



owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft

velasquez

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.

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft

velasquez

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

owenwengerd

Sorry, I cannot reproduce the problem.
Owen Wengerd (Outside The Box) / ManuSoft

velasquez

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.

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft