Welcome, Guest
Username: Password: Remember me
Tools, Runtimes binaries, Toolchains, OS Scripts and OS Libraries, discussions, problems and suggestion
  • Page:
  • 1

TOPIC:

unidac components 1 year 3 months ago #17923

  • Angelo Mangiaracina
  • Angelo Mangiaracina's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 64
  • Thank you received: 0
Hi, I did install the devart unidac components in codetyphon 8.10 running on ubuntu 22.04 64 LTS. the package is installed, but I don't see the components in the palette

Please Log in or Create an account to join the conversation.

unidac components 1 year 3 months ago #17924

  • Angelo Mangiaracina
  • Angelo Mangiaracina's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 64
  • Thank you received: 0
Sorry there is a problem in the compilation. can you help me to solve it?
The compilers messages are:

Messaggi, avvertimenti: 4
Warning: other unit files search path (aka unit path) of "unidacvcl10 9.4" contains "/home/angelo/UniDAC/Source", which belongs to package "unidac10"
Warning: other unit files search path (aka unit path) of "dacvcl10 12.3" contains "/home/angelo/UniDAC/Source", which belongs to package "unidac10"
Warning: other unit files search path (aka unit path) of "unidac10 9.4" contains "/home/angelo/UniDAC/Source", which belongs to package "dac10"
Warning: other unit files search path (aka unit path) of "dac10 12.3" contains "/home/angelo/UniDAC/Source", which belongs to package "unidac10"
Hint: (11030) Start of reading config file /usr/local/codetyphon/fpc/fpc64/bin/x86_64-linux/fpc.cnf
Hint: (11031) End of reading config file /usr/local/codetyphon/fpc/fpc64/bin/x86_64-linux/fpc.cnf
Free Pascal Compiler version 3.3.1 [2023/06/07] for x86_64
Copyright (c) 1993-2023 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling dac10.pas
(3104) Compiling /home/angelo/UniDAC/Source/CRAccess.pas
(3104) Compiling /home/angelo/UniDAC/Source/CRConnectionPool.pas
(3104) Compiling /home/angelo/UniDAC/Source/DASQLMonitor.pas
(3104) Compiling /home/angelo/UniDAC/Source/DBAccess.pas
(3104) Compiling /home/angelo/UniDAC/Source/MemDataSet.pas
/home/angelo/UniDAC/Source/MemDS.pas(769,5) Error: (3285) Expected another 7 array elements
/home/angelo/UniDAC/Source/MemDS.pas(1351,21) Warning: (5093) Function result variable of a managed type does not seem to be initialized
/home/angelo/UniDAC/Source/MemDS.pas(2338,32) Error: (3285) Expected another 7 array elements
/home/angelo/UniDAC/Source/MemDS.pas(5476,67) Warning: (4110) Range check error while evaluating constants (10 must be between 0 and 4)
/home/angelo/UniDAC/Source/MemDataSet.pas(10) Fatal: (10026) There were 2 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /usr/local/codetyphon/fpc/fpc64/bin/x86_64-linux/ppcx64 returned an error exitcode

 

Please Log in or Create an account to join the conversation.

unidac components 1 year 3 months ago #17928

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
CodeTyphon Use the latest GIT version of FreePascal with a lot Modifications.

Can you post the "Type" with 7 missing array elements ?

 
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

unidac components 1 year 3 months ago #17929

  • Angelo Mangiaracina
  • Angelo Mangiaracina's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 64
  • Thank you received: 0
Yes the type is :
const
  DataTypeMap: array [TFieldType] of word = (
    // ftUnknown, ftString, ftSmallint, ftInteger, ftWord
    dtUnknown, dtString, dtInt16, dtInteger, dtUInt16,
    // ftBoolean, ftFloat, ftCurrency, ftBCD, ftDate, ftTime, ftDateTime,
    dtBoolean, dtFloat, dtCurrency, dtBCD, dtDate, dtTime, dtDateTime,
    // ftBytes, ftVarBytes, ftAutoInc, ftBlob, ftMemo, ftGraphic, ftFmtMemo,
    dtBytes, dtVarBytes, dtInteger, dtBlob, dtMemo, dtBlob, dtMemo,
    // ftParadoxOle, ftDBaseOle, ftTypedBinary, ftCursor, ftFixedChar, ftWideString,
    0, 0, 0, dtCursor, dtString, dtWideString,
    // ftLargeint, ftADT, ftArray, ftReference, ftDataSet, ftOraBlob, ftOraClob,
    dtInt64, dtObject, dtArray, dtReference, dtTable, 0, 0,
    // ftVariant, ftInterface, ftIDispatch, ftGuid
    dtVariant, 0, 0, dtGuid
    // ftTimeStamp, ftFMTBcd
    {$IFNDEF FPC}, dtSQLTimeStamp{$ELSE}, 0{$ENDIF}, dtFmtBCD
  {$IFDEF FPC}
    // ftFixedWideChar, ftWideMemo
    , dtWideString, dtWideMemo
  {$ENDIF}
  {$IFDEF VER10P}
    // ftFixedWideChar, ftWideMemo, ftOraTimeStamp, ftOraInterval
    , dtWideString, dtWideMemo, 0, 0
  {$IFDEF VER12P}
    // ftLongWord, ftShortint, ftByte, ftExtended, ftConnection, ftParams, ftStream
    , dtUInt32, dtInt8, dtUInt8, dtExtended, 0, 0, 0
  {$IFDEF VER14P}
    // ftTimeStampOffset, ftObject, ftSingle
    , dtSQLTimeStampOffset, 0, dtSingle
  {$ENDIF}
  {$ENDIF}
  {$ENDIF}
    );         

Please Log in or Create an account to join the conversation.

unidac components 1 year 3 months ago #17930

  • LuZZZZi
  • LuZZZZi's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 81
  • Thank you received: 1
Hi Angelo,

I think you have to add a unit prefix to the TFieldType like: DataTypeMap: array [unidacunit.TFieldType] Of Word where these values are defined.

Please Log in or Create an account to join the conversation.

unidac components 1 year 3 months ago #17951

  • Angelo Mangiaracina
  • Angelo Mangiaracina's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 64
  • Thank you received: 0
Sorry, but I don't understand where, may you explain better? I also did an install in ubuntu and lazarus and everything was done correctly. I don't understand what difference there could be with coddetyphon

Please Log in or Create an account to join the conversation.

unidac components 1 year 3 months ago #17953

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1105
  • Thank you received: 161
CodeTyphon use the latest FreePascal source with a lot of modifications.

Your problem can be solve, if you  make an "Advance find" to TyphonIDE directory
for the "Type" with the problem.

We can't give direct support to Commercial Packages. 
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1