It is currently November 29th, 2023, 6:10 pm
Using Rainmeter.API.LogF crashes Rainmeter
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Using Rainmeter.API.LogF crashes Rainmeter
Using Rainmeter.API.LogF crashes Rainmeter sometimes, in C# plugins. I can't recreate the problem in a new empty plugin. Is this a known issue?
from the Realm of Death
-
- Developer
- Posts: 2651
- Joined: November 24th, 2011, 1:42 am
- Location: Utah
Re: Using Rainmeter.API.LogF crashes Rainmeter
I have no idea, as I have never run into this issue with the logging functions. Normally, I would say maybe there is an issue with threading, but the log functions should be thread safe.
Even if you reference an invalid variable or something, it should still not crash (but usually will log gibberish) - at least I have never had it crash for "bad" data.

-Brian
Even if you reference an invalid variable or something, it should still not crash (but usually will log gibberish) - at least I have never had it crash for "bad" data.

-Brian
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: Using Rainmeter.API.LogF crashes Rainmeter
Since you mentioned threading, I was using LogF in a function that was calling an async function. I will try it out tomorrow with an example plugin.
from the Realm of Death