Page 1 of 1

CreateObject error

Posted: Sat Nov 29, 2008 4:35 pm
by Kleyber
Hi all,

I have an app running fine in my computer, using CreateObject. But when I installed it in the client's computer, it appears the error below:

Pasta e nome : C:\Intell\Intel.EXE
Path de dados :
Usuário do Sistema : KLEYBER
Tipo de aplicação : 32 bits
Versão do Compilador : xHarbour build 1.1.0 Intl. (SimpLex)
FWHX 8.02 (c) FiveTech Software, 1993-2008

Tamanho do executável : 5,387,264 bytes
Data e Hora do erro : 29/11/2008, 12:08:35

Descrição do erro produzido
________________________________________________________________________________

Error TOleAuto/-1 CO_E_CLASSSTRING: TOLEAUTO:NEW
Argumentos :
[ 1] = C NFe_util_PL005a.util

Chamadas a Stack
________________________________________________________________________________

Called from THROW(0)
Called from TOLEAUTO:NEW(322)
Called from CREATEOBJECT(69)
Called from CONSSTATUS(8576)
Called from (b)PREPARA_NFE(8546)
Called from TBUTTON:CLICK(0)
Called from TBUTTON:HANDLEEVENT(0)
Called from _FWH(0)
Called from SENDMESSAGE(0)
Called from TDIALOG:COMMAND(0)
Called from TWINDOW:HANDLEEVENT(0)
Called from TDIALOG:HANDLEEVENT(0)
Called from DIALOGBOX(0)
Called from TDIALOG:ACTIVATE(0)
Called from PREPARA_NFE(8555)
Called from (b)MENU3(507)
Called from TMENU:ACTIVATE(699)
Called from TVMENU:EVALACTION(1630)
Called from TVMENU:LBUTTONUP(1336)
Called from TWINDOW:HANDLEEVENT(0)
Called from TCONTROL:HANDLEEVENT(0)
Called from TVMENU:HANDLEEVENT(880)
Called from _FWH(0)
Called from WINRUN(0)
Called from TWINDOW:ACTIVATE(0)
Called from MAIN(209)


Where am I wrong?

TIA,

Re: CreateObject error

Posted: Sat Nov 29, 2008 4:39 pm
by Enrico Maria Giordano
It seems that you don't have the required OLE server installed (ie. NFe_util_PL005a.util).

EMG

Re: CreateObject error

Posted: Sat Nov 29, 2008 4:41 pm
by Kleyber
Enrico Maria Giordano wrote:It seems that you don't have the required OLE server installed (ie. NFe_util_PL005a.util).

EMG


Hi Enrico,

That's so strange... The only thing is required for this DLL is to register with regasm, which was already done. How can I see if this OLE server is installed or not?

Regards,

Re: CreateObject error

Posted: Sat Nov 29, 2008 4:44 pm
by Enrico Maria Giordano
Kleyber wrote:That's so strange... The only thing is required for this DLL is to register with regasm,


Shouldn't it be regsvr32?

Kleyber wrote:How can I see if this OLE server is installed or not?


You need a tool but I can't remember its name, sorry.

EMG

Re: CreateObject error

Posted: Sat Nov 29, 2008 4:48 pm
by Kleyber
Enrico Maria Giordano wrote:Shouldn't it be regsvr32?


No, this DLL must be registered only with REGASM. I noticed that the computer didn't have the Microsoft NET Framework 2.0 (which is required for this DLL), and I installed it, but the error persists. Maybe this gives a better idea.

TIA,

Posted: Sat Nov 29, 2008 9:53 pm
by Antonio Linares
Kleyber,

What Windows version is he using ?

Posted: Sun Nov 30, 2008 11:49 am
by Kleyber
Hi Antonio,

Windows XP SP3

Regards,

Posted: Mon Dec 01, 2008 12:57 am
by James Bott
Kleyber,

>No, this DLL must be registered only with REGASM. I noticed that the computer didn't have the Microsoft NET Framework 2.0 (which is required for this DLL), and I installed it, but the error persists.

Maybe it has to be registered after the NET framework is installed.

James

Posted: Mon Dec 01, 2008 6:47 pm
by AHF
Kleyber,

I used to work with a Active X / COM inspector that alllows you to see all controls installed in the PC as well as all methods, properties, etc.

I don't remmeber the name but perhaps you could google it to find out.

Another way is to use VBA to check it.

Antonio

Posted: Mon Dec 01, 2008 8:43 pm
by Kleyber
Thanks to all,

I found the problem. In fact, another REGASM was used after installing NET Framework. Because of it, the original REGASM did not work at all. So, I had to create another folder and put all files inside it, and with the original REGASM everythiing worked as expected.

Thanks to all of you.

Regards,