
Originally Posted by
LaVolpe
You posted the question on my alpha image control also. I'll give you this hint (and I don't' think it is related to my control).
Look for "Not Not" in your source code. Do a complete project search for those two words together like that. It is a common approach to test an array if it is dimensioned or not. And that method can cause that error. If you see "Not Not" used with arrays, add this line shortly after that statement: Debug.Assert App.hInstance
Now run the project again and see if error goes away. For more information on Not Not with arrays,
see this FAQ page
If the error isn't related to Not Not, then at least post the line that is causing the error.
Interesting, I have never heard that one before... Should try it some time. Another method to check whether an array has been dimensioned is:
Code:
Private Declare Function SafeArrayGetDim Lib "Oleaut32.dll" (ByRef saArray() As Any) As Long