EgonHugeist,
Do you really need such big/count of varchar-fields?
hi-hi
you can not even imagine how sometimes subverted. For all that the use of the cursor with long fields does not mean that these fields are stored in one table. Just the customer believes that it is necessary that way! And have to create a view ...
Also, pay attention pascal-programmers that have used the system in DOS memory model LARGE.
and, incidentally, as I mentioned earlier, in C + + is a data type that uses a segment of 65535 bytes. So why use the "stub" in the 32K?
in Pascal, you can also create a simple array or a wrapper class for a size of 65 kilobytes, or just for each field to dynamically allocate the necessary memory, which, between you and me will be much more correct!
Incidentally, when I'm using PostgreSQL, I just comment those lines, without any consequences for the stability of the program.
5 min later.....
Oh, my God!
Just looked at the FAQ XE2, finally ... FINALLY the developers have corrected the definition!
Code: Select all
Delphi
type TByteArray = array [0..65535] of Byte;
C++
typedef System::StaticArray<System::Byte, 65536> TByteArray;
In C + + is a good function
sizeof (type), probably in Pascal is anything like that. It may cost you to replace the constant?
oops... sory. this definition in module
Vcl.Imaging.pngimage.
however, to define the type and use it - a piece of cake. but it is better to dynamic memory allocation. Indeed, the structure of the cursor line is always known in advance.