Ok complete logs attached. Again, not sure if it says much as it seems to replicate the same error message.
When I run the grabber however, it seems to happen around the adding new channels as it doesn't crash if that option is ticked and it is just updating the EPG or adding channel numbers.
Basically load VS and your plugin solution. Put the compiled DLL/plugin into the plugin directory. Start TVServer. From within VS attach to the running TVService process.
Then you can wait for the error to occur. You can also put watchers or break points in VS.
Thanks. Firstly do I need to compile as debug or release to make this work, secondly is it setuptv or tvservice? I've tried both but VS does nothing when attached.
You don't need to compile as debug... that is only used for symbol files/etc. You should get away with release.
How/what are you using to trigger the error? Is it when you are in Setup? Or when the MePo client is running? At the end of the day it will be TVService that is running the plugin, so you should attach to that process.
To prove your code is running, try putting a break point in it through VS.
The error occurs part of the way through the grabit() function, I'm guessing it is around the updateaddnewchannels() sub as when you deselect add new channels from the tick box it doesn't produce the error (and it doesn't add new channels).
I've attached VS to the TVService with the dll loaded but even with breakpoints it won't stop the execution... I have to manually pause it and step through, but its a bit hit and miss whether you catch it in time.
Any help would be great, even with looking at the source I posted. I'm now running a new version of the code which doesn't bring up the error box now, it simply states it in the output window of the plugin BUT this time it doesn't even add any new channels. I've screwed up somewhere and I really don't know where :-( As this is my Win7 test vm with its own tuner I can play but its annoying that I cannot fix it, especially since Vs2012 can compile ok.