Skip to main content
1-Visitor
May 14, 2014
Solved

Problem with ACL com_attach("Sepe.EditSupport") in Editor 6.0

  • May 14, 2014
  • 1 reply
  • 2956 views

Hi,

In Arbortext Editor 5.2 version, the ACL function com_attach("Sepe.EditSupport") returns a non-zero handle, but in 6.0 M100 version, always returns zero. How can I solve this problem in version 6.0?

Best answer by TimPhelps
  • One difference between 5.2 and 6.0 is that with 6.0 there are 64-bit versions of Editor available.
  • For the "com_attach" to work when using a custom .dll, the .dll must match Editor's "bitness" , either 32-bit or 64-bit.
  • If the customization is a ".dll" then make a 64-bit version of it to test with 64-bit Editor
  • If using a 32 bit .dll customization you can test with a 32 bit version of Arbortext Editor 6.0
This example run at the Editor command line, will return a "1" if the "com_attach" command works:
$h = com_attach('Arbortext.EditorControl'); eval $h

Tim

1 reply

TimPhelps12-AmethystAnswer
12-Amethyst
July 6, 2014
  • One difference between 5.2 and 6.0 is that with 6.0 there are 64-bit versions of Editor available.
  • For the "com_attach" to work when using a custom .dll, the .dll must match Editor's "bitness" , either 32-bit or 64-bit.
  • If the customization is a ".dll" then make a 64-bit version of it to test with 64-bit Editor
  • If using a 32 bit .dll customization you can test with a 32 bit version of Arbortext Editor 6.0
This example run at the Editor command line, will return a "1" if the "com_attach" command works:
$h = com_attach('Arbortext.EditorControl'); eval $h

Tim

1-Visitor
October 14, 2014

Hello,

I'm trying to use Arbortext Editor 6.1 instead of 6.0 and the application rises the same exception mentioned above.

I tryed Epic 6.1 32bits with 32bits DLLs in 32 and 64bits Windows environment, and the exception always rises.

There is no further messages throwed by Arbortext Editor unless:

---------------------------

PTC Arbortext Editor Message

---------------------------

[A30211] com_call: Exception thrown while calling method ConnectSession

(at line 271 of file ".....\packages\srv_ext.acl")

---------------------------

OK

---------------------------

When oppening the document.

We tryed a previous version of Arbortext Editor and it worked fine.

If we use a different application to call the COM methods, they are correctly instantiated and work fine.

Any ideas?

Thankyou

12-Amethyst
October 15, 2014

What is srv_ext.acl?

I do not see it in the Arbortext Editor installation?

According to the error message something appears to be incorrect at line 271.