I'm having a slight problem with a .Net COM interop automation. In one of the .Net classes there is a static variable and it appears that even though the codeunit that references the automation is calling clearall as the last action, upon the next invocation of the codeunit the .Net application domain is the same -- at least the static variable has accumulated more state so it doesn't start from a clean slate. I'm not too happy about this persistent application domain. Any hints?
0
Comments
Could you add a function to reset or clear your objects state.
Epimatic Corp.
http://www.epimatic.com
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I think kine has a point - I need to look at the create function. :-)
We have made a component for socket communication, which also kept living no matter how many times we tried to clear it. Once wrapped in C++ it worked like a charm...
Peter