Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: custom UI component - add_location problem (Read 2952 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.