Quantcast
Channel: Recent Topics - Forum - Embarcadero Community - Embarcadero Community
Viewing all 3677 articles
Browse latest View live

Compiling Error - by: Daniel

$
0
0
I have issue where uses is marked red,

Checking project dependencies...
Compiling Project1.dproj (Debug, Win32)
The imported project file could not be loaded. '', hexadecimal value 0x0E, is an invalid character. Line 33, position 65. C:\Users\user\AppData\Roaming\Embarcadero\BDS\19.0\environment.proj
[Fatal Error] The imported project file could not be loaded. '', hexadecimal value 0x0E, is an invalid character. Line 33, position 65. C:\Users\user\AppData\Roaming\Embarcadero\BDS\19.0\environment.proj


10.2.3 Delphi hangs on startup on Build 1806 and above of Windows 10 - by: Mike

$
0
0
When 10.2.3 Delphi Community edition is installed under the release build of Windows 10, it starts right up without delay. But after installing build 1806 or newer releases, it seems to hangup on startup.

Sometimes I can get the IDE to launch if I launch Chrome AFTERwards, sometimes, it doesn't help.

Has anyone noticed this, or is it just me? I'm currently running Windows 10, build 18267.1001 and am having the same results.

Anyone have any thoughts or solutions for this issue?

Thank you.

Mike.

Android: cannot open file - No such file or directory - by: Karu

$
0
0
In an android app, I am trying to open a text file. The text file is already added to the deployment in the assets\internal\ folder. However, when I run this app on the device, I always get the error the ..... In the code I am using call to



to properly open the file. Why am I getting this error? Is there some project setting that I have to tweak to make this happen properly. This is very frustrating. I will really appreciate if someone can point me to the right solution for this problem I am facing. Thank you.

Help needed for migration from D6 to D7 (goal is 10.2 in the end) - by: Cornelia

$
0
0
Hi everyone,

I have a program written in Delphi 6 and need to improve/modify the program.
My plan is to make it work with D7 first, try to understand the code and then migrate it to 10.2 in the end and do improvements.

My problem is that the program uses a lot of old techniques and migrating it to D7 is already not that easy, because there is not much in the internet which helps me.

First of all I'm looking for a resource telling me wich units were replaced over the time from D6 to D10.2 and by what.
Currently, I'm checking the release notes of the different Delphi versions but not all old versions are provided by Embarcadero. Can someone provide the release notes of the other versions?

Another probelm I'm currently facing is that the program uses the unit "IdWinsock", but there is only litte information about in the web and some pages are russian or asian (chinese?) which I'm not able to read/understand. I found a Git repository providing a .pas file for a unit "IdWinsock" ( here ) but how can I be sure that it is the correct source?
I wasn't even able to find an explanation about the unit.

I'm very thankful for any help!

Mouse wheel does not work for TDBLookUpComboBox - by: Juraj

$
0
0
I dont know if I am missing something or it does not really work in Rad Studio 10.2 Delphi.

I am using FireDAC connection to MS Access DB. I assigned ListSource to the TDBLookUpComboBox and choosed ListField and KeyField. After start up of the app, data are in the component but I am not able to scroll using the mouse wheel neither type some values to filter it much faster.
This was working in the freeware Lazarus IDE and I thought that its normal behavior of the component like this.

Do I need to find some workaround or is there a way how to fix it?

Thanks for the replies

Delphi2010: Cannot change include search path - by: Peter

$
0
0
Hi,
I cannot delete the highlighted path. Can somebody help?
Thank you
Peter

TLocationSensor is not working on Windows 10 - by: Progs_Electro

$
0
0
Good day!

I am trying to write a programm that receives geo coordinates from TLocationSensor, but it can't find any location sensor. Code sample:



procedure TForm1.Button2Click(Sender: TObject);

var

MyLocationSensorArray : TSensorArray;

MyLocationSensor : TCustomLocationSensor;

begin

try

TSensorManager.Current.Activate;

MyLocationSensorArray := TSensorManager.Current.GetSensorsByCategory(TSensorCategory.Location);

if MyLocationSensorArray <> nil then begin

Memo1.Lines.Add('Location Sensor Found');

MyLocationSensor := MyLocationSensorArray[0] as TCustomLocationSensor;

MyLocationSensor.Start;

Memo1.Lines.Add('Latitude = '+ FloatToStr(MyLocationSensor.Latitude));

Memo1.Lines.Add('Longitude = '+ FloatToStr(MyLocationSensor.Longitude));

MyLocationSensor.Stop;

// ShellExecute(handle,'open',PChar(Format(GoogleMapsURL,

// [MyLocationSensor.Latitude.ToString, MyLocationSensor.Longitude.ToString])),

// '','',SW_SHOWNORMAL);

end

else

begin

Memo1.Lines.Add('Location Sensor Not Found!')

end;

finally

TSensorManager.Current.DeActivate // deactivate sensor manager

end;

end;

Programm is running on tablet with Windows 10 Lenovo MIIX 320-10ICR. GPS is working, there is a internal maps app and it shows my position correctly. Also I've checked location sensor with Sensor Diagnostic Tool from Windows Kits 10, here is a screen



I've tried to list all available sensors

procedure TForm1.Button3Click(Sender: TObject);

var

i : integer;

NumberOfSensors : integer;

begin

// get list of found sensors - if any

TSensorManager.Current.Active := true;

NumberofSensors := TSensorManager.Current.Count;

Memo1.Lines.Add('Sensors: '+IntToStr(NumberOfSensors));

Memo1.Lines.Clear;

if NumberOfSensors = 0 then

Memo1.Lines.Add('No Sensors Found')

else

for i := 0 to NumberOfSensors-1 do begin

