Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Packages/MIES/MIES_IgorHooks.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ End

static Function BeforeUncompiledHook(variable changeCode, string procedureWindowTitleStr, string textChangeStr)

variable ret

LOG_AddEntry(PACKAGE_MIES, "start")

// catch all error conditions, asserts and aborts
Expand All @@ -308,7 +310,11 @@ static Function BeforeUncompiledHook(variable changeCode, string procedureWindow
// dito
AssertOnAndClearRTError()
try
ASYNC_Stop(timeout = 5); AbortOnRTE
ret = ASYNC_Stop(timeout = 5); AbortOnRTE

if(ret) // error stopping it, stop all threads
ret = ThreadGroupRelease(-2)
endif
catch
ClearRTError()
endtry
Expand Down