Arxunload fatal error ...

Started by Oswald, March 03, 2010, 05:27:03 AM

Previous topic - Next topic

Oswald

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

owenwengerd

That 4.x version was pretty unstable, and I don't recommend using it.

Oswald

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

jb

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!
James Buzbee
Managing Memeber
Black Horse Development, LLC

Oswald

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 ..

jb

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?
James Buzbee
Managing Memeber
Black Horse Development, LLC

Oswald

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

Oswald

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 ...

owenwengerd

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.

BazzaCAD

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...
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

Oswald

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 ...

owenwengerd

My point was to not load 4.x in the first place.

Oswald

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 ...