Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - ASSERT in CXTPDrawHelpers.cpp
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ASSERT in CXTPDrawHelpers.cpp

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: ASSERT in CXTPDrawHelpers.cpp
    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 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2023 at 5:52am
Still not fixed in 22.0!!! Cry
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.