Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question in 2.3.4.4
#1
Dear Gintaras,

I version 2.3.4.4 when using statements like :

Macro temp1
Code:
Copy      Help
Acc+ eAcct

I get the warning

Warning in temp: Most COM objects cannot be global (+). Or may need lock. Need to release explicitly. ?

Could you please advise.

Many thanks in advance.
#2
Better don't use global Acc variables. An Acc variable contains COM object pointer. COM objects don't work in multiple threads, or need to explicitly free to avoid memory leaks, or need to lock to avoid simultaneous access by multiple threads (possible memory leaks, exceptions...).
If need to share a variable in functions running in single thread, there are better ways, for example Acc-.
#3
Many thanks indeed!


Forum Jump:


Users browsing this thread: 1 Guest(s)