Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Thread Execution problems using VSTools application

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

  • Suggested answer
    Andrew John Dean Profile Picture
    Andrew John Dean 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans