Hi, oxide developers! Can you make dont destroy timer when throwed exception?
[DOUBLEPOST=1499421398][/DOUBLEPOST]May be create kvp in config file
Timer callback exception
Discussion in 'Rust Development' started by bazuka5801, Jul 7, 2017.
-
If you expect your timer to throw an exception you could just put it in try/catch and it should work correctly, at least to some extent.
-
-
UP!!!!!
-
Code:timer.Every(5f, () => { try { // Code here } catch { } });
-
Code:timer.Every(5f, () => { // Code here },ignoreException: true);
-
UP!!!!!!!!!!!!!!!!!!!!!!
-
I noticed, that timer.Every() don't destroyed, when exception was thrown.
Show what you do and what are happen, when you use timer.Every()Last edited by a moderator: Jul 14, 2017 -
Failed to run a timer. (NullReferenceException: Object reference not set to an instance of an object)
-
But what you do?