João
Is your COM component developed in VFP? If so temporarily stop instantiating it as COM and just use a plain VFP object, this will let you debug this problem much easier.
with thisform
set classlib to gc_DataLayer
.oConnect = createobject('DataLayer')
endwith
>Yes, remove the method and get the error.
>
>Now create de method again.....copy/paste from the other method....and rrrr error again....