It is currently March 28th, 2024, 5:05 pm

Plugin development troubleshooting

Share and get help with Plugins and Addons
Post Reply
prince1142003
Posts: 56
Joined: December 27th, 2011, 12:32 pm

Plugin development troubleshooting

Post by prince1142003 »

Hi all. I'm working on a threaded plugin for a personal pet project of mine. I've encountered a very specific situation where Rainmeter is crashing. I'm 99% sure it's being caused by the threading and me forgetting to make something thread-safe, but am simply stumped on how to go about figuring out what I missed.

RM crashes in this situation:
  • An active skin is using the plugin
  • I have the About window open to the Skins tab
  • I'm viewing the variables/measures for the skin using the plugin
  • I refresh the skin
Any help is appreciated. I can post my code if necessary.
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Plugin development troubleshooting

Post by .raptor »

I would love to help, but its really hard to tell anything from your post. What language are you currently using, and what approach did you take implementing the threading?
prince1142003
Posts: 56
Joined: December 27th, 2011, 12:32 pm

Re: Plugin development troubleshooting

Post by prince1142003 »

I'm writing in C#.

I was actually able to solve my problem. It was basically my lack of familiarity with debugging DLLs in Visual Studio. I kept trying to attach to an existing process but that wouldn't work when Rainmeter crashed. I ended up changing the Start Action in the project debug panel to start Rainmeter. At that point breakpoints and debugging worked correctly and I was able to figure out where I'd gone wrong.
Post Reply