Bug Report T716172
Visible to All Users

Unloading a DLL built without runtime packages causes an AV if the DLL includes a TcxGrid control whose TcxGridTableOptionsView.HeaderFilterButtonShowMode is fbmSmartTag or fbmDefault if TouchMode is disabled

created 6 years ago (modified 6 years ago)

I attach a project with a problem we are having:

The TestEXE.exe has a form that calls another form inside TestDLL.dll which has a grid with OptionsView.ColumnAutoWidth = TRUE, when the .exe calls FreeLibrary, Windows shows a Windows with the event (translated with Google):

Signature with problems:
   Name of the problem event: APPCRASH
   Application name: TestExe.exe
   Application version: 1.14.0.0
   Application timestamp: 5c669945
   Module name with errors: gdiplus.dll_unloaded
   Module version with errors: 0.0.0.0
   Module time stamp with errors: 4ce7b714
   Exception code: c0000005
   Exception displacement: 70a34cc8
   Operating system version: 6.1.7601.2.1.0.256.48
   Locale ID: 3082
   Additional information 1: d127
   Additional information 2: d127af0ddf0371ae4ec3bb08907a0647
   Additional information 3: eae7
   Additional information 4: eae7ce57ee542c79662499239d5c8e67

After some investigation, we have found out that there are 3 ways to avoid that exception, but the best thing is you help us to clarify this.

OPTION 1: Add cxGraphics to the dpr. of the exe
OPTION 2: In the dll export unit, avoid calling dxCore.dxFinalize in the Unload function called by the exe before the FreeLibrary. (Doesn`t seem a recommended solution)
OPTION 3: set OptionsView.ColumnAutoWidth = FALSE    (this is not a really a valid option, obviously)

In the attached source code, there are 2 comments with instructions to activate OPTION 1 or OPTION 2.
(IMPORTANT: when an options is activated, make sure the other is deactivated.)

Kind regards

Comments (1)
DevExpress Support Team 6 years ago

    Hello Manuel,

    Thank you for sharing your sample project.
    It seems that you are right. The current behavior is incorrect. The issue seems to be caused by drawing the filter tag in column filters. We will try to resolve this problem.

    Answers approved by DevExpress Support

    created 6 years ago

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.