| 1034 | luabind::call_function <void>(callbacks[timerId].o, timerId); |
| 1035 | } |
| 1036 | catch (const luabind::error &e) |
| 1037 | { |
| 1038 | LuaTimerCallback cb = callbacks[timerId]; |
| 1039 | cb.isValid = false; |
| 1040 | |
| 1041 | callbacks.set (timerId, cb); |
| 1042 | const char* a = lua_tostring(e.state(), -1); |
| 1043 | AlertWindow::showMessageBox (AlertWindow::WarningIcon, "Timer callback error, timer id that failed was: " + String(timerId), String(e.what()) + "\n" + String(a) + "\n\nCallback disabled"); |
| 1044 | } |
| 1045 | } |
| 1046 | } |
| 1047 | } |