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.
Solved! Go to Solution.
Solved by Alexander.Rivilis. Go to Solution.
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?
@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