OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Oswald on March 03, 2010, 05:27:03 AM

Title: Arxunload fatal error ...
Post by: Oswald on March 03, 2010, 05:27:03 AM
Hi guys,

I'm developing an application that verify what's the opendcl version running at moment and depending the version it will unload it (arxunload) and reload again (arxload).
When I try to unload the 5.1.2.3 version and reload the 4.0.3.1 version it works fine.
But, when I try to unload the 4.0.3.1 version an fatal error happen.
The command:
Code (autolisp) Select
(arxunload "OpenDCL.16.arx" 'nil)

I'm testing with AutoCAD 2004.

Someone having any ideia
Title: Re: Arxunload fatal error ...
Post by: owenwengerd on March 03, 2010, 10:07:15 AM
That 4.x version was pretty unstable, and I don't recommend using it.
Title: Re: Arxunload fatal error ...
Post by: Oswald on March 03, 2010, 10:52:01 AM
I understand ...
But I have some applications using OpenDCL 4.0.3.1 and the 4.0.3.1 Runtime don't load my other application in 5.1.2.3.
Then I think ....

1 - Get the OpenDCL version:
Code (autolisp) Select
(setq OpenVersion dcl_GetVersionEx)
2 - If the OpenVersion is different to 5.1.2.3 then
Code (autolisp) Select
(arxunload "OpenDCL.16.arx" 'nil)
3 - then reload
Code (autolisp) Select
(arxload (strcat appPath "OpenDCL.16.arx") 'nil)

But in 2nd item the AutoCAD 2004 and 2008 (I also test) crashes and show the Fatal Error message.

I don't understand ...
Have any method to successful unload the OpenDCL 4.0.3.1 ARX ?

Thanks for all
Title: Re: Arxunload fatal error ...
Post by: jb on March 03, 2010, 01:07:02 PM
You need to re-build those apps in the latest stable build.  I know in the beginning development was fairly quick, but things have slowed down a bit.  Time to catch up!
Title: Re: Arxunload fatal error ...
Post by: Oswald on March 04, 2010, 04:54:12 AM
Quote from: jb on March 03, 2010, 01:07:02 PMYou need to re-build those apps in the latest stable build
This is the problem ...

There is some apps that I don't have source code.

I'm in trouble ...
What's really happening ?
There's no other way ?


Thank again ..
Title: Re: Arxunload fatal error ...
Post by: jb on March 04, 2010, 06:53:25 AM
QuoteThere is some apps that I don't have source code.

You don't have the odcl files, or you don't have the lisp source code?  Are these apps rolled up .fas - .vlx?
Title: Re: Arxunload fatal error ...
Post by: Oswald on March 04, 2010, 08:35:08 AM
Quote from: jb on March 04, 2010, 06:53:25 AMYou don't have the odcl files, or you don't have the lisp source code?  Are these apps rolled up .fas - .vlx?

I don't have the lisp code.
I have only VLX files.

This apps forces to use 4.0.3.1 version.

When I try to unload this arx (Tools/Load/Unload or arxunload) the AutoCAD 2004/2008 crashes (fatal error)

Unfortunately I can't unload this 4.0.3.1 version without crashes AutoCAD.

Thanks again JB
Title: Re: Arxunload fatal error ...
Post by: Oswald on March 04, 2010, 09:13:12 AM
Other question...

Have any method to load the 5.1.2.3 version over 4.0.3.1 version without unload/reaload it ?

Maybe I solve my problem ...
Title: Re: Arxunload fatal error ...
Post by: owenwengerd on March 04, 2010, 09:30:27 AM
I guess the basic problem is that in 5.x, the odcl function names are prefixed with dcl_ instead of odcl_, correct?  If so, maybe you could just define aliases like (setq odcl_XXXX dcl-XXXX) so that the older lisp works with the newer OpenDCL Runtime.
Title: Re: Arxunload fatal error ...
Post by: BazzaCAD on March 04, 2010, 11:03:50 AM
Quote from: Oswald on March 04, 2010, 08:35:08 AM
Quote from: jb on March 04, 2010, 06:53:25 AMYou don't have the odcl files, or you don't have the lisp source code?  Are these apps rolled up .fas - .vlx?

I don't have the lisp code.
I have only VLX files.

This apps forces to use 4.0.3.1 version.

When I try to unload this arx (Tools/Load/Unload or arxunload) the AutoCAD 2004/2008 crashes (fatal error)

Unfortunately I can't unload this 4.0.3.1 version without crashes AutoCAD.

Thanks again JB

Why don't you contact the developer of the code and ask them to update it or ask them for the source if not...
Title: Re: Arxunload fatal error ...
Post by: Oswald on March 04, 2010, 11:59:19 AM
Quote from: owenwengerd on March 04, 2010, 09:30:27 AMI guess the basic problem is that in 5.x, the odcl function names are prefixed with dcl_ instead of odcl_, correct?

Hi Owen,
Unfortunately it's not the problem.

When I have a 4.0.3.1 version loaded I can't load other version.
AutoCAD says:
     OpenDCL.16.arx already loaded.
And open my dialogs created at Studio 5.1.2.3 with 4.0.3.1 not works ...

When I try to unload the 4x version, AutoCAD crashes ...
Aff ..  :-\
heheeh  ;)

Bazza ...
I don't have the contact of the developer of the code.
He changes your home ...

Well,
Thanks people ...
Title: Re: Arxunload fatal error ...
Post by: owenwengerd on March 04, 2010, 12:05:05 PM
My point was to not load 4.x in the first place.
Title: Re: Arxunload fatal error ...
Post by: Oswald on March 05, 2010, 06:23:19 AM
An important information ...

I'm testing to load/unload/load the 4.0.3.1 ARX version in Windows XP and the problem not occurs ...

The problem occured in Windows Vista Ultimate ....

Weird ...