Problem with build NONDLL Cube

Discussion forum for PivotCube VCL users. Common questions. Bug and problem reports

Moderator: Alex Zencovich

Problem with build NONDLL Cube

Postby DandyS » Wed Dec 13, 2006 2:19 pm

Hi , I have problem with run program with nondll package.
I used PivotCube with zcube.DLL and I want to replace with NONdll package.

I have Delphi7 and PivotCube v. 7.4.1.1 (in older version I have similar problem).

Just to be sure I installed delphi in clear computer with WinXPP and passed along your directions in readme.txt.

1. Move to NONDLL directory -- I unpacked my souces to c:\Program Files\PivotCube VCL\

2. COpy (if required) files from DELPHI5 or DELPHI6 to NONDLL-- Skiped this (I have D7)

3. Set IDE Library path to NONDLL directory. Be sure you have not IDE Library path to standard PivotCube VCL -- made

4. Open pivotcube.dpk. For Delphi 2005/2006 choose Win32 -- I opened c:\Program Files\PivotCube VCL\nondll\delphi7\pivotcube.dpk

5. IF YOU BUILD PACKAGE as RUNTIME package, remove designide.bpl from packages list!!! --skiped I build without runtime package

6. Compile package --ok

7. Install package --ok

up to now fully corect...

Then I create simple program with Cube, Map and Grid (or only Pivot Cube). In delphi i compile and run program with no problem. But when I make build project, then I cannot run my program.

error: Project Project1.exe raised exception class EOleSysError with message "error reading typed library or DLL". ProcessStoped...

when I continue then it show message Runtime error 217 as 0047A1B1 and terminate my program.

Error raised in Measure_SRC.pas at line 704

initialization
{$IFNDEF _NONDLL}
TAutoObjectFactory.Create(ComServer, TMeasure, Class_Measure,
ciMultiInstance, tmApartment); //<-here is my error
{$ENDIF}
end.


Do you have any idea, what's wrong or where I made mistake?

Thanks
DandyS
User
 
Posts: 10
Joined: Thu Nov 23, 2006 8:56 am
Location: CZ

Postby AlexZencovich » Wed Dec 13, 2006 2:29 pm

Hmm..you are right, step 3 may be wrong.

You should set _NONDLL defined for your application too, because if you click on IDE->Build All it will rebuild all pas files, including PivotCube VCL sources.
But not in NONDLL mode because it defined in PivotCube.dpk only.
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Postby DandyS » Wed Dec 13, 2006 3:08 pm

wow, it was my problem.
thanks
DandyS
User
 
Posts: 10
Joined: Thu Nov 23, 2006 8:56 am
Location: CZ


Return to PivotCube VCL

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron