Print Page | Close Window

ASSERT in CXTPDrawHelpers.cpp

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=24164
Printed Date: 28 February 2024 at 11:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ASSERT in CXTPDrawHelpers.cpp
Posted By: mgampi
Subject: ASSERT in CXTPDrawHelpers.cpp
Date Posted: 01 June 2021 at 11:40am
Hi;

I just try to execute our app converted from XTP19.1 to XTP19.3.
I can't show any property grid because

it crashes in
BOOL CXTPPropertyGridToolBar::OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
    CXTPPropertyGrid* pGrid = DYNAMIC_DOWNCAST(CXTPPropertyGrid, GetParent());
    ASSERT(NULL != pGrid);   <-- ASSERT is fired

    if (pGrid->GetToolTipContext())  <-- Crash
    {
        pGrid->GetToolTipContext()->FilterToolTipMessage(this, message, wParam, lParam);
    }

    return CWnd::OnWndMsg(message, wParam, lParam, pResult);
}

it asserts in CXTPDrawHelpers
CXTPBufferDCEx::CXTPBufferDCEx(HDC hDestDC, const CRect rcPaint)
    : m_hDestDC(hDestDC)
{
    ASSERT(rcPaint.left <= rcPaint.right);
    ASSERT(rcPaint.top <= rcPaint.bottom);    <-- asserts here all the time (top==1, bottom==-1)

    m_rect = rcPaint;
    Attach(::CreateCompatibleDC(m_hDestDC));
    if (NULL == m_hDC)
        return;

How can we fix this?


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Replies:
Posted By: mgampi
Date Posted: 01 June 2021 at 12:05pm
I can't event show a property grid in our application because the second ASSERT in my previous post comes up whenever the control needs to be redraw, in this state the control - and thus the entire Toolkit 19.3 is absolutely unusable!


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: mgampi
Date Posted: 01 June 2021 at 12:13pm
In addition I see a lot of access violations in the DrawCli sample when playing around with the app.
E.g. CXTPPropertyGridView::OnSelectionChanged crashes.


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: mgampi
Date Posted: 22 February 2023 at 5:52am
Still not fixed in 22.0!!! Cry


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net