hello,
i created a squirrel script who calls avrdude and extracts the necessary parameters from the Projectfile:
in the script my final call is
print(IO.ExecuteAndGetOutputAndError(execute_string,true));
after the output to the scriptconsole c::b crashes.
the back trace (i can't really get a backtrace, because on every debug session the SIGSEV is on some other point):
[debug]#0 0x0131feb8 in wxEventHashTable::InitHashTable() () from E:\Programmieren\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll
[debug]#1 0x0168f6bc in wxLongLongNative::operator+(long long) const () from E:\Programmieren\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll
[debug]#2 0x0028fb9c in ?? ()
[debug]#3 0x00000000 in ?? ()
on previous sessions it was here:
void MainFrame::OnFileMenuUpdateUI(wxUpdateUIEvent& event)
{
[...]
EditorBase* sh = Manager::Get()->GetEditorManager()->GetEditor(g_StartHereTitle);
[...]
}
g_StartHereTitle pointed to some trash.
if i use IO.Execute(execute_string); in my script c::b doesn't crash
i appended the whole script, if someone is willing to test. He only needs avrdude. I think this crash happens also with other commands, but i didn't tried it...
(to test: create a project with the avr template and c&p the script in the script console then run AVR->Run Avrdude)
greetings