Hi,

I'm using the simple way to get the a2dcanvas working. So i have it on top of a wxFrame and want to save the drawing. I looked for a sample implementing for this, but haven't found any.

I tried to do some think like this:

a2dCanvasCommandProcessor *comm = m_canvas->GetCanvasDocument()->GetCanvasCommandProcessor();
       a2dCommand_FileSave *comm_save = new a2dCommand_FileSave();
       comm->Submit(comm_save);

So I can submit the FileSave command, like I more or less saw works with the AddComandtoMenu function. But this is not working, the weird thing it's that something the code executes without errors but some others don't. I get a segmentation fault that send the attached backtrace.

On the other hand I want to report that most of the sample using the docview and canvas module, aren't working in the open function. My conf, is ubuntu 6.10 and wxWidgets 2.8.3

I really appreciate any help with this issue. Thanks



Ibraim
#0 0x806a11c    wxStringData::IsValid(this=0xfc7d8910) 
(/usr/local/include/wx-2.8/wx/string.h:249)
#1 0x806a777    wxStringBase(this=0xbfc9b234, [EMAIL PROTECTED]) 
(/usr/local/include/wx-2.8/wx/string.h:351)
#2 0x806a7fe    wxString(this=0xbfc9b234, [EMAIL PROTECTED]) 
(/usr/local/include/wx-2.8/wx/string.h:690)
#3 0xb77bcbf1   wxFileName::GetVolume(this=0xb7046abc) 
(../include/wx/filename.h:418)
#4 0xb77bc7c7   wxFileName::Assign(this=0xbfc9b2d8, [EMAIL PROTECTED]) 
(../src/common/filename.cpp:297)
#5 0x81a1944    wxFileName::operator=() 
(/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h:205)
#6 0x82662c0    a2dDocumentEvent::a2dDocumentEvent() 
(/home/yesidh/unfuzzy/wmMethod/src/wmMethod.cpp:396)
#7 0x825773b    a2dDocument::Save() 
(/home/yesidh/unfuzzy/wmMethod/src/wmMethod.cpp:396)
#8 0x826db52    a2dDocumentCommandProcessor::FileSave() 
(/home/yesidh/unfuzzy/wmMethod/src/wmMethod.cpp:396)
#9 0x80850cc    a2dCommand_FileSave::Do(this=0x86b6608) 
(/usr/local/include/wxart2d/docview/include/doccomimpl.h:253)
#10 0x828f1c1   a2dCommandProcessor::DoCommand() 
(/home/yesidh/unfuzzy/wmMethod/src/wmMethod.cpp:396)
#11 0x8193153   a2dCanvasCommandProcessor::Submit() 
(/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h:205)
#12 0x807cc1d   mainFrame::OnFileSave(this=0x85e5520) 
(/home/yesidh/unfuzzy/unfuzzy/src/unfMain.cpp:649)
#13 0xb77831af  wxAppConsole::HandleEvent(this=0x83ca128, handler=0x85e5520, 
func={__pfn = 0x807cb6a <mainFrame::OnFileSave(wxCommandEvent&) 
(../src/common/appbase.cpp:320)
#14 0xb7839bce  wxEvtHandler::ProcessEventIfMatches([EMAIL PROTECTED], 
handler=0x85e5520, [EMAIL PROTECTED]) (../src/common/event.cpp:1203)
#15 0xb783b9be  wxEventHashTable::HandleEvent(this=0x839e120, [EMAIL 
PROTECTED], self=0x85e5520) (../src/common/event.cpp:877)
#16 0xb783bb24  wxEvtHandler::ProcessEvent(this=0x85e5520, [EMAIL PROTECTED]) 
(../src/common/event.cpp:1265)
#17 0xb7b672b8  wxWindowBase::TryParent(this=0x8600920, [EMAIL PROTECTED]) 
(../src/common/wincmn.cpp:2580)
#18 0xb783bb8b  wxEvtHandler::ProcessEvent(this=0x8600920, [EMAIL PROTECTED]) 
(../src/common/event.cpp:1278)
#19 0xb7b5a0db  wxToolBarBase::OnLeftClick(this=0x8600920, id=5003, 
toggleDown=false) (../src/common/tbarbase.cpp:596)
#20 0xb7ac3335  gtk_toolbar_callback(tool=0x8645810) 
(../src/gtk/tbargtk.cpp:183)
#21 0xb6d51b29  g_cclosure_marshal_VOID__VOID() 
(/usr/lib/libgobject-2.0.so.0:??)
#22 0xb6d4479b  g_closure_invoke() (/usr/lib/libgobject-2.0.so.0:??)
#23 0xb6d54b93  g_signal_chain_from_overridden() 
(/usr/lib/libgobject-2.0.so.0:??)
#24 0xb6d560b7  g_signal_emit_valist() (/usr/lib/libgobject-2.0.so.0:??)
#25 0xb6d56279  g_signal_emit() (/usr/lib/libgobject-2.0.so.0:??)
#26 0xb6f77093  IA__gtk_button_clicked(button=0x83f0578) (gtkbutton.c:889)
#27 0xb6f78cde  gtk_real_button_released(button=0x83f0578) (gtkbutton.c:1484)
#28 0xb6d51b29  g_cclosure_marshal_VOID__VOID() 
(/usr/lib/libgobject-2.0.so.0:??)
#29 0xb6d42fb9  g_value_set_boxed() (/usr/lib/libgobject-2.0.so.0:??)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Wxart2d-users_dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to