web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Thread Execution problems using VSTools application

(0) ShareShare
ReportReport
Posted on by 45

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)
  • Suggested answer
    Andrew John Dean Profile Picture
    1,337 on at
    Re: Thread Execution problems using VSTools application

    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

    www.envisagesoftware.com

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
babubaskaran@outlook.com Profile Picture

babubaskaran@outloo... 2

#1
Yng Lih Profile Picture

Yng Lih 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans