Help - Search - Members - Calendar
Full Version: custom UI component - add_location problem
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
steel_space
I have a problem with calling playlist_oper::get()->add_location while my own UI component is running. Whe I call it, it freezes (deadlock or so, not an endless loop) as soon as it found a file to be added to playlist.
Minimize button work, Abort not.
How can I solve it?
steel_space
PLZ HELP, HELP.

Things like 'about box', 'open files' works.
Playback commands, add locations etc. freeze the foobar.
kode54
Did you read all of foo_ui_test.cpp? Sounds like you may be forgetting to add the dialog to the main message loop list. (using modeless_dialog_manager)

Otherwise, I'm not really sure, as I haven't attempted a UI component. I kind of suck at dialog design.


Edit: Wait, did you mean playlist_oper::add_location inside your dialog process? Hmm... this requires further explanation...
steel_space
Thanks for reply, I've already found it. I didn't copy metadb_handle and try_lock() locked the foobar.
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.