Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Not extensivety tested, but it looks OK : wxs files are opened without crash.
Thanks
2
Try this file (rename as cpp). It may need some adjustment to compile on wx3.3.
3
This method, defined in wxscolourproperty.cpp:152
Code
    wxString wxsMyColourPropertyClass::ValueToString( wxVariant& value,  int argFlags ) const
does not override in wx >= 3.3.0 because the second parameter is no longer an integer, see the documentation.

EDIT: Adding "override" to the declaration would have uncovered this long ago.
4
It looks like the C::B try to read some string values to "reconstruct" the prop grid when reading the wxs file.

But the "string value" maybe empty or not correct, so wx just report the assert.

My guess is that the issue is inside the wxWidgets' library code, not in the C::B's source code.
5
You can try something like this (untested):
Code
#if wxCHECK_VERSION(3, 3, 0)
        VALUE.m_colour = wxColour(_T("rgb")+Id->GetValueAsString(wxPGPropValFormatFlags::Null));
#else
        VALUE.m_colour = wxColour(_T("rgb")+Id->GetValueAsString());
#endif

I just apply this patch, and I see the result C::B still crashed when I open a wxsmith file. :(
6
I think I have the same problem.
I tried your patch in wxscolourproperty.cpp, but no difference. Still a crash when I try to open a wxsmith old file. I obtain an rpt file if this can help.
Before the crash, I can see that a new tab is open in the editor, but it has a name like Untitled0.
Hi, thanks for the test. I just looked at the crash report file, and it is the same crash call stack as mine.
7
I think I have the same problem.
I tried your patch in wxscolourproperty.cpp, but no difference. Still a crash when I try to open a wxsmith old file. I obtain an rpt file if this can help.
Before the crash, I can see that a new tab is opened in the editor, but it has a name like Untitled0.
8
Contributions to C::B / Re: Patch for update.bat
« Last post by Miguel Gimenez on Today at 11:04:19 am »
Profile spammer reported to moderator.
9
Contributions to C::B / Re: Patch for update.bat
« Last post by jadongreen on Today at 10:44:28 am »
I tried the suggested change on my system as well, and after replacing the original strip commands the build completed without errors.
Thanks!
10
You can try something like this (untested):
Code
#if wxCHECK_VERSION(3, 3, 0)
        VALUE.m_colour = wxColour(_T("rgb")+Id->GetValueAsString(wxPGPropValFormatFlags::Null));
#else
        VALUE.m_colour = wxColour(_T("rgb")+Id->GetValueAsString());
#endif

Thanks, let me try it as soon as possible.

The strange thing is the assert cause crash if the C::B is running without debugger. Under GDB debugger, it just pop out the warning message, so I can click the "continue" to skip the warning.
Pages: [1] 2 3 4 5 6 ... 10