Skip to main content
Topic: custom UI component - add_location problem (Read 2033 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

custom UI component - add_location problem

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?

custom UI component - add_location problem

Reply #1
PLZ HELP, HELP.

Things like 'about box', 'open files' works.
Playback commands, add locations etc. freeze the foobar.

custom UI component - add_location problem

Reply #2
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...

custom UI component - add_location problem

Reply #3
Thanks for reply, I've already found it. I didn't copy metadb_handle and try_lock() locked the foobar.

 
SimplePortal 1.0.0 RC1 © 2008-2019