Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all 2504 articles
Browse latest View live

Context help not installed

$
0
0

I have an installation of Rad Studio 10.2 installed on my PC that was installed for me, when I press F1 to invoke the context help I get the following error:

'RAD Studio's help is not installed. Please Re-install RAD Studio's documentation.'

Also, when using the drop down help menu there are no options under 'Help -> Delphi Help'.

I've tried to run the installer to add the help files but the only option I have is to uninstall and re-install RAD Studio which I don't want to do.

I've also downloaded the help files and copied them to  C:\Program Files (x86)\Embarcadero\Studio\19.0\Help\Doc which hasn't resolved the issue.

Is there a method to install the help files so that RAD Studio recognises them without having to reinstall the entire product?

Thank you.


MapView 10.2.3 application crash

$
0
0
Good afternoon! I use Rad Studio 10.2.3 and TMapView. My empty application with tmapview closes when it runs on android.
The exception is First chance exception at $ 9D8F91CB. Exception class EJNI with message 'Java class JGooglePlayServicesUtil could not be found'. Process ips_and.apk (5963).
Api key is created and all the settings are done according to the instructions.
When you run applications in Rad Studio 10.1, everything works fine.
What could be the problem ?

Building any android project fails (Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode)

$
0
0

Hi,

 Yesterday I upgraded to Tokio 10.2.3 and I have been able to build and run an android project.

 Today the same project and any other android project I try (including newly created blank new projects) fail to compile.

This is what I see within the delphi IDE, in the "messages" view:

Checking project dependencies...
Compiling TestRest.dproj (Debug, Android)
[Exec Error] The command "PATH C:\Program Files (x86)\Java\jdk1.8.0_131\bin;C:\Users\Public\Documents\Embarcadero\InterBase\redist\InterBaseXE7\IDE_spoof;C:\oracle32\client\product\12.2.0\client32\bin;C:\Program Files (x86)\Embarcadero\Studio\19.0\bin;C:\Users\Public\Documents\Embarcadero\Studio\19.0\Bpl;C:\Program Files (x86)\Embarcadero\Studio\19.0\bin64;C:\Users\Public\Documents\Embarcadero\Studio\19.0\Bpl\Win64;C:\ProgramData\Oracle\Java\javapath;C:\oracle32\client\product\12.1.0\client32\bin;C:\oracle\product\12.1.0\client64\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ssh;C:\Program Files (x86)\cvsnt;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\BerlinWork\RBuilder\bpl;C:\BerlinWork\RBuilder\bpl\Win64;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Git\cmd;C:\Users\carlo\AppData\Local\Microsoft\WindowsApps & "C:\Users\Public\Documents\Embarcadero\Studio\19.0\PlatformSDKs\android-sdk-windows\build-tools\22.0.1\dx.bat" --dex --output="C:\TokioWork\Smanettamenti\TestRest\Android\Debug\classes.dex" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\android-support-v4.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\cloud-messaging.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\fmx.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-analytics-v2.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-play-billing.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-play-licensing.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-play-services-ads-7.0.0.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-play-services-analytics-7.0.0.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-play-services-base-7.0.0.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-play-services-identity-7.0.0.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-play-services-maps-7.0.0.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-play-services-panorama-7.0.0.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-play-services-plus-7.0.0.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-play-services-wallet-7.0.0.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-play-services.dex.jar" " exited with code 2.
Failed
Elapsed time: 00:00:02.5

