User forums > Help
wxSmith does not build for MacOSX at rev 3614
byo:
--- Quote from: Auria on February 18, 2007, 08:58:46 pm ---
--- Quote ---./wxsresourcetree.cpp:116: error: invalid use of undefined type 'struct wxImage'
/opt/local/include/wx-2.6/wx/bitmap.h:31: error: forward declaration of 'struct wxImage'
--- End quote ---
Add #include "wx/image.h"
--- End quote ---
Strange, I've compiled after my last commit on linux using --disable-pch to find missing includes and it compiled fine :?: So there are probably some small differences between wx implementations on different platforms.
BTW How dows wxSmith work on Mac? Last time it made some enormous memory allocations and since I don't have any access to Mac I'm wondering whether new version works better :)
Regards
BYO
EDIT: Committed in rev 3615
bnilsson:
The last rev (3615) built without problems, thanks.
About MacOSX behaviour:
There seems to be no memory guzzling in this version.
However, there is a graphics problem.
If I create a frame and a button, I see nothing in the graphics area.
However, if I open the Properties and change some settings, the layout appears.
But if I click in the graphics area (e.g. to select) or change focus between the windows on the desktop, it becomes white an all contents disappears. Window refresh seems to remove the content or paint it over.
Some "minor" things:
Scrollbars and splitters needs some work.
How do I remove an object? Right-click does not show any context menu of operations as I would expect. Selecting a button and then do Edit/Cut does not make it go away, but it crashes CB.
This is about as far as I have gone for now.
bnilsson:
Here is a crash report from when trying to remove an object:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x000000bf
Thread 0 Crashed:
0 libwxsmith.so 0x1637d1b4 wxsItem::ClearSelection() + 20 (wxsitem.cpp:241)
1 libwxsmith.so 0x1638fca8 wxsItemResData::SelectItem(wxsItem*, bool) + 56 (wxsitemresdata.h:218)
2 libwxsmith.so 0x16312d88 wxsResourceTree::OnSelect(wxTreeEvent&) + 56 (wxsresourcetree.cpp:103)
3 libwx_macu-2.6.0.dylib 0x080244c8 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 200
4 libwx_macu-2.6.0.dylib 0x08024788 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 168
byo:
--- Quote from: bnilsson on February 19, 2007, 08:27:38 pm ---Here is a crash report from when trying to remove an object:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x000000bf
Thread 0 Crashed:
0 libwxsmith.so 0x1637d1b4 wxsItem::ClearSelection() + 20 (wxsitem.cpp:241)
1 libwxsmith.so 0x1638fca8 wxsItemResData::SelectItem(wxsItem*, bool) + 56 (wxsitemresdata.h:218)
2 libwxsmith.so 0x16312d88 wxsResourceTree::OnSelect(wxTreeEvent&) + 56 (wxsresourcetree.cpp:103)
3 libwx_macu-2.6.0.dylib 0x080244c8 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 200
4 libwx_macu-2.6.0.dylib 0x08024788 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 168
--- End quote ---
I've created possible fix (commited into rev 3618), could you check if it works ?
BYO
bnilsson:
Sorry, it crashed again:
--- Quote ---Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0000004c
Thread 0 Crashed:
0 libwxsmith.so 0x081ad268 wxsItemResData::SelectItem(wxsItem*, bool) + 40
1 libwxsmith.so 0x08130354 wxsResourceTree::OnSelect(wxTreeEvent&) + 68
2 libwx_macu-2.6.0.dylib 0x016244c8 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 200
3 libwx_macu-2.6.0.dylib 0x01624788 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 168
4 libwx_macu-2.6.0.dylib 0x01624f14 wxEvtHandler::ProcessEvent(wxEvent&) + 212
5 libwx_macu-2.6.0.dylib 0x01624f44 wxEvtHandler::ProcessEvent(wxEvent&) + 260
6 libwx_macu-2.6.0.dylib 0x01777968 wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) + 56
--- End quote ---
I am using Edit/Cut to remove the object. Is this correct?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version