Hi all

I have used cComWebcamCapture and when using it in webapp I get the message,

Code:
C:\AntarSas\xxxxxxxxx\Programs\WebApp.exe
Error de llamada al método de objeto COM Attempt to use object before it's been initialized, pvComObject is NULL.
DataFlex Error#: 4399 en línea: 211815.

GET_COMGETVIDEODEVICESCOUNT (14292) - oComWebcamCapture1 (6462) - at address 211815
MSG_ONFILL (6721) - oWebCamara (6465) - at address 213144
MSG_REFILL (6722) - oWebCamara (6465) - at address 27135
GET_SERIALIZEOBJECT (5725) - oWebCamara (6465) - at address 27154
GET_SERIALIZEOBJECT (5725) - oWebgrupoCamaras (6464) - at address 17280
GET_SERIALIZEOBJECT (5725) - oWebAccordionTomaFoto (6461) - at address 17280
GET_SERIALIZEOBJECT (5725) - oWebAccordionContainer1 (6382) - at address 17280
GET_SERIALIZEOBJECT (5725) - oWebMainPanel (6381) - at address 17280
GET_SERIALIZEOBJECT (5725) - oHojadeVida (6294) - at address 17280
GET_SERIALIZEOBJECT (5725) - oHojadeVida (6294) - at address 22536
GET_LOADVIEW (6418) - oWebApp (37) - at address 23934
MSG_SHOWVIEW_FROMCLIENT (6422) - oWebApp (37) - at address 24050
GET_HANDLEACTION (5717) - oWebApp (37) - at address 17031
GET_CALLACTION (6409) - oWebApp (37) - at address 23800
MSG_ONHTTPPOST (5596) - oWebServiceDispatcher (60) - at address 22874
MSG_ONHTTPREQUEST (5428) - oWebServiceDispatcher (60) - at address 15721
MSG_HANDLEHTTPREQUEST (5391) - oWebServiceDispatcher (60) - at address 15756
MSG_ONHTTPREQUEST (5428) - oVDFInetSession (48) - at address 14627
MSG_STARTWEBAPP (5625) - oWebApp (37) - at address 16099
[start] - at address 213229
I am writing the procedure

Code:
Procedure OnCreate
                                Forward Send OnCreate 
                                 Handle hoFtp
                                 Get Create (RefClass(cComWebcamCapture)) to  hoFtp
                                If (not(IsComObjectCreated(hoFtp))) Begin
                                    Send CreateComObject of hoFtp
                                End
   End_Procedure
without results. I listen to opinions

Edgar