ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unloading .arx appliction through VC++ program

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
jlobo2
574 Views, 2 Replies

Unloading .arx appliction through VC++ program

Hi,

 

I am trying to unload an .arx application from a vC++ program.

I loaded the .arx from the LISP command, but now when the arx application does its operations, I want to unload it through VC++.

 

I tried using acedArxUnload(_T("XYZ.arx")) but it did not work.

 

Any help regarding the same, would be highly appreciated.

2 REPLIES 2
Message 2 of 3
Marat.Mirgaleev
in reply to: jlobo2

This is from the ObjectARX Reference Guide:

"The acedArxUnload() function returns an error status code when the string parameter does not specify a loaded ARX program or when the program to be unloaded has dependents registered on its services."

Could you check, please, what the function is returning, that the name of the ARX is spelled correctly and there is no any ARX which depends on this one?



Marat Mirgaleev
Developer Technical Services
Autodesk Developer Network
Message 3 of 3
Alexander.Rivilis
in reply to: jlobo2


@jlobo2 wrote:

...I tried using acedArxUnload(_T("XYZ.arx")) but it did not work...


ObjectARX application can not unload itself with help of acedArxUnload function. You can try to do that with:

acDocManager->sendStringToExecute(L"(arxunload \"XYZ.arx\") ");

 or with

ads_queueexpr(L"(arxunload \"XYZ.arx\") ");

 

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost