Problem with library "TeeSurfa" at Console Wizard

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Elisabet
Newbie
Newbie
Posts: 22
Joined: Fri Nov 15, 2002 12:00 am
Location: Madrid

Problem with library "TeeSurfa" at Console Wizard

Post by Elisabet » Thu Nov 22, 2007 1:18 pm

Hello,

In Borland C++ Builder 6.0, I am working in a project that is run in Batch mode, I mean from the windows command lines. This project has been created as a Console Wizard (C++, “Use CLX” and “use Console Application” activated). Now I want to include a graphic plotted by TeeChart 6 which uses a series type TcolorGridSeries. When I include a Form with this Tchart, the project compiles correctly but when the executable is launched it shows the following error:
“Project raised exception class EaccessViolation with message ’Access violation at address 0042FEB0’”
I realise that the problem comes at including a form with the following library:

#include "TeeSurfa.hpp"
#pragma link "TeeSurfa"

I have checked that any other forms with others libraries works correctly. Some examples with Teechar libraries in which there is no error exception:
#pragma link "TeeEdit"
#pragma link "TeeCumu"

Any help will be very grateful since I have no idea how to solve this problem.
Thanks for your attention,

Elisabet

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Nov 22, 2007 1:52 pm

Hi Elisabet,

You could try registering all series styles at runtime using TeeEditPro as described here.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Elisabet
Newbie
Newbie
Posts: 22
Joined: Fri Nov 15, 2002 12:00 am
Location: Madrid

Post by Elisabet » Thu Nov 22, 2007 3:12 pm

Hello again,

Thank you so much for your fast response. I don’t really understand how I can register the series that I need. I’ve tried to include in the library “TeeEditPro.hpp” in the file “unit.cpp” of the corresponding graphic form. Unfortunately, the error keeps showing.

//-----------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "TeeEditPro.hpp" // <- LIBRARY INCLUDED
#include "TeeSurfa.hpp"
//………………………………….

What else could I do?
Thank you so much for your help,

Elisabet

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Nov 26, 2007 1:01 pm

Hi Elisabet,

does the same problem happens creating a Win app, and adding the Chart and Series in design mode ?
In this way you can chech the required libraries which has been added dinamically to you code and then compare with the ones you have added manually to your app.

Elisabet
Newbie
Newbie
Posts: 22
Joined: Fri Nov 15, 2002 12:00 am
Location: Madrid

Post by Elisabet » Tue Nov 27, 2007 9:37 am

Thank you so much for your help. At the end, I found the solution. It was a problem with the compilation options.

In case someone has the same error as I had, I attach the main features of the file .bpr which compiles correctly. Thanks again for the support.

<?xml version='1.0' encoding='utf-8' ?>
<!-- C++Builder XML Project -->
<PROJECT>
<MACROS>
....
<SPARELIBS value="rtl.lib vcl.lib TeePro6C6.lib Tee6C6.lib TeeUI6C6.lib"/>
<PACKAGES value="vcl.bpi rtl.bpi vclx.bpi bcbsmp.bpi dbrtl.bpi adortl.bpi vcldb.bpi
qrpt.bpi bdertl.bpi vcldbx.bpi dsnap.bpi cds.bpi bdecds.bpi ibxpress.bpi
visualclx.bpi visualdbclx.bpi vclie.bpi xmlrtl.bpi inet.bpi inetdbbde.bpi
inetdbxpress.bpi inetdb.bpi nmfast.bpi bcbie.bpi soaprtl.bpi dclocx.bpi
dbexpress.bpi dbxcds.bpi indy.bpi bcb2kaxserver.bpi TeeDB6C6.bpi
Tee6C6.bpi TeeUI6C6.bpi TeeLanguage6C6.bpi TeePro6C6.bpi TeeQR6C6.bpi
TeeImage6C6.bpi TeeGL6C6.bpi "/>
<PATHCPP value=".;..\Source\Reader_Writer\ICDreaders;..\Source\Reader_Writer\ICDreaders;..\Source\Reader_Writer\ICDreaders;..\Source\Reader_Writer\ICDreaders;..\Source\Reader_Writer\ICDreaders;..\Source\Reader_Writer\ICDreaders;..\Source\Reader_Writer\ICDreaders;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec\navmodul;..\Source\USERrec\navmodul;..\Source\USERrec\navmodul;..\Source\Reader_Writer\ICDreaders;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec\navmodul;..\Source\USERrec\navmodul;..\Source\USERrec\navmodul;..\MMI;..\MMI"/>
<PATHPAS value=".;"/>
<PATHRC value=".;"/>
<PATHASM value=".;"/>
<DEBUGLIBPATH value="$(BCB)\lib\debug"/>
<RELEASELIBPATH value="$(BCB)\lib\release"/>
<LINKER value="ilink32"/>
<USERDEFINES value=""/>
<SYSDEFINES value="NO_STRICT;_NO_VCL;USEPACKAGES"/>
...
<INCLUDEPATH value="$(TEEINCPATH);$(BCB)\Include\Teechart;..;$(BCB)\include;$(BCB)\include\vcl;..\MMI;\source;$(BCB)\Projects;$(BCB)\Projects\Bpl;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\DLL;..\MDI"/>
<LIBPATH value=""..\..\..\..\Steema Software\TeeChart 6 for C++ Builder 6\CBuilder6\Include";..;"..\..\..\..\Steema Software\TeeChart 6 for C++ Builder 6\CBuilder6\Lib";"C:\Archivos de programa\Borland\CBuilder6\Include\Teechart";Prueba_console_wizard;$(BCB)\Projects\Lib;$(BCB)\lib\obj;$(BCB)\lib;$(TEELIBPATH);..\MMI;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\DLL"/>
<WARNINGS value="-w-par"/>
<OTHERFILES value=""/>
</MACROS>
<OPTIONS>
<CFLAG1 value="-Od -H=$(BCB)\lib\vcl60.csm -Hc -Vx -Ve -X- -r- -a8 -b- -k -y -v -vi- -tWC
-tWM -c"/>
<PFLAGS value="-N2..\Source\Objects -N0..\Source\Objects -$YD -$W -$O- -$A8 -v -JPHNE -M"/>
<RFLAGS value=""/>
<AFLAGS value="/mx /w2 /zd"/>
<LFLAGS value="-I..\Source\Objects -D"" -ap -Tpe -x -Gn -v"/>
<OTHERFILES value=""/>
</OPTIONS>
<LINKER>
<ALLOBJ value="c0x32.obj $(PACKAGES) $(OBJFILES)"/>
<ALLRES value="$(RESFILES)"/>
<ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mt.lib"/>
<OTHERFILES value=""/>
</LINKER>
....

[Excluded Packages]
c:\archivos de programa\borland\cbuilder6\Bin\dclite60.bpl=Borland Integrated Translation Environment

