Help - Search - Members - Calendar
Full Version: runtime error
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
shunlee
CODE
void Foo_Server::OnDataReceived(void* p_data,UINT16 len){
       static_api_ptr_t<playlist_manager> pm;
       pm->playlist_execute_default_action(0,0);
}

"OnDataReceived" is an virtual method of another SDK. when there is data arrived,another thread will call it.
Yirkha
QUOTE(foobar2000/SDK/playlist.h)
//! All playlist_manager methods are valid only from main app thread.\n
Perhaps your OnDataReceived() method is called from another thread asynchronously waiting for socket related I/O events?
shunlee
QUOTE(Yirkha @ May 23 2008, 11:20) *

QUOTE(foobar2000/SDK/playlist.h)
//! All playlist_manager methods are valid only from main app thread.\n
Perhaps your OnDataReceived() method is called from another thread asynchronously waiting for socket related I/O events?

Thanks,First.
You are right, I want to cantrol my foobar remotely. How can I achieve this?when there is an data arrived,then the plugin call main thread to dill with it.
Yirkha
Use foobar2000's built-in main_thread_callback interface.
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.