I have Delphi Tokyo Enterprise and get the error message "access violation ... fmx250.bpl" when developing cross devices application.Delphi is completely new installed under Windows 7. Is there a solution?
Access Violation fmx250.bpl
How to use TabControl ?
Hello
About TabControl .. Please tell me the C++ sample code of how to dynamically increase or decrease the number of Tabs.
Embarcadero C++ Tokyo 10.2
Multi-device application
IDE with constant error of "Invalid Point Operation"
Guys, I have a problem that has got me pretty messed up, my IDE has presented constant errors of "Invalid Point Operation".I thought I might have some connection to third-party components, so I uninstalled all of them, leaving only the native Delphi components installed. However, the problem continues.The problem occurs randomly, sometimes with a few minutes of IDE use, other times after one or two hours of work. Apparently there is no "trigger" to trigger the problem, it just pops on the screen and this forces me to close and open the IDE again.Sometimes, I start a new project, I include some components randomly ... TImage, TButton, TEdit ... and suddenly the problem happens.I use:Windows 10 HomeDelphi Tokyo 10.2.2Thankful,Alexandre Amaral NT
Restclient development
I am trying to access a rest service using Trestclient, Trestrequest and Trestresponse. the rest service calls back on port 8182 with a http post request that contains a body that has raw data as json. How can I use Delphi to access the body content of the http Post.
Thanks
Can't expand documentation tab Delphi 10.2 tokyo
The documentation tab in Delphi 10.2.2 will not expand. It is unusable. It takes up about an inch and a half and has no gripper on the window on the right. I can move the window to the left but can't expand it. Is there something I'm missing or is this a bug in the program.
How to Back Color Setting (Multi Device Application)
Hello
Please tell me how to change the background color of TLabel dynamically.
There is no item to change the background color in the property of TLabel ?
C++ Tokyo 10.2.1 Multi Device application
Thanks
FireDAC component TFDBatchMoveSQLWriter does not handle TEXT BLOB with NULL correctly
The FireDAC component TFDBatchMoveSQLWriter convert ftMemo and ftWideMemo fields/columns with NULL value to empty string.
I have already written a Embarcadero Quality report on this in CASE RSP-19731, but wonder if there are some way I can get around the problem? This while I wait for the bug to be corrected and a new FireDAC code is released.
I have tried a few ways to get around it myself, but have then only hit other bugs in FireDac (see CASES RSP-19732, RSP-19733, RSP-19735 and RSP-19746).
FDBatchMove SQL Writer to PostgreSQL is inserting an empty string in TEXT type columns instead null values
Hi, I'm new in this community,
In a new Job, I'm started learning how to use Embarcadero Delphi XE7 with FireDac and my first duty is migrate a large database from SQLSERVER2014 to PostgreSQL 10. My RAD version is 21.0.17017-3725
I have an issue in my destination DB (Postgres) using the component FDBatchMoveSQLWriter, FDBatchMove is not inserting NULL values in TEXT type columns, empty strings are inserted instead (these values are null in the origin table). NULL is not equal to Empty.
There is an option called StrsEmpty2Null located in Connection>Format Options, but some tables had a column constraint that restricts NULL values from being inserted in TEXT type fields and this results into a big error message. Also using it will insert null values in records that originally are meant to be empty strings. So this is not an option in my case as far as I know.
On the other hand, using FDBatchMoveDataSetWriter (Way slower) the NULL values in TEXT type columns are inserted correctly (as nulls), but for a reason that I ignore the actual text is converted to Asian characters. The origin DB General Collation is LATIN1_CI_AS and the Destination is UTF8.
I'm not using Latin1 Collation at the destination DB becasue UTF8 accented vocals were not inserted the right way (Some UTF8 Characters are not allowed in Latin1).
My DB reader in both scenarios is FDBatchMoveSQLReader from a MSSQL-2014 database.
Many thanks in advance.
Migration issues from Interbase to SQL Server 2014
I'm developing an application to migrate data from Interbase (non-Unicode) to SQL Server 2014. The FireDAC TFDBatchMove utility works fine for most of the data. The problems I run into are with BLOB fields (both Type 0 (Binary) and text).
1) BLOB binary data is corrupted (or unreadable) in SQL Server. I've tried using varchar(max), varbinary(max), and nvarchar(max) as target field type. We typically store PDF and Excel files in in these BLOB fields.
2) BLOB text data transfers fine for the most part. The problem here is related to size. For example if a large XML is stored in the text BLOB it throws an error on transfer Param Size > 8002.
Any help or suggestions are appreciated.
Error FireDac, TFDBatchMove, CommitCount
I need to do the transaction management, but:
Help TFDBatchMove.CommitCount:
"The CommitCount property is set to 100
by default. Setting CommitCount to 0
disables transaction handling."
<**< zero disables transaction handling >**>
Code:
BatchMove.CommitCount:= 0;
Compiling, ok
Execute program, error:
"[FireDAC][Comp][DM]-611. CommitCount must be greater than zero"
Thanks
Comparision of double values
Hi,
I am doing double value comparision check as shown in below code
double m_Initial = 5.0;
double m_final = 5.1;
if(((m_final) - (m_Initial + 0.1)) > 0)
{
// True
}
else
{
// false
}
It is going to "True" case always. And also, I tried comparison below code using: "EPSILON" / "DBL_EPSILON"
double m_Initial = 5.0;
double m_final = 5.1;
if(((m_final) - (m_Initial + 0.1)) > EPSILON)
{
// True
}
else
{
// false
}
Please suggest common solution, for doing comparison of double values.
C++ Builder Code Structure Empty!
Hi,
I updated my PC to Windows 10 and since then the code structure panel is empty. Anyone else have this problem?
Embarcadero C++ Builder TADOConnection try catch
I write DLL with Embarcadero C++ Builder XE5. Platform Win64. I use TADOConnection to connect a database on MS SQL Server.
//======
try {SQLConnection->Connected = true;}
catch(...)
{
// exception handling
};
//======
Everything works fine until the server is unavailable for one reason or another. The fact that the usual method of catching exceptions (try catch) doesn't work, if you run the app not from under IDE, and the program crashes. There is a suspicion that it's a bug in XE5. In the debugger the message is '[DBNETLIB][ConnectionOpen(Connect()).]SQL Server does not exist or access denied'. There was no the flag "Build with runtime packages" in linker options. I set it. The error was catched. But now i need to put near my dll some bpl's. It is not good. If anyone has faced this or a similar problem and solved it, please suggest a solution. Thank's a lot.
Borland C++ Builder 6.0 registration
Cannot register Borland C++ Builder 6.0 after apgrade of my PC. Is it possible to reset registration counter?
Component menu has no options
We had a Windows XP machine with Delphi 2006, and the hard drive failed. We had the files recovered from the hard drive, and are trying to restore the Delphi 2006 installation from the recovered files (We no longer have the Delphi 2006 installation discs). We copied over the software files and Borland registry keys, and I was able to register the software using my key. However, when I try to access the Component menu to install some custom packages/libraries, there are no options underneath the Component menu. How can we reenable the options under the component menu?
Spent hours creating a View for 5 Inch Phone but the IDE keeps changing it back!
This is really driving me mad.
I am creating a C++ Builder Fire-monkey app targeting Android devices mainly. I have all the app working fine under Master View, it runs fine on my 7 tab without changes. My target device though is a 5" android phone, so I selected 5 Inch view from the IDE and started making the changes I require to make the screen fit the device. So I spent several hours shrinking and moving items to fit into the 5 phone view and sent it on multiple occasions to my connected phone to see how it looks. Then I wanted a break, so I did what everyone does, saved (again) and closed the IDE.
When I came back and started the IDE, launched the project and selected the 5 Android Phone view, all the text sizes had reset to what the were before I started! The color changes had been saved but not the important resizing work I spent ruddy hours on!
Is this a known IDE issue using C++ Builder Tokyo 10.2.1
Delphi XE7 help
01/12/118 I am trying to use the Delphi Help, but I receive the following message: "RAD Studio's help namespace is not defined. Please reinstall RAD Studio's documentation." I have tried installing "delphi_xe7_upd1_esd" making sure that the documentation option was enabled. Any ideas?
How to write unit tests for Android in C++
Is it possible to write tests with DUnitX and build for Android with C++ Builder 10.2.2 (bccaarm )? My DUnitX test projects don't offer Android or iOS as target platforms, so I guess I have to build a Firemonkey app. With no console output, where do test results go? I hope someone has found a way.
Thanks in advance!
BLE Notifications corrupted data
I'm trying to interact with a custom BLE device that uses notifications. When the notifications are received in Delphi, using the following in Characteristic read
procedure TForm1.BLECharacteristicRead(const Sender: TObject;
const ACharacteristic: TBluetoothGattCharacteristic;
AGattStatus: TBluetoothGattStatus);
...
L:=length(ACharacteristic.GetValue);
HexStr:=' =';
for I := 0 to L-1
do begin
HexStr:=HexStr+inttohex(ACharacteristic.GetValueAsInt8(I),2);
end;
LogList.Lines.Add(HexStr);
the data I see is
=010000010100FFFFFF8002000000FFFFFFC0FFFFFF8E00000000000000
=020000010200037F000000FFFFFF8022000000FFFFFF80510100
=2100000121000F00000000FFFFFF8000FFFFFF80000000000000
=2200000122000F00010000FFFFFF8000FFFFFF80000000000000
=2300000123000F00020000FFFFFF8000FFFFFF80000000000000
=2400000124000F00030000FFFFFF8000FFFFFF80000000000000
but when I use the BLE tool nRF Connect, I get
Notification received from 15db2002-a532-4c8e-978a-49b768439405, value: (0x) 01-00-00-01-01-00-80-02-00-00-00-C0-8E-00-00-00-00-00-00-00
Notification received from 15db2002-a532-4c8e-978a-49b768439405, value: (0x) 02-00-00-01-02-00-03-7F-00-00-00-80-22-00-00-00-80-51-01-00
Notification received from 15db2002-a532-4c8e-978a-49b768439405, value: (0x) 21-00-00-01-21-00-0F-00-00-00-00-80-00-80-00-00-00-00-00-00
Notification received from 15db2002-a532-4c8e-978a-49b768439405, value: (0x) 22-00-00-01-22-00-0F-00-01-00-00-80-00-80-00-00-00-00-00-00
Notification received from 15db2002-a532-4c8e-978a-49b768439405, value: (0x) 23-00-00-01-23-00-0F-00-02-00-00-80-00-80-00-00-00-00-00-00
Notification received from 15db2002-a532-4c8e-978a-49b768439405, value: (0x) 24-00-00-01-24-00-0F-00-03-00-00-80-00-80-00-00-00-00-00-00
Since I have access to the device firmware, i've been able to confirm that the nRF Connect matches what the device is sending .
What would cause the ACharacteristic to be corrupted?
Is this question published to the sites?
Hi Sir,
If I leave a question, is the question is confidential or published?