[HistoryLists\hlIncludePath]
Count=13
Item0=$(TEEINCPATH);$(BCB)\Include\Teechart;..;$(BCB)\include;$(BCB)\include\vcl;..\MMI;$(BCB)\Projects;$(BCB)\Projects\Bpl;$(BCB)\include\vcl;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\DLL;..\MDI
Item1=$(TEEINCPATH);C:\Archivos de programa\Borland\CBuilder6\Include\Teechart;..;Prueba_console_wizard;$(BCB)\include;$(BCB)\include\vcl;$(TEEINCPATH);$(BCB)\Include\Teechart;$(BCB)\include;..\MMI;$(BCB)\Projects;$(BCB)\Projects\Bpl;$(BCB)\include\vcl;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\DLL;..\MDI
Item2=$(TEEINCPATH);$(BCB)\Include\Teechart;$(BCB)\include;..\MMI;\source;$(BCB)\Projects;$(BCB)\Projects\Bpl;$(BCB)\include\vcl;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\DLL;..\MDI
Item3=$(BCB)\include;$(TEEINCPATH);$(BCB)\Include\Teechart;..\MMI;\source;$(BCB)\Projects;$(BCB)\Projects\Bpl;$(BCB)\include\vcl;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\DLL;..\MDI
Item4=$(TEEINCPATH);$(BCB)\Include\Teechart;..\MMI;;$(BCB)\Projects;$(BCB)\Projects\Bpl;$(BCB)\include;$(BCB)\include\vcl;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\DLL;..\MDI
Item5=..\MMI;$(TEEINCPATH);$(BCB)\Projects;$(BCB)\Projects\Bpl;$(BCB)\include;$(BCB)\include\vcl;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\DLL;..\MDI
Item6=$(BCB)\Projects;$(BCB)\Projects\Bpl;$(TEEINCPATH);$(BCB)\include;$(BCB)\include\vcl;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\MMI;..\DLL;..\MDI
Item7=$(BCB)\include;$(BCB)\include\vcl;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\MMI;..\DLL;..\MDI
Item8=$(BCB)\include;$(BCB)\include\vcl;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\MMI;..\DLL
Item9=$(BCB)\include;$(BCB)\include\vcl;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\MMI
Item10=$(BCB)\include;$(BCB)\include\vcl;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul
Item11=C:\Archivos de programa\Borland\CBuilder6\Projects;$(BCB)\include;$(BCB)\include\vcl;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul
Item12=$(BCB)\include;$(BCB)\include\vcl

[HistoryLists\hlLibraryPath]
Count=13
Item0=..\..\..\..\Steema Software\TeeChart 6 for C++ Builder 6\CBuilder6\Include;..;..\..\..\..\Steema Software\TeeChart 6 for C++ Builder 6\CBuilder6\Lib;C:\Archivos de programa\Borland\CBuilder6\Include\Teechart;Prueba_console_wizard;$(BCB)\Projects\Lib;..\..\..\Steema Software\TeeChart 6 for C++ Builder 6\CBuilder6\Lib;$(BCB)\lib\obj;$(BCB)\lib;$(TEELIBPATH);$(BCB)\Include\Teechart;$(BCB)\lib;..\MMI;$(BCB)\lib\obj;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\DLL
Item1=$(TEELIBPATH);$(BCB)\Include\Teechart;$(BCB)\lib;..\MMI;$(BCB)\lib\obj;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\DLL
Item2=$(BCB)\lib;$(TEELIBPATH);$(BCB)\Include\Teechart;..\MMI;$(BCB)\lib\obj;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\DLL
Item3=$(TEELIBPATH);$(BCB)\Include\Teechart;..\MMI;$(BCB)\lib\obj;$(BCB)\lib;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\DLL
Item4=C:\Archivos de programa\Steema Software\TeeChart 6 for C++ Builder 6\CBuilder6\Include;C:\Archivos de programa\Borland\CBuilder6\Projects;..\MMI;$(TEELIBPATH);$(BCB)\lib\obj;$(BCB)\lib;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\DLL
Item5=..\MMI;$(TEELIBPATH);$(BCB)\lib\obj;$(BCB)\lib;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\DLL
Item6=$(TEELIBPATH);$(BCB)\lib\obj;$(BCB)\lib;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\MMI;..\DLL
Item7=C:\Archivos de programa\Steema Software\TeeChart 6 for C++ Builder 6\CBuilder6\Lib;$(BCB)\lib\obj;$(BCB)\lib;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\MMI;..\DLL
Item8=$(BCB)\lib\obj;$(BCB)\lib;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\MMI;..\DLL
Item9=$(BCB)\lib\obj;$(BCB)\lib;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul;..\MMI
Item10=$(BCB)\lib\obj;$(BCB)\lib;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul
Item11=C:\Archivos de programa\Borland\CBuilder6\Projects;$(BCB)\lib\obj;$(BCB)\lib;..\Source\Library_eetes;..\Source\Reader_Writer\ICDreaders;..\Source\USERrec;..\Source\USERrec\navmodul
Item12=$(BCB)\lib\obj;$(BCB)\lib

...

[Debugging]
DebugSourceDirs=$(BCB)\source\vcl

...

Post Reply