PDA

View Full Version : vis plugin help needed


DemonHell
18th June 2002, 00:41
Hi,
I`m new to writing plugins for winamp(..infact, new to coding on winblows too!)

I`m currently working in PureBasic, and have successfully `ported` the gen_tray control example from the gen mini SDK,
So I thought I`d have a go at doing a vis plugin too.

Trouble is,it always causes an invalid page fault in kernel32.dll.
Weirder still, after bunging in some debug code, it always does it after the 61st call to Render()..no matter what I change in my code.

There isn`t anything fancy at all in my code, the Init() just returns 0 for success, Config() and Quit() just popup a win32 messagebox and wait for the OK.
I pared the Render() function down to just incrementing a counter and outputting it to the console just to debug it.

I did see something similar on these forums, the guy posting was doing an LCD output, wondered if a lack of window might confuse winamp?..trouble is, noone replied to his answer, so I`ll never know ;)

Any ideas?