Help - Search - Members - Calendar
Full Version: Threads Question
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
Leroy Bodacious
I've barely ever used threads before. I'm working on a plugin that is not multithreaded. I need to make some calls from playlist_switcher.h and play_control.h. I see that these should be called "ONLY from main thread." How do I do that?
hunted
QUOTE(Leroy Bodacious @ Apr 8 2005, 07:07 PM)
I've barely ever used threads before. I'm working on a plugin that is not multithreaded. I need to make some calls from playlist_switcher.h and play_control.h. I see that these should be called "ONLY from main thread." How do I do that?
*


If you didnt create a new thread, your probably in the main thread.
Leroy Bodacious
Yeah you're definitely right. I'm looking for the problem in the wrong place. Any idea how to debug a stack dump? My plugin keeps crashing, and I don't know exactly where its happening. Is there some way to figure out whats going on in execution just before the crash from the addresses in the Stack dump analysis?
foosion
If you are using Visual Studio (and not just the compiler tools from the command line), start your plugin in debug mode from Visual Studio. You have to use the debug configuration for this. Make sure there is a working foobar2000 installation where the compiler puts the debug version of your plugin; a good idea would be to create one in the debug output directory by copying over the needed files from your normal installation. Then you only have to configure Visual Studio to launch the approriate foobar2000.exe to debug your plugin.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.