Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

DEXUIForm causes customization to crash

Posted on by 75,730

I just wasted an entire weekend with a problem I am sure is related to the issue in this article. I was creating a custom item additional information window using C#. I was just wrapping up a lookup window and went to test. As soon as I went to select the item GP would crash. I was using code I have used hundreds of times before and after meticulous debugging it came down to something to do with either Close() or Dispose(). It all revolves around something to do with DEXUIForm. I switch back to just Form and all is well, although I lose the GP colors and lines.

https://dynamicsgpland.blogspot.com/2015/01/bug-in-dynamics-gp-vs-tools-event.html

I am hoping this fall to take Dave up on his Dexterity training but for now I am curious as to what it is about DEXUIForm that made my lookup window crash.

Categories:
  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: DEXUIForm causes customization to crash

    So the trick is to market to those 35,000. I still would like to visit in October. I have installed Dexterity several times with the hope of actually doing some coding but I always get distracted.

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,926 Most Valuable Professional on at
    RE: DEXUIForm causes customization to crash

    Hi Richard

    There are some 35,000 existing customers that are going to need looking after. Dexterity will still be in use in 10-15 years time.

    Regards

    David

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: DEXUIForm causes customization to crash

    Dave, now that Microsoft has announced no new GP sales starting in 2026 I am not sure if investing money in Dexterity is worth it.

    For now I simply commented out DEXUIForm and changed it to Form. I had to manually set the colors and draw lines but that only took a few minutes.

  • Almeda Profile Picture
    Almeda 5 on at
    RE: DEXUIForm causes customization to crash

    I'll do my best to provide some suggestions that may help resolve the issue.

    Update Delphi: Make sure you have the latest version of Delphi installed. Sometimes, older versions of Delphi may not be compatible with newer versions of DEXUIForm, which can cause crashes.

    Disable third-party components: If you have third-party components installed, try disabling them temporarily and see if the issue persists. Sometimes, third-party components can cause conflicts with DEXUIForm.

    Check for conflicting settings: Make sure there are no conflicting settings in your project. Check the form properties and events to see if there are any settings that conflict with DEXUIForm.

    Check for memory leaks: If your application has memory leaks, it can cause DEXUIForm to crash. Use a memory profiling tool to detect and fix any memory leaks.

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,926 Most Valuable Professional on at
    RE: DEXUIForm causes customization to crash

    Hi Richard

    As a Dexterity developer who only uses VSTools to achieve things Dexterity cannot do natively, I have never created an additional window using VSTools.

    If I need a window, I create it in Dexterity where it is native to the application, looks like a Dexterity form and is web client compatible.

    So, I don't have any input on this one. That said, Steve's article was an interesting read.

    Regards

    David

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: DEXUIForm causes customization to crash

    Thanks Derek, it was just very odd how I stumbled up this. I added a new form with all its fields and there was one field that need a lookup window. So that form was added also as a DEXUIForm. All was fine until I attempted to either select a value or exit. Both had Close() and Dispose().  Both would then cause GP to crash.

  • Suggested answer
    RE: DEXUIForm causes customization to crash

    Yes, most of the Visual Studio toolkit is no longer supported in the later versions of GP. It looks like that document was last updated back in 2015. I'm sure David will have some information along with his GP Power Tools that may help with this.

    I looked to see if we'd seen anything with a question on DEXUIForm, but didn't find anything.

    The only thing I could find on it was in the VS Tools Programmer's guide, but that only showed the following, which isn't much:

    Enabling a form in C#

    The following example shows how dynamic rendering is enabled for the EstimateFreight form of the C# version of the Estimate Freight sample integration.

    The WCCompliantWindow attribute takes one boolean parameter that indicates whether dynamic rendering is supported for the form.

    namespace EstimateFreight

    {

    [WCCompliantWindow(true)]

    public partial class EstimateFreight : DexUIForm

    {

    Enabling a form in Visual Basic

    The following example shows how dynamic rendering is enabled for the EstimateFreight form of the Visual Basic version of the Estimate Freight sample integration. The WCCompliantWindow attribute takes one boolean parameter that indicates whether dynamic rendering is supported for the form.

    <WCCompliantWindow(True)>

    Public Class EstimateFreightForm

    Inherits DexUIForm

    Hopefully the Community will have more info as to experience with this DEXUIForm object.

    Thanks

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

Product updates

Dynamics 365 release plans