Posted: Sun Jun 23, 2002 3:16 pm
Restored from previous forum. Originally posted by DemonHell.
Hiya,
I recently posted a question about a barebones winamp plugin in the "Application Programming" forum..with source code included.
I`ve had another look at it, and after inserting several messagebox popups to see what happens with my code, I`ve come to one conclusion..
AFAIK, winamp starts 4 threads for the decoding/playback buffering, and the Render procedure works fine for the first 61 calls (all made by the first thread), as soon as the second thread takes over, it bombs out with an invalid page fault.
Does anyone have any ideas how to give access/execute rights to this procedure , possibly on during the AttachThread() procedure ?
Being new to all this win32api stuff, I translated the winamp vis example to PB, and can`t see anything like the above in it, but I get the feeling PB produces the wrong type of DLL. As every DLL PB produces has a "_DLLEntryPoint" mentioned before all my declared/exported procedures, whereas every winamp plugin I`ve looked at in a hexeditor doesnt have this.
Any help or slaps around the face for missing the bleeding obvious greatly appreciated.
Hiya,
I recently posted a question about a barebones winamp plugin in the "Application Programming" forum..with source code included.
I`ve had another look at it, and after inserting several messagebox popups to see what happens with my code, I`ve come to one conclusion..
AFAIK, winamp starts 4 threads for the decoding/playback buffering, and the Render procedure works fine for the first 61 calls (all made by the first thread), as soon as the second thread takes over, it bombs out with an invalid page fault.
Does anyone have any ideas how to give access/execute rights to this procedure , possibly on during the AttachThread() procedure ?
Being new to all this win32api stuff, I translated the winamp vis example to PB, and can`t see anything like the above in it, but I get the feeling PB produces the wrong type of DLL. As every DLL PB produces has a "_DLLEntryPoint" mentioned before all my declared/exported procedures, whereas every winamp plugin I`ve looked at in a hexeditor doesnt have this.
Any help or slaps around the face for missing the bleeding obvious greatly appreciated.