Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 11th January 2011, 04:13   #1
assualt
Junior Member
 
Join Date: Sep 2010
Posts: 25
I got this error everytime I press shuffle...

Everytime I press "shuffle", there be a message say:



I guess it because my plug-in function.

code:
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
if (message==WM_WA_IPC)
{
if(lParam==IPC_GET_SHUFFLE)
{
if(SendMessage(plugin.hwndParent,WM_WA_IPC,0,IPC_GET_SHUFFLE)==1)
{
MessageBox(plugin.hwndParent,L"Shuffle On",L"Shuffle state",MB_OK);
}
else if(SendMessage(plugin.hwndParent,WM_WA_IPC,0,IPC_GET_SHUFFLE)==0)
{
MessageBox(plugin.hwndParent,L"Shuffle Off",L"Shuffle state",MB_OK);
}
}
}
return CallWindowProc(lpWndProcOld,hwnd,message,wParam,lParam);
}



How can I fix this error?
assualt is offline   Reply With Quote
Old 11th January 2011, 08:12   #2
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,278
you've got a stack overflow as you're calling the same message you're trying to show the state off. for that api you need to do it just as a sendmessage at a different stage and not within a block as you currently have.

-daz
DrO is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump