[Migrated content. Thread originally posted on 14 March 2012]
Hello!We have for a time used AcuGTClass to call one of our Cobol program from C#. This is working, and is in use at customers place. I have also had it up and running earlier.
Since last time, I have reformatted my machine, from Windows Vista 32-bit to Windows 7 64-bit.
We have also changed AcuCobol, now we run on version 9.1.0. Earlier I ran on 8.1.3.
Creating the class (m_acuCobol = new AcuGTClass();) runs correct. No error, and it reflects the path to the runtime / AcuGt.exe from GENESIS_HOME (I guess).
But when executing the initialization (int result = m_acuCobol.Initialize(ref initParamsObject); ) it returns the error code -2147023170.
initParamsObject holds the parameters to the start, and is:
"-c C:\\temp\\POS\\acuconfPOS.txt -y PosToVc"
I have checked that AcuGt.exe is in fact in the folder that is reflected in the class. I have checked that the config file really is in the folder specified in "initParamsObject". I have also checked that the CODE_PREFIX in the config file is correct. And, of course, I have checked that "PosToVc" in fact is in the path specified in CODE_PREFIX.
As mentioned, this have worked before.
What is wrong now?
I would be grateful for tips here.
Regards Dagl