I have a C# application that initializes an instance of PCDLRN.dll and adds a bunch of ApplicationEvents to it. On the first execution of the program everything works fine but after that the events don't seem to be firing. As far as I can tell the PCDLRN.Application is not null, and the ActivePartProgram also isn't null. However, when I hit execute button in PC-DMIS a second time I don't see anything from the event handlers I attached to the ApplicationEvents object. Any suggestions would be greatly appreciated.
Just recently had this same occurrence when executing the application from within PC-DMIS customize menu. The application was created using NET 7.0. Then recreated the application using Framework 4.8 with no issues. I haven't had a chance to determine what the cause was yet.
Glad you found the source of the issue. For me I just switched over to using the 4.8 framework instead of NET 7.0 and everything is working correctly. Usually, the NET 7.0 runs faster than 4.8 framework and it's the latest of the Dot NET family. I find less errors using the 4.8 framework with the PCDLRN.DLL.
Glad you found the source of the issue. For me I just switched over to using the 4.8 framework instead of NET 7.0 and everything is working correctly. Usually, the NET 7.0 runs faster than 4.8 framework and it's the latest of the Dot NET family. I find less errors using the 4.8 framework with the PCDLRN.DLL.