Recently, we've upgraded a C++ Builder project from Builder 2009 to Builder 10.2 Tokyo. Afterwards, we added the new TRESTClient to our project. Now, everytime we try to close the application, it shows the error "abnormal program termination". This means that an abort() call is probably made. We've run the debugger until the end of the tWINMAIN function, which shows that it happens after the return. This shows that the exception is thrown during application cleanup. In the included callstack , it shows Data::Bind::Objectscope::Finalization, and UnregisterScope being called from there. This is most likely where the exception is thrown. This problem seems very similar to the issue in
forums.embarcadero.com/thread.jspa?threadID=228731
. Remy Lebeau describes this as a bug where, if an item is not found while unregistering, an exception is thrown. Any suggestions on how to fix this?
↧
"abnormal program termination" after adding TRESTClient to our project - by: Arjen
↧
Please, we want old forums back. - by: Dimitris
I am a D10.2.3 registered user. It is really sad to say that new forums are completely useless for me. Old forums were much much better than this confusion. And since this is an issue for years I call you out to fix this as a paying customer.
↧
↧
Delphi translator - by: Serhij
I have no expirirence in http programming and i would be very thankfull for a link to a as much detailed as possible tutorial on how to make a simplest translator using Delphi. or if someone is willing to share a ready for use example.
though i found one example, from 2014 , but they wrote that google translate won't be available soon, so i won't even start to compile it.
though i found one example, from 2014 , but they wrote that google translate won't be available soon, so i won't even start to compile it.
↧
TNetHTTPRequest - by: Thomas
Hi,
TNetHTTPRequest have events for OnRequestCompleted, , OnReceiveData, OnRequestError.
The Sender of the events OnRequestCompleted and OnRequestError can be casted to TNetHTTPRequest to get the source object of the event. But for OnReceiveData, I could not find a way to get the object like TNetHTTPRequest or at least TComponent to be able to get access to the initiator of the message. Any help?
KR Thomas
TNetHTTPRequest have events for OnRequestCompleted, , OnReceiveData, OnRequestError.
The Sender of the events OnRequestCompleted and OnRequestError can be casted to TNetHTTPRequest to get the source object of the event. But for OnReceiveData, I could not find a way to get the object like TNetHTTPRequest or at least TComponent to be able to get access to the initiator of the message. Any help?
KR Thomas
↧
Delphi Community Edition Licence Key - by: Andrew
Hello, I have just downloaded the Delphi Community Edition and it is requesting a licence key as part of the installation.
I haven't received any details regarding this. Do I have to request one or should it arrive automatically? It has been nearly two hours since I downloaded the installation executable.
Thanks.
I haven't received any details regarding this. Do I have to request one or should it arrive automatically? It has been nearly two hours since I downloaded the installation executable.
Thanks.
↧
↧
Delphi Community Install/Registration failure - by: Kevin
I'm using Win 10-64. I clicked on the
link
to download the Delphi Community edition and the installer was for Rad Studio. I received a license for "Delphi 10.2 Tokyo Community Edition" via email and that is properly installed according to the "Embarcadero License Management" app, but the license manager wizard keeps popping up with the message "No Valid License information found for Embarcadero Delphi 10.2.
How do I resolve this so that I can run Dephi Community? Do I need a separate serial number/ license for Rad Studio?
How do I resolve this so that I can run Dephi Community? Do I need a separate serial number/ license for Rad Studio?
↧
Thread management - by: Jacek
I would like to find out which threads have been terminated and which are still working as well as I would like to know if all of them have already ended. How can you check it? Is this possible? Threads are produced in the following way:
Can the threads created in this way use the same global variable? For example, write text in object String
Can the threads created in this way use the same global variable? For example, write text in object String
↧
QuickReport printing color to black and white printer driver - by: Todd
Hello,
Using Delphi 10.2 Update 1 and QuickReport 5.06 Professional Build 49.
We built our app with Delphi 10.2 Tokyo.
When we print QuickReports from a preview to a color printer using a black and white printer driver we are getting color images, not grayscale. The images are small icons like a checkmark.
When we print the same data to the same printer using the same black and white printer driver with our app compiled under Delphi XE2 we get grayscale images.
Any ideas on how to get the grayscale back in Delphi 10.2? The color looks nice but is very expensive and we don't want the color in printouts.
The images are color so that in PDFs and such they still look nice. We don't want to do grayscale images for that reason.
Cheers!
TJ
Using Delphi 10.2 Update 1 and QuickReport 5.06 Professional Build 49.
We built our app with Delphi 10.2 Tokyo.
When we print QuickReports from a preview to a color printer using a black and white printer driver we are getting color images, not grayscale. The images are small icons like a checkmark.
When we print the same data to the same printer using the same black and white printer driver with our app compiled under Delphi XE2 we get grayscale images.
Any ideas on how to get the grayscale back in Delphi 10.2? The color looks nice but is very expensive and we don't want the color in printouts.
The images are color so that in PDFs and such they still look nice. We don't want to do grayscale images for that reason.
Cheers!
TJ
↧
I need to change the system date time in code - by: Alan
I am using Delphi 10.1 Berlin. I have an app that is using the US date format of mm/dd/yyyy and a user in Europe is getting an error because of their format. Is there a way of changing the system settings when my program uses the date and change it back when done?
↧
↧
Seriously? - by: Donald
So, I was so excited to see that there was a community edition. I could not wait to download it. I played with Pascal on my Comodore 64 and Amiga, a long long time ago. Not a programmer, just a hobbyist. What a nightmare. It will not install, I have tried everything. Running as admin, turning off the firewall. It gets to the end and then just says "operation err" that it's no explanation...nothing. Then I find out from Embarcadero that the Community Edition isn't supported, not even to install it. Then to top it all off I got an email asking me if I was going to buy it... ummm... no, why would I spend 1000.00 on something that doesn't work? So, back to Lazarus. It has it's issues and it surely isn't as complete as RAD Studio, but at least it installs and runs. More than I can say for a product that costs as much as this one. Good luck to anyone who downloads this.. you're going to need it.
↧
Preparing Delphi deployment for the Android API level 26 August 2018 deadline - by: Inmatrix
Using Delphi 10.2.3, I have recently deployed my first Closed Alpha release using the Google Play console and was greeted with this message:
> Warnings
>
> Your app currently targets API level 14 and must target at least API
> level 26 to ensure it is built on the latest APIs optimized for
> security and performance.
>
> From August 2018, new apps must target at least Android 8.0 (API level
> 26). From November 2018, app updates must target Android 8.0 (API
> level 26).
There are several questions here with regards to Delphi deployment:
> Warnings
>
> Your app currently targets API level 14 and must target at least API
> level 26 to ensure it is built on the latest APIs optimized for
> security and performance.
>
> From August 2018, new apps must target at least Android 8.0 (API level
> 26). From November 2018, app updates must target Android 8.0 (API
> level 26).
There are several questions here with regards to Delphi deployment:
- Delphi 10.2.3 ships with Android SDK 24.3.3, why does it warns the target API is set to level 14 and how can this be changed? (is the only option to edit AndroidManifest.template.xml?)
- I used the Android SDK Manager tool to download the latest versions of the "Android SDK Tools", "Android SDK Platform Tools" and "SDK Platform" for Android 8.1 (API 27). However, when following the instructions ( docwiki.embarcadero.com/RADStudio/Tokyo/...dding_an_Android_SDK ), it instead installed SDK 25.2.5, even though I specified the "SDK API-Level" to "android-27" at the bottom of the wizard. How can I get SDK 27 to install?
- I downloaded the latest Android r17 NDK ( developer.android.com/ndk/downloads/ ), but Delphi's Add SDK wizard wont accept the NDK path at all (it shows the yellow triangle), is it even possible/recommended to use the latest NDK?
↧
Delphi 10.2 TClientDataSet truncates string fields to 20 characters - by: Scott
I have an application that has a TAdoQuery feeding a TDataSetProvider feeding a TClientDataSet that feeds a TDBGrid.
The string fields longer than 20 characters are truncated to 20 characters. This behavior only surfaced in the 10.2 environment. In Delphi 6, the fields showed without issue. When I push the field from the dataset to a showmessage, it is still truncated, so I don't think it is the TDbGrid that is the problem. Any insight? Thanks in advance!
The string fields longer than 20 characters are truncated to 20 characters. This behavior only surfaced in the 10.2 environment. In Delphi 6, the fields showed without issue. When I push the field from the dataset to a showmessage, it is still truncated, so I don't think it is the TDbGrid that is the problem. Any insight? Thanks in advance!
↧
Can't attach JPG files to message - by: Wallace
I'm trying to add a 40kb jpg file to my post.
I get the message
"Attachment image size exceed limit allowed by configuration"
The configuration is 0.1 mb or 100kb so what is wrong ?
I get the message
"Attachment image size exceed limit allowed by configuration"
The configuration is 0.1 mb or 100kb so what is wrong ?
↧
↧
Program works one day bu not the next? - by: Toby
Hi,
I have a program which essentially writes to an array, reads from it and plots the retrieved value in a chart on repeat.
Yesterday I compiled the program and ran, only to find an unexplainable OutOfMemory exception thrown after a few points.
I then altered the code slightly, plotting a constant rather than a value plucked from the array and the program worked as expected. I then tried referencing a different array and the program, again, worked as expected. Finally I reset the code to its original state and the program threw the same exception.
This morning I opened RAD Studio and compiled and ran the same program, as it was at the beginning of yesterday and it seems to work fine. I haven't made any changes to the original code.
Any suggestions as to why this might happen would be highly appreciated. I am using RAD Studio 10.1 with TeeChart (2017 version).
Thanks,
Toby
I have a program which essentially writes to an array, reads from it and plots the retrieved value in a chart on repeat.
Yesterday I compiled the program and ran, only to find an unexplainable OutOfMemory exception thrown after a few points.
I then altered the code slightly, plotting a constant rather than a value plucked from the array and the program worked as expected. I then tried referencing a different array and the program, again, worked as expected. Finally I reset the code to its original state and the program threw the same exception.
This morning I opened RAD Studio and compiled and ran the same program, as it was at the beginning of yesterday and it seems to work fine. I haven't made any changes to the original code.
Any suggestions as to why this might happen would be highly appreciated. I am using RAD Studio 10.1 with TeeChart (2017 version).
Thanks,
Toby
↧
Preparing Delphi deployment for the Android API level 26 August 2018 deadline - by: Inmatrix
Using Delphi 10.2.3, I have recently deployed my first Closed Alpha release using the Google Play console and was greeted with this message:
> Warnings
>
> Your app currently targets API level 14 and must target at least API
> level 26 to ensure it is built on the latest APIs optimized for
> security and performance.
>
> From August 2018, new apps must target at least Android 8.0 (API level
> 26). From November 2018, app updates must target Android 8.0 (API
> level 26).
There are several questions here with regards to Delphi deployment:
> Warnings
>
> Your app currently targets API level 14 and must target at least API
> level 26 to ensure it is built on the latest APIs optimized for
> security and performance.
>
> From August 2018, new apps must target at least Android 8.0 (API level
> 26). From November 2018, app updates must target Android 8.0 (API
> level 26).
There are several questions here with regards to Delphi deployment:
- Delphi 10.2.3 ships with Android SDK 24.3.3, why does it warns the target API is set to level 14 and how can this be changed? (is the only option to edit AndroidManifest.template.xml?)
- I used the Android SDK Manager tool to download the latest versions of the "Android SDK Tools", "Android SDK Platform Tools" and "SDK Platform" for Android 8.1 (API 27). However, when following the instructions ( docwiki.embarcadero.com/RADStudio/Tokyo/...dding_an_Android_SDK ), it instead installed SDK 25.2.5, even though I specified the "SDK API-Level" to "android-27" at the bottom of the wizard. How can I get SDK 27 to install?
- I downloaded the latest Android r17 NDK ( developer.android.com/ndk/downloads/ ), but Delphi's Add SDK wizard wont accept the NDK path at all (it shows the yellow triangle), is it even possible/recommended to use the latest NDK?
↧
Delphi Community Edition Licence Key - by: Andrew
Hello, I have just downloaded the Delphi Community Edition and it is requesting a licence key as part of the installation.
I haven't received any details regarding this. Do I have to request one or should it arrive automatically? It has been nearly two hours since I downloaded the installation executable.
Thanks.
I haven't received any details regarding this. Do I have to request one or should it arrive automatically? It has been nearly two hours since I downloaded the installation executable.
Thanks.
↧
FireDAC and MS SQL Server - by: Keith
I'm running Windows 7 SP1 64 bit. I just installed D10.2 Tokyo. I'm also using MS SQL 2012 for the bulk of my clients. I added a FireDAC connection object but there's no MS SQL option in the connection wizard. So I looked here:
http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Connect_to_Microsoft_SQL_Server_(FireDAC)
I downloaded and ran msodbcsql.msi (yes, the 64 bit one, it won't let you even run the 32 bit one if you are on a 64 bit machine) from here: https://www.microsoft.com/en-us/download/details.aspx?id=36434 which I thought I already had and discovered I did. I ran the "repair" option during installation and I still don't have an MS SQL option in my FireDAC connection object.
Any ideas on what I need to do to make this work?
Thanks,
Keith
I downloaded and ran msodbcsql.msi (yes, the 64 bit one, it won't let you even run the 32 bit one if you are on a 64 bit machine) from here: https://www.microsoft.com/en-us/download/details.aspx?id=36434 which I thought I already had and discovered I did. I ran the "repair" option during installation and I still don't have an MS SQL option in my FireDAC connection object.
Any ideas on what I need to do to make this work?
Thanks,
Keith
↧
↧
delphi tokyo ApplyUpdates issue - by: alain
Hi
With Delphi 10.2, dbaccess to connect MYSQL I just create an VCL application to connect MY SQL database (I already mad this kind or program on other Delphi verison). With a dbgrid and a dbnavigator. Everything work fine on my developpement pc but whe i try to run it on an other one I receive the error "Invalid parameter" After some investigation, I fond that the error came for the clientdataset1.ApplyUpdates. I've try to remove the button on the dbnavigator and create a new one on the side with the same function but i receive the same invalid parameter message when I run it on an other pc. Any ideal why I have this error if how to resolve this issue
Thanks
With Delphi 10.2, dbaccess to connect MYSQL I just create an VCL application to connect MY SQL database (I already mad this kind or program on other Delphi verison). With a dbgrid and a dbnavigator. Everything work fine on my developpement pc but whe i try to run it on an other one I receive the error "Invalid parameter" After some investigation, I fond that the error came for the clientdataset1.ApplyUpdates. I've try to remove the button on the dbnavigator and create a new one on the side with the same function but i receive the same invalid parameter message when I run it on an other pc. Any ideal why I have this error if how to resolve this issue
Thanks
↧
How to create animated GIF in ForeMonkey - by: Karu
I need to create animated GIF using the bitmaps that I have in memory. How can I create animated GIF using these bitmaps? Thank you.
↧
Using sqlite3.dll - by: Ofer
Hi,
i'm using C++ builder XE Version 15.0.3953.35171 under WIN7. I try to use sqlite3.dll from my application to get data from the database. When running a simple select query and trying to print the results It print OK (n-1) item and crushes at the [size= 12.16px; line-height: 1.3em]end of item (n-1). This is my code:[/size]
//
static int callback(void *data, int argc, char **argv, char **Name)
{
fprintf(stderr, "%s: ", (const char*)data);
for (int i=0; i<argc; i++)
{
printf("%s = %s\n", Name, argv ? argv : "NULL");
}
printf("\n");
return 0;
}
//
DBDLL_API int ExecDb (char *pSql)
{
int rc;
char* zErrMsg;
const char* data = "Callback function called";
char stam[128];
if (Db_Exec != NULL)
{
rc = Db_Exec (pDb, pSql, callback, (void*)data, &zErrMsg);
if( rc!=SQLITE_OK )
{
fprintf(stderr, "SQL error: %s\n", zErrMsg);
sqlite3_free(zErrMsg);
}
}
else
rc = GetLastError ();
return (rc);
}
What did i missed here ? are there any special definition i have to set in the compiler ?
Thanks
Ofer[/i][/i][/i]
i'm using C++ builder XE Version 15.0.3953.35171 under WIN7. I try to use sqlite3.dll from my application to get data from the database. When running a simple select query and trying to print the results It print OK (n-1) item and crushes at the [size= 12.16px; line-height: 1.3em]end of item (n-1). This is my code:[/size]
//
static int callback(void *data, int argc, char **argv, char **Name)
{
fprintf(stderr, "%s: ", (const char*)data);
for (int i=0; i<argc; i++)
{
printf("%s = %s\n", Name, argv ? argv : "NULL");
}
printf("\n");
return 0;
}
//
DBDLL_API int ExecDb (char *pSql)
{
int rc;
char* zErrMsg;
const char* data = "Callback function called";
char stam[128];
if (Db_Exec != NULL)
{
rc = Db_Exec (pDb, pSql, callback, (void*)data, &zErrMsg);
if( rc!=SQLITE_OK )
{
fprintf(stderr, "SQL error: %s\n", zErrMsg);
sqlite3_free(zErrMsg);
}
}
else
rc = GetLastError ();
return (rc);
}
What did i missed here ? are there any special definition i have to set in the compiler ?
Thanks
Ofer[/i][/i][/i]
↧