I have a general problem using a Visual Studio Tools for GP in Dynamics GP10.
Up to this point, this issue has only occurred on specific environments, what
is unique about these systems is not yet known.
The visual studio application is coded to initialize on the toolbar of GP
load, and has a task manager type UI that is accessible.
Workflow of the application is as follows:
From the UI of the VS application, an entry point function within the vSync
dictionary is called, processing routines such as sales order creation,
shipment manifest exporting are called from the function. Once completed, focus
returns to the VS tools application as intended. Everything appears to have
successfully processed and nothing out of the ordinary exists. This is until a
new back-end process such as a report viewer or posting invoices is initialized,
at this point the processes stick in the process monitor in an almost
"paused" state. The new processes seem think that another process is
still running, and remains in this state indefinitely. GP will not close,
unless forced to do so.
*This post is locked for comments
I have the same question (0)Hi Bob
I have in the past experienced similar problems to what you are describing. After many months of frustration I eventual discovered that the VSTools library is not thread safe. This meant that any logic being executed in a thread other than the main GP thread could either crash for seemingly unexplained reasons or alternatively, it could cause other GP processes to hang.
In my case, I could not eliminate all non-primary thread logic from within the code so what I had to do was reduce the code inside the thread to a minimum then throw control back to the primary thread for it to finish off the rest of the process logic. The end result was a stable solution.
The code to achieve this is a little too complicated to describe here so please send me your contact details via my web site and I will describe in further detail what options can be considered to fix your particular problem.
Regards
Andrew Dean
Community Member
2
babubaskaran@outloo...
2
Yng Lih
2