1. Hi, oxide developers! Can you make dont destroy timer when throwed exception?
    [DOUBLEPOST=1499421398][/DOUBLEPOST]May be create kvp in config file
     
  2. 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.
     
  3. I need: timer.Every(MillionSeconds, ()=>{Do_It();}, ignoreException: true)
     
  4. UP!!!!!
     
  5. Do what kappa said and use a try/catch inside of a timer
    Code:
    timer.Every(5f, () =>
                {
                    try
                    {
                        // Code here
                    }
                    catch
                    {
                       
                    }
                });
     
  6. No, i need:
    Code:
    timer.Every(5f, () =>
                {
                        // Code here
                },ignoreException: true);
     
  7. UP!!!!!!!!!!!!!!!!!!!!!!
     
  8. 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
  9. Failed to run a timer. (NullReferenceException: Object reference not set to an instance of an object)
     
  10. It's been "what are happen".
    But what you do?