Search found 202 matches

by rocrail
Thu Dec 12, 2019 2:15 pm
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 569

Re: Creating an empty Grid stops the Application with an assert

An initially empty grid make sense in case it is first filled after a user selection. (I can also add empty Lists, Comboboxes and so on...) To show an empty row is an ugly work around. My work around for now is: wxDisableAsserts(); The bug is in wxWidgets because a call to getColPos() is kind of stu...
by rocrail
Thu Dec 12, 2019 10:52 am
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 569

Re: Creating an empty Grid stops the Application with an assert

Hi,

sorry but I will not do the 'bisecting'; I have other things todo.
The crash is clear, and can be reported in the tracking system of wxWidgets.
by rocrail
Wed Dec 11, 2019 8:46 pm
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 569

Re: Creating an empty Grid stops the Application with an assert

Hi,

Code: Select all

git bisect
usage: git bisect [help|start|bad|good|new|old|terms|skip|next|reset|visualize|view|replay|log|run]
I do not know the bisect command...
by rocrail
Wed Dec 11, 2019 6:26 pm
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 569

Re: Creating an empty Grid stops the Application with an assert

Yes, it also happens with the grid sample. Just comment out the line range 458...615. ../include/wx/generic/grid.h(1522): assert "idx >= 0 && idx < m_numCols" failed in GetColPos(): invalid column index Collecting stack trace information, please wait...Trace/BPT trap: 5 Running under MacOS Catalina.
by rocrail
Wed Dec 11, 2019 6:08 pm
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 569

Re: Creating an empty Grid stops the Application with an assert

Hi,

I did not check the grid sample, and yes, it did work before. The only change was a wxWidgets git pull with the same App source.
by rocrail
Wed Dec 11, 2019 5:22 pm
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 569

Re: Creating an empty Grid stops the Application with an assert

Just like this: m_StatisticGrid = new wxGrid( m_StatisticsTab, ID_FEEDBACK_STATISTIC_GRIG, wxDefaultPosition, wxSize(200, 150), wxSUNKEN_BORDER|wxHSCROLL|wxVSCROLL ); m_StatisticGrid->SetDefaultColSize(0); m_StatisticGrid->SetDefaultRowSize(25); m_StatisticGrid->SetColLabelSize(25); m_StatisticGrid-...
by rocrail
Wed Dec 11, 2019 7:52 am
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 569

Re: Creating an empty Grid stops the Application with an assert

OK, I have a work around:

Code: Select all

  wxDisableAsserts();
by rocrail
Wed Dec 11, 2019 7:19 am
Forum: C++ Development
Topic: Creating an empty Grid stops the Application with an assert
Replies: 19
Views: 569

Creating an empty Grid stops the Application with an assert

Hi, I'm using the head revision, 3.1.4, because I need some features which are not available in 3.0 or 3.1. After the latest source update, my App stops with an assert, after the onPaint is called for an empty wxGrid. If I comment out line 1522 in grid.h //wxASSERT_MSG( idx >= 0 && idx < m_numCols, ...
by rocrail
Sat Sep 28, 2019 11:12 am
Forum: Platform Related Issues
Topic: Frame icons for different usage/resolution
Replies: 2
Views: 382

Re: Frame icons for different usage/resolution

Thanks,

I will give it a try. :)
by rocrail
Sat Sep 28, 2019 9:14 am
Forum: Platform Related Issues
Topic: Frame icons for different usage/resolution
Replies: 2
Views: 382

Frame icons for different usage/resolution

Hi, I'm using a 256x256 Icon for Windows, and includes it in the Resource file as follows: #define wxUSE_NO_MANIFEST 1 #include "wx/msw/wx.rc" wxDEFAULT_FRAME ICON "xpm/rocrail.ico" On the Desktop its OK, but I would like to add another Icon for the Toolbar because it cannot be nicely scaled down. A...
by rocrail
Mon Sep 09, 2019 9:49 am
Forum: C++ Development
Topic: Disable verbose on wxImage::LoadFile
Replies: 3
Views: 240

Re: Disable verbose on wxImage::LoadFile

Thanks, that solved it. :)
by rocrail
Mon Sep 09, 2019 9:26 am
Forum: C++ Development
Topic: Disable verbose on wxImage::LoadFile
Replies: 3
Views: 240

Re: Disable verbose on wxImage::LoadFile

Calling
image.SetLoadFlags(image.GetLoadFlags() & ~wxImage::Load_Verbose);

does not disable the popups...
by rocrail
Mon Sep 09, 2019 9:03 am
Forum: C++ Development
Topic: Disable verbose on wxImage::LoadFile
Replies: 3
Views: 240

Disable verbose on wxImage::LoadFile

I'm implementing video streaming, and not all jpeg received data is OK. Its OK that the LoadFile function returns false in case of corrupt data. But, I want to switch off verbose: bool wxJPEGHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose, int WXUNUSED(index) ) Every time corr...
by rocrail
Fri Aug 02, 2019 10:17 am
Forum: Compiler / Linking / IDE Related
Topic: wxWebView and Windows
Replies: 32
Views: 1772

Re: wxWebView and Windows

doublemax wrote:
Fri Aug 02, 2019 9:39 am
So what exactly did you do? Split the MJPEG stream yourself and display individual images?
Yes. :)
by rocrail
Fri Aug 02, 2019 9:28 am
Forum: Compiler / Linking / IDE Related
Topic: wxWebView and Windows
Replies: 32
Views: 1772

Re: wxWebView and Windows

OK, success! :)

https://youtu.be/Hi_QLKD4EC0

Just watch the whole video; I will wink.

The video shows 12 fps, 320x240 pixels.