Sorry for taking your time.
It appears that when I last had a break from coding this piece of software, I left it mid debugging when I had found the problem, but I must have been so tired that I couldn't be bothered to work the solution, subsequently I forgot about having ever discovered where the error was coming from.
So once again after debugging step by step the code and analysing the vairables that were getting iterated through, it was bought to my attention that the second iteration was trying to extract the class from an uninstantiated list - which is impossible!
After tracing back to where these variable lists were getting their 'filling' from it was traced back to a dialog and its properties - where inlaid the problem! This solution was upgraded from VS2008 however my coding practices weren't and after much modification using old practices this error arose. It turns out that VS2010
VB.net has this new feature for properties, where unless specifiying the get and set properties they're already done for you! I must have when creating these properties overlooked the fact that I hadn't set or get its information - I must have been rushing as I usually do . . . :)
The fragmented extract below shows my code - the blunder and the solution
Code:
Public MyProperty As List(Of MyVariables)
Private p_myproperty As List(Of MyVariables)
. . . *inside the function
p_myproperty = theFilling
Me.Close
. . .
======================================
' The Correction
Public MyProperty As List(Of MyVariables)
. . . *inside the function
MyProperty = theFilling
Me.Close
. . .
If you've understood any of what I've been rambling on about then maybe this can provide some insight if any of your code goes wrong when it comes to assigning properties
However this is a pretty basic mistake which has spawned from a change in coding practices bought on by the upgrading of VS - again my bad for wasting your valuable time
Cheers