Override wxApp::OnAssertFailure in L7Test.
We do nothing in this override. wxASSERT_MSG would fail in LGridJsonCellRenderer::ProcessJsonValue and in XmlHelper::ValidateXmlValue called by LGridXmlCellRenderer::ProcessXmlValue. This happens with postgresql only, when the corresponding database value is empty. The cell value is set to [Invalid], and next rendering leads to a crash in debug build only. Why does wxASSERT_MSG fail? Why with postgresql and not with sqlite?
This commit is contained in:
@@ -2,11 +2,14 @@
|
||||
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
||||
<data xmlns="http://www.netbeans.org/ns/make-project-private/1">
|
||||
<activeConfTypeElem>2</activeConfTypeElem>
|
||||
<activeConfIndexElem>1</activeConfIndexElem>
|
||||
<activeConfIndexElem>0</activeConfIndexElem>
|
||||
</data>
|
||||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
|
||||
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
||||
<group>
|
||||
<file>file:/home/user/Documents/published/L7/L7/special/XmlHelper.cpp</file>
|
||||
<file>file:/home/user/Documents/published/L7/L7/special/XmlGridPickerCtrl.cpp</file>
|
||||
<file>file:/home/user/Documents/published/L7/L7/special/LGridXmlCellRenderer.cpp</file>
|
||||
<file>file:/home/user/Documents/published/L7/L7/special/LGridJsonCellRenderer.h</file>
|
||||
<file>file:/home/user/Documents/published/L7/L7/special/LGridJsonCellRenderer.cpp</file>
|
||||
</group>
|
||||
|
||||
@@ -41,6 +41,10 @@ int L7Test::OnExit()
|
||||
return wxApp::OnExit();
|
||||
}
|
||||
|
||||
void L7Test::OnAssertFailure(const wxChar* file, int line, const wxChar* func, const wxChar* cond, const wxChar* msg)
|
||||
{
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
L7Frame::L7Frame(wxWindow* parent, wxWindowID id, const wxString& title)
|
||||
|
||||
@@ -33,6 +33,8 @@ public:
|
||||
|
||||
bool OnInit();
|
||||
int OnExit();
|
||||
void OnAssertFailure(const wxChar* file, int line, const wxChar* func, const wxChar* cond, const wxChar* msg) override;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
<gdb_interceptlist>
|
||||
<gdbinterceptoptions gdb_all="false" gdb_unhandled="true" gdb_unexpected="true"/>
|
||||
</gdb_interceptlist>
|
||||
<gdb_signals>
|
||||
</gdb_signals>
|
||||
<gdb_options>
|
||||
<DebugOptions>
|
||||
</DebugOptions>
|
||||
@@ -47,8 +49,6 @@
|
||||
<gdb_interceptlist>
|
||||
<gdbinterceptoptions gdb_all="false" gdb_unhandled="true" gdb_unexpected="true"/>
|
||||
</gdb_interceptlist>
|
||||
<gdb_signals>
|
||||
</gdb_signals>
|
||||
<gdb_options>
|
||||
<DebugOptions>
|
||||
</DebugOptions>
|
||||
|
||||
@@ -5,10 +5,13 @@
|
||||
</code-assistance-data>
|
||||
<data xmlns="http://www.netbeans.org/ns/make-project-private/1">
|
||||
<activeConfTypeElem>1</activeConfTypeElem>
|
||||
<activeConfIndexElem>1</activeConfIndexElem>
|
||||
<activeConfIndexElem>0</activeConfIndexElem>
|
||||
</data>
|
||||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
|
||||
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
||||
<group/>
|
||||
<group>
|
||||
<file>file:/home/user/Documents/published/L7/L7Test/L7Test.h</file>
|
||||
<file>file:/home/user/Documents/published/L7/L7Test/L7Test.cpp</file>
|
||||
</group>
|
||||
</open-files>
|
||||
</project-private>
|
||||
|
||||
Reference in New Issue
Block a user