It is currently April 26th, 2024, 9:37 am

Using Rainmeter.API.LogF crashes Rainmeter

Report bugs with the Rainmeter application and suggest features.
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Using Rainmeter.API.LogF crashes Rainmeter

Post by death.crafter »

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
User avatar
Brian
Developer
Posts: 2684
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Using Rainmeter.API.LogF crashes Rainmeter

Post by Brian »

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.

:confused:

-Brian
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Using Rainmeter.API.LogF crashes Rainmeter

Post by death.crafter »

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