Memo1.Lines.Add(

IntToStr(i)

+ ': '

+ TSensorManager.Current.Sensors.Name

+ '", Category: '

+ GetEnumName(System.TypeInfo(TSensorCategory),

Ord(TSensorManager.Current.Sensors.Category))

);

end;

TSensorManager.Current.Active := false;

end;

And here is a result

0: BMA25X", Category: Motion

1: Simple device orientation service - Simple device orientation sensor (Microsoft)", Category: Orientation



What is wrong? This app worked well on another tablet with Windows 8.

Preparing Delphi deployment for the Android API level 26 August 2018 deadline - by: Inmatrix

$
0
0
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:
  • 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?

Component Install Packages Not Saving - by: Andrew

$
0
0
Good morning,
I am using C++ Builder 10.2 Enterprise
I have a previous project from XE3 that uses the Microsoft Office 2K Components, and I would like to bring into the 10.2 version.
When I go to Component | Install Packages | select Embarcadero C++ Builder Office 2000 Servers Package | OK
It Installs everything. I have my Office components. I could then build a new project with these components.

The problem is when I close RAD 10.2 and restart - these Packages are no longer installed - I have to do again.
I am obviously missing a step ?

Thank you.
Andrew

(FireDAC) FDEventAlerter causes application to freeze when destroyed - by: Raphael

$
0
0
Hi, I'm using a FireDAC TFDEventAlerter to be noticed of certain events happening in the database, it works fine but sometimes when I close my application (which causes the event alerter to free itself) the application freezes. I'm using Delphi 10.2 Tokyo

We've tracked the source of the infinite loop to this mehod:
unit FireDAC.Phys.ADS.pas
procedure TFDPhysADSEventAlerter.InternalAbortJob;
begin
if FWaitThread nil then
begin
FWaitThread.Terminate;
InternalSignal(C_WakeUpEvent, Null);
FWaitCommand.AbortJob(True);
while FWaitThread nil do
Sleep(1);
end;
end;

It seems the condition FWaitThread nil is never satisfied. As I said before, this problem happens randomly, I programmed a loop to try and reproduce the problem more systematically by creating and freeing an EventAlerter many times in a row in a simple project and was able to reproduce the freeze a few times when running it for hundreds of iterations. However, it seems that the problem is more frequent when the event alerter is being freed when closing the application. This is a big problem for me because I can't deliver an appllication that randomly freezes when closed, forcing the user to stop the process with the task manager.

I found another post in which the poster had a similar problem, the proposed solution was to make sure to Unregister the event alerter before closing the DB connection but for me, it didnt seem to change anything.

Thanks in advance,
Raphael.

Blocked? - by: Edmund

$
0
0
I clicked on the "I'm not a robot" recaptcha and I still get the "You are blocked" message.

Twice I tried posting on the PROGRAMMING forum, and twice I get a blocked message.

Delphi XE5 FireDac Postgress - connection error to host on port not default - by: Ivan

$
0
0
Somebody, i need help:
Delphi XE5 FireDac cannot connect on other port, except on port 5432. If server listen port 5433 and in programm code set FDConnection.Params.Values:='5433' - then show error 10060. But connecting on port 5432 accepted, if server listen 5432 and in programm code set FDConnection.Params.Values:='5432') !?

Android TNotification Custom Sound - by: Amit

$
0
0
Following the Google Android wiki pages, seems there is an option to customize single app Notifcation Sound.
I can not find this option in the Delphi TNotification API ( Well, there is a TNotificaiton.soundname -- but according to embarcadero wikipages, it is available only in iOS ).
How do I enable Custom Notification Sound in my Android App?

xmake v2.2.2, We can also manage package dependencies for C/C++ - by: Ruki

Calling DataModule public functions from a secondary thread - by: Jayme

$
0
0
Hello,

I am using C++Builde 6.0 Professional Edition.

I have built a windows service whic has a secondary TThread object as sugested.

The application has a TDataModule which has TAdoQuery and Devart ODAC TOraQuery components.
I have defined public methods within the DataModule, one of them uses a TStringListt object to hold and save the application (service) log file. There is no any visual object like message boxes or TWinControl.

Why the method does not work when the service is running ?

The function below does not work even when called inside the DataModule:


Android sensor permissions with API level 26 - by: Omar

$
0
0
I'm trying to fix sample project OrientationSensor
to work with Android API level 26.

I installed Android SDK 26.0 and
edited AndroidManifest.template.xml do android:targetSdkVersion="26"

The app starts, but no sensor reading is received

Any idea how to fix it ?

I suppose it may be one of those permission problems.
Which permission is necessary for orientation sensors ?

GetPropInfo(Sender, 'HelpContext', [tkInteger]); - by: Robert

$
0
0
First part here works,





Right click on MunuItem
And problem code. Don't know what (helpcontext) should come back from call to GetPropInfo


Suggestions.

Thanks

New in RAD Studio 10.3: IDE UI Improvements in the Main Window! - by: Emailx45

Apple notarization - by: Scott

$
0
0
If you're creating OS X apps, you know Apple is heading towards requiring each app to be "notarized" by them. I submitted a couple of apps created with FMX and they were rejected for the following reasons;
1.) The executable does not have the hardened runtime enabled,
2.) The binary uses an SDK older than the 10.9 SDK.

I assume there's a way to enable the hardened bit on the runtime. But have no clue about the SDK, since that, I think would all be internal to the FMX compiler, right?

I have not learned to detailed workings of OS X since Delphi is basically supposed to do that for me, so if these are dumb questions, my apologies.

Thanks.

Scott

TabSheet screen capture - by: Comograma

$
0
0
Is it possible to save to a bitmap file (or other) each TabSheet of a TPageControl ?
How can I do that ?
Thanks
Viewing all 3677 articles
Browse latest View live


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