CreateObject error

Post Reply
User avatar
Kleyber
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

CreateObject error

Post 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,
Kleyber Derick

FWH / xHb / xDevStudio / SQLLIB
User avatar
Enrico Maria Giordano
Posts: 8770
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: CreateObject error

Post by Enrico Maria Giordano »

It seems that you don't have the required OLE server installed (ie. NFe_util_PL005a.util).

EMG
User avatar
Kleyber
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

Re: CreateObject error

Post 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,
Kleyber Derick

FWH / xHb / xDevStudio / SQLLIB
User avatar
Enrico Maria Giordano
Posts: 8770
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: CreateObject error

Post 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
User avatar
Kleyber
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

Re: CreateObject error

Post 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,
Kleyber Derick

FWH / xHb / xDevStudio / SQLLIB
User avatar
Antonio Linares
Site Admin
Posts: 42655
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 67 times
Been thanked: 96 times
Contact:

Post by Antonio Linares »

Kleyber,

What Windows version is he using ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Kleyber
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

Post by Kleyber »

Hi Antonio,

Windows XP SP3

Regards,
Kleyber Derick

FWH / xHb / xDevStudio / SQLLIB
User avatar
James Bott
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
AHF
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Post 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
User avatar
Kleyber
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

Post 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,
Kleyber Derick

FWH / xHb / xDevStudio / SQLLIB
Post Reply