FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour CreateObject error
Posts: 581
Joined: Tue Oct 11, 2005 11:28 AM
CreateObject error
Posted: Sat Nov 29, 2008 04:35 PM

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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: CreateObject error
Posted: Sat Nov 29, 2008 04:39 PM

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

EMG

Posts: 581
Joined: Tue Oct 11, 2005 11:28 AM
Re: CreateObject error
Posted: Sat Nov 29, 2008 04:41 PM
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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: CreateObject error
Posted: Sat Nov 29, 2008 04:44 PM
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
Posts: 581
Joined: Tue Oct 11, 2005 11:28 AM
Re: CreateObject error
Posted: Sat Nov 29, 2008 04:48 PM
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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
CreateObject error
Posted: Sat Nov 29, 2008 09:53 PM

Kleyber,

What Windows version is he using ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 581
Joined: Tue Oct 11, 2005 11:28 AM
CreateObject error
Posted: Sun Nov 30, 2008 11:49 AM

Hi Antonio,

Windows XP SP3

Regards,

Kleyber Derick



FWH / xHb / xDevStudio / SQLLIB
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
CreateObject error
Posted: Mon Dec 01, 2008 12:57 AM

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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
CreateObject error
Posted: Mon Dec 01, 2008 06:47 PM

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

Regards

Antonio H Ferreira
Posts: 581
Joined: Tue Oct 11, 2005 11:28 AM
CreateObject error
Posted: Mon Dec 01, 2008 08:43 PM

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

Continue the discussion