And this the ouput I get if I try to execute the failing command (the string starting with "PATH C:\.." in a command prompt window:

Merged dex A (520 defs/562.4KiB) with dex B (3 defs/2.1KiB). Result is 523 defs/693.6KiB. Took 0.1s
Merged dex A (523 defs/693.6KiB) with dex B (109 defs/113.5KiB). Result is 632 defs/1039.9KiB. Took 0.0s
Merged dex A (632 defs/1039.9KiB) with dex B (87 defs/113.2KiB). Result is 719 defs/1571.4KiB. Took 0.0s
Result compacted from 2332.6KiB to 771.2KiB to save 1561.4KiB
Merged dex A (719 defs/1571.4KiB) with dex B (3 defs/5.2KiB). Result is 722 defs/771.2KiB. Took 0.1s
Merged dex A (722 defs/771.2KiB) with dex B (25 defs/37.8KiB). Result is 747 defs/987.1KiB. Took 0.0s
Merged dex A (747 defs/987.1KiB) with dex B (511 defs/420.5KiB). Result is 1258 defs/1763.0KiB. Took 0.0s
Result compacted from 3175.9KiB to 1849.3KiB to save 1326.6KiB
Merged dex A (1258 defs/1763.0KiB) with dex B (408 defs/689.8KiB). Result is 1666 defs/1849.3KiB. Took 0.2s
Merged dex A (1666 defs/1849.3KiB) with dex B (522 defs/516.1KiB). Result is 2188 defs/2809.4KiB. Took 0.1s
Result compacted from 3472.9KiB to 2341.3KiB to save 1131.6KiB
Merged dex A (2188 defs/2809.4KiB) with dex B (26 defs/20.6KiB). Result is 2214 defs/2341.3KiB. Took 0.2s
Merged dex A (2214 defs/2341.3KiB) with dex B (273 defs/234.6KiB). Result is 2487 defs/3064.4KiB. Took 0.1s
Result compacted from 3790.6KiB to 2571.7KiB to save 1218.9KiB
Merged dex A (2487 defs/3064.4KiB) with dex B (19 defs/10.9KiB). Result is 2506 defs/2571.7KiB. Took 0.2s
Merged dex A (2506 defs/2571.7KiB) with dex B (117 defs/133.7KiB). Result is 2623 defs/3218.7KiB. Took 0.1s
Result compacted from 4107.9KiB to 2802.3KiB to save 1305.6KiB
Merged dex A (2623 defs/3218.7KiB) with dex B (141 defs/121.2KiB). Result is 2764 defs/2802.3KiB. Took 0.2s

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode;
        at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
        at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
        at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
        at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
        at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
        at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
        at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
        at com.android.dx.command.dexer.Main.run(Main.java:246)
        at com.android.dx.command.dexer.Main.main(Main.java:215)
        at com.android.dx.command.Main.main(Main.java:106)

 

Does anybody have any idea about how to fix this problem? what did I do to cause it?

Thank you!

P.S:  Yesterday I did run the "android SDK manager" and updated the "android SDK tools" while the IDE was still open... this is the only other thing I did.

 

 

 

 

Implementing Sage SDO with Delphi

$
0
0

Hi Has anyone any experience of using SAGE SDO with Delphi. The VB I am replacing with Delphi uses SageDataObject240.dll but trying to add as component to Delphi throws memory error.    Having viewed the VB code am confident to implement and reluctant to give Sage £1500 for a two minute answer.   Anyone able to help?   Thanks   Tony  

iOs Device System Status Bar

$
0
0

I have Installed Delphi 10.2.3, and I have a problem with the apps for iOs.

When  I compiled a basic application on iOs device (I have tested on iPhone 6), the system status bar is not visible, on iOs Simulator yes.

I saw the new form property SystemStatusBar, and is cheched visible.

Anybody Knows what is the problem?

Thank you.

Installation of multi platform problems

$
0
0

  Hello,   I have  buy Delphi 10.2 Tokyo Professional - Upgrade of RAD Studio, Delphi XE7 or later (Pro/Ent) - Named   Serial Number 24CK-YRDDM3-LV7JTG-NB9D plus   Mobile Add-On Pack for Delphi 10.2 Tokyo Professional - New User - Named HDL203MLENWB0   Serial Number 5UHL-8PADWA-K8QBEG-Q2ZD When I try to run I receive this error: [Exec Error] The command "PATH C:\Program Files (x86)\Java\jdk1.8.0_161\bin;C:\Users\Public\Documents\Embarcadero\InterBase\redist\InterBaseXE7\IDE_spoof;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files (x86)\Embarcadero\Studio\19.0\bin;C:\Users\Public\Documents\Embarcadero\Studio\19.0\Bpl;C:\Program Files (x86)\Embarcadero\Studio\19.0\bin64;C:\Users\Public\Documents\Embarcadero\Studio\19.0\Bpl\Win64;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;%DXVCL%\Library\RS25;%DXVCL%\Library\RS25\Win64;C:\Users\mcass\AppData\Local\Microsoft\WindowsApps;;C:\Program Files (x86)\DevExpress VCL\Library\RS25;C:\Program Files (x86)\DevExpress VCL\Library\RS25\Win64 & "C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.29039.2004\build-tools\22.0.1\dx.bat" --dex --output="C:\Users\mcass\Documents\Embarcadero\Studio\Projects\Android\Debug\classes.dex" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\android-support-v4.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\cloud-messaging.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\fmx.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-analytics-v2.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-play-billing.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-play-licensing.dex.jar" "c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\google-play-services.dex.jar" " exited with code 1. On tools, options, SDK Manager looks good but I'm not sure I'm not see on Windows10 menus, on Embarcadero tab the SDK Manager Tool. I need help. Wait from one your response. Thanks in advance, M.Cassani        

TBluetoothLE on Windows 10 - Unable to read characteristic

$
0
0

Hi,

I'm trying to create a simple Win32 application to read data from my Adafruit Bluefruit Feather 32u4 device using TBluetoothLE.

After hours of trying to get it running, I'm now at least able to discover the device, get the services and characteristics. But I still have three issues:

  1. OnEndDiscoverDevice is not called

    According to the documentation the event OnEndDiscoverDevice should be called automatically on the windows platform. On my system (latest Win 10, Lenovo x240) this never happens. I have to manually call BluetoothLE.CancelDiscovery.

    As a workaround I call the CancelDiscovery once the first device with the correct service is discovered.

    Is this a bug or do I misunderstand the documentation?
  2. Reading characteristics always fail (TBluetoothGattStatus = Failure)

    When I try to read the characteristic using

    BluetoothLE1.ReadCharacteristic(FBLEDevice, FMyChar);

    Reading onCharacteristicRead is always called with the status set to Failure. Subscribing to characteristics also does not work.

    I'm able to read the values from the device using the sample app provided by AdaFruit on Android. So it's not an issue with the device.
  3. When closing the program I get an EInvalidPointer-exception at 0000F22C once I performed a device discovery

    This happens with all programs (including ExploreDevicesLE, BLEScanner).

All issues also appear in the ExploreDevicesLE sample project. After implementing the workaround for the first issue I can query all services / characteristics, but when I try to read the value of a characteristic the program crashes.

Any hints what could be wrong or how I could further debug the issues?

Thanks,

Jochen

Do they post replays of online events such as "C++ Software Security Sins"?

$
0
0

I'm unable to listen to these live, but would really like to hear some of them, specifically the one I mentioned in the subject line.

 

 

 


Firemonkey Windows Main Menu - how to create a horizontal line separator?

$
0
0

Using 10.2.3 C++ to create a firemonkey Windows 32 application, how do I add a horizontal bar separator between two items on the main form pull down menu. Eg I have a "File" menu which when clicks opens up "Load" "Save" and "Exit". I want a horizontal bar between the "Save" item and the "Exit" item. Using VCL you just add a new item and set it to a dash and VCL does the rest. Not so with Firemonkey. So how do you do it? 

Regards Roger.

Mysqldbtables::TMySQLDatabase*

$
0
0

Environment: c++ builder xe with a  windows 8 target.

Problem:

repeated use of  new TMySQLDatabase(NULL) and delete appears to use more and more memory on a windows 8 target.(as if no delete had taken place.)  That is looking at memory use in the task manager memory use for the program in question.  . Elimination of the repeated use of this call stops the problem from occurring.

Note: This does not appear to be an issue on windows 10.

I would be happy to share code...

Update my RAD-X2 Professional

$
0
0

Hi

i purchased Delphi 3, 4, 5 and RAD Studio-XE2 professional in 2017, this software cant be upgraded? which would be cost? 

My registred user  is : AdvSoftware

 

Thanks and sorry for my english

 

Rafael Hernandez

How to fix TMemo's firemonkey problems?

$
0
0

I have problems using TMemo component in android applications. FMX TMemo shows a strange behaviour editing in Samsung S7 (Android 7.0), the lines changes their order while they are entered and is impossible to arrange (RSP-18614).

I don't know if anybody else has the same issue and how to work around to fix it until Embarcadero publish an updating or patch that corrects this bug.

Any ideas?

How to Repair Suspect Database in SQL Server?

$
0
0

I was trying to access my SQL Server 2014 database but keeps getting error 945, which is suspect database error showing below: 

 suspect database error

I have tried to bring it into Emergency mode by following instructions from here: 

https://alessandroalpi.blog/2017/09/12/best-solutions-to-repair-suspect-database-in-ms-sql-server/ 

Now it is in emergency Mode and I don't want to run Repair_Allow_Data_loss as I do not want to lose the data because I do not have a recent database backup and I need to get the database accessible.

How do I do this?

 

Delph 7 -> Delphi Tokyo portability; How to change tlabel background color

$
0
0

Hello, I am porting some Delphi 7 apps to Delphi Tokyo. It seems to me that my apps are not fully compatible with Delphi Tokyo because tlabel properties are managed differently, using Style Elements.  But this is not enough if you want to alter the background's color. I understand you have to use Firemonkey. As far as I am concerned, I think that this point is not well documented. There are many exemples on how to make use of the full sophisticated potential of Firemonkey. So far I haven't read anything or seen a simple exemple on how to simply change the background color of tlabel. Before using Firemonkey, I first want to fully run my Delphi 7 apps with Delphi Tokyo. The real point of the problem is not that it is different, but that the differences havent' been clearly documented and explained. This is kind of an hindrance to go further.  

In  case you mind answering, Best regards, antoine  

subscription renewal -- how to

$
0
0

I've received "last chance" emails to renew my Embarcadero Tools Maintenance Subscription but have been unable to figure out how on your new website.  Please advise.


Delphi Out of memory

$
0
0

Hello,

I have my application working smoothly in Delphi XE2 with BDE with PostgreSQL databse.
Now, it has been migrated to latest Delphi 10.2 update 3 with PostgreSQL database only.

This application is kept running continuously on the system 24*7*365. In a week or so, "Out of memory" error is displayed.

Earlier BDE was used which is replaced by FireDAC in this version. Windows socket has been replaced with INDY components.

Working of application is:

There are live instruments connected to the application, via UDP packets INDY receives data and on timer data is saved in the database.
Basically read methods of 3 INDY components are called again and again and timer in one minute to save this data.
INI files are created, read and freed on every read method.

It works fine for almost 8 days and after that it displays a message. The problem is, we cannot reproduce it on our end.
It needs live environment.
I tried with Fastmm4 and other tools. We have no leaks in our application as such.

Please suggest.

InterBase XE7

$
0
0

Hello, I'm running a Database Application created with Delphi 10 Seattle. I have two Computers Bugie_X10 running with Interbase XE7 Server Edition and FIBU_X10 running with Interbase XE7 Desktop Edition. Both Computers are connected and when running IBConsole everything runs and works correct. On the Bugie_X10 Computer also my Delphi 10 Application runs correct. But when I try to start the Application on the FIBU_X10 Computer I got the Message " Exception TDBXError in Modul KarteiNEU.exe bei 0026AD1E I/O Error for file 'Kartei' Error while trying to open file"

were is the mistake.
Thank you.
Reiner

 

Problem to launch Delphi 10.2.3

$
0
0

Hi, I used Delphi Professional edition with mobile plugin since at least Delphi XE4. I used lately Tokyo 10.2.2 and I'm under subscription. I have uninstalled it to install 10.2.3 with the iso. The installation is Ok but when I run Delphi 10.2 the license information dialog box. I have to enter my license number (I have try the both my Delphi license and my mobile pack licence) and when I click on OK, a dialog box says that I am not licensed for C++ Builder and Delphi don't start. I'm agree I have only Delphi but Delphi don't start... Thank you for your help. Grégory Bersegeay.

[Error] Unable to match bundle identifier "Project1" with AppID in all provisioning profiles

$
0
0

I am using XE10, OSX 10.11.5, IOS 9.3.2, XCode 7.3, PaServer 8.0.1.12.

For emulator i can debug programs without problem.

This error occurs all times when i try to build Delphi IOS device phone app.

(The same error is showed in the provisioning screen of options if the Configuration is not Development) If i select the correct Configuration, the screen shows

How can i fix this issue?

Thanks in advance.

Juan.

Debugger ignores TDS, fails to find debug info in EXE

$
0
0

I have a C++ Builder project that I can build and debug using the exact same project settings on my work computer, but when I cloned the repo and tried to debug at home, the debugger failed to find any debug symbols for the main executable. I can open up the modules window and manually set the symbols file to the TDS, so I have a work-around when I need it. I'm just frustrated that I cannot find whatever setting is causing RadStudio to not even look for the TDS file, despite the fact that it is created when the project is built.

I think I have a broken installation of RadStudio 10.2 Tokyo, but uninstalling and re-installing has not fixed this issue for me.

My system is a Dell laptop running Windows 10. My work system is a different model of Dell laptop running Windows 10. I have compared settings as much as I could think to, but I can't figure out how to fix this problem on my system.

Viewing all 2504 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>