Bug #8544 2006-08-23 04:40
indrekis
"Save to text file" in the Disassembly creates empty file
"Save to text file" in the Disassembly asks for the file name, but the file, created by it is always empty.
I am using CodeBlocks build 2878 (Aug 19 2006) under Windows XP SP2.
Best regards, Oleg Farenyuk aka Indrekis
- Category
- Application::WrongBehaviour
- Group
- Status
- Closed
- Close date
- 2006-08-26 09:45
- Assigned to
History
indrekis 2006-08-25 02:41
It looks like corresponding code is just commented out: In the <CB_src>/src/plugins/debuggergdb/disassemblydlg.cpp there is: void DisassemblyDlg::OnSave(wxCommandEvent& event) { <skipped> wxFFileOutputStream output(dlg.GetPath()); <skipped> wxTextOutputStream text(output); // wxListCtrl* lc = XRCCTRL(*this, "lcCode", wxListCtrl); // for (int i = 0; i < lc->GetItemCount(); ++i) // { // wxListItem info; // info.m_itemId = i; // info.m_col = 1; // info.m_mask = wxLIST_MASK_TEXT; // wxString instr = lc->GetItem(info) && !info.m_text.IsEmpty() ? info.m_text : _T("??"); // // text << lc->GetItemText(i) << _T(": ") << instr << _T('\n'); // } cbMessageBox(_("File saved"), _("Result"), wxICON_INFORMATION); } Are there some fundamental problems in that functionality?
mandrav 2006-08-26 09:45
This bug is now fixed in HEAD.
Thank you for reporting it.