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

10.2 Tokyo BLE Framework fails to discover devices on Android, works on 10.1 Berlin.

$
0
0

I am creating a separate entry for this from replies I made on a similar entry.  This one has to do with the BLE framework and not the BLE component.  

After changing to 10.2, BTLE discovery is not working anymore in Android.  I am using the framework and calling

System.Bluetooth.TBluetoothLEManager.StartDiscovery

It does return TRUE and the OnDiscoveryEnd event does fire, but no devices are found.  I have used the HeartRate sample and it does find the BTLE device, but it is using the BTLE Component, which will be a major change and may not even work.  I am pretty sure I have to use the Framework, since part of my app is in a service and UI is not allowed in a service.

Update 1:On a different computer I have installed 10.1 (update2) and 10.2 (No Hotfix).  No additional options were installed on either one except what was available in the installation menu.  So they are clean installations.  Win32, Win64 and Android were installed.  On the10.1 compiler the BLE project complies, installs and runs, finding all available BLE devices.  Using the exact same project in 10.2, the project complies, installs and runs, except it does not find any BLE devices.  The OnDiscoveryEnd event does fire, but it returns no BLE devices.

Update 2:

I have installed the Toolchain HotFix for 10.2 and it still will NOT discover any BLE devices.  I then installed the 6/23/17 Android patch and still will NOT discover any BLE devices.  Will be filling an issue report in the quality central now.

 

delphi seattle, iOS simulator run, can't load devToolsFoundation

$
0
0

Hi.

I'm trying to set up compiling an app for iOS using the iPhone 5 simulator. I am running Delphi 10 Seatle on a Windows 10 machine, and the X-code on a Mac with macOS Sierra 10.12.5. X-code is up to date, version 8.3.2.

I have PA server 8.0.1.52 tested running and connected. I have created an SDK. I have X-Tools running with the simulator.

When I click the run with debug command in the IDE I get the error "Can't load devToolsFoundation"

If I click the run without debug command in the IDE I get the error "Unable to launch process on [ip] using the parameters from the iOS profile. Can't load devToolsFoundation"

The app will compile as windows 32 and 64 bit, and also for Android.

I have no idea where to go from here.

Thanks in advance

New installed components not shown in tool palette

$
0
0

Hello,

I have C++ Builder 10.1 Berlin SP1 on Win10Pro with newest updates and I have the problem that components for e.g. WinSoft's Camera component not available in the tool pallete.

But the setup seems to be good.

What can it be?

Best regards and thanks in advance,

Lutz

TMultiView exception

$
0
0

MultiView has a big problem in Win32: if I use TMultiView in popover mode, when the first time popover appears all runs well; the second time it generates an exception and popover doesen't appears.

Step to reproduce:

1. create a panel (this will be the target panel)

2. cerate a TMultiView and set Mode = Popover

3. cereate a button (this will be the master button)

4. Click master button

5. all runs OK!

6. close popover

7. click master button

8. EXCEPTION!!!!!!!!

 

Best regards

 

Emanuele

Missing button in file dialog "Filter editor" at design time

$
0
0

At design time "ok" button doese't appears when I edit Filter options.

Windows 10

!!!

RAD server apache installation

$
0
0

Hello,

I'm trying to deploy Rad Server 10.2 under apache on linux.

I installed Interbase xe7 and register my Rad server licence.

 When running EMSDevServerCommand it works correctly I can can access default ressources and a custom ressources.

 

But when i try to access EMS ressource throug apache i get a message

{"error":"Resource not found: \/version","description":"The request does not identify a known application, resource, endpoint, or entity"}

This message tells me ems-server is running as this outpout comes from ems but it seems it is not able to find any ressource.

Does anyone have an idea ?

 

Thanks

 

TPopup component does not work well in Android (RAd Studio 10.2. Tokyo)

$
0
0

 

I have just istalled “A FireMonkey Android Compatibility Patch for RAD Studio 10.2” and a lot of problems with Android disapppeared.

 

But I found out that component TPopup does not work well. The sample is very simple (see below).

Form contents only TButton and TPopup with TRectangle (Reactangle1.align := client) for visibility of popup. The popup should show after press button (Popup1.IsOpen:= true) but it does not show. Events “onPopup” and “onClosePopup” is called because opacity of button is changed (via code below) and I tested it in debug mode.

 

This project works well, if it is compiled in RAD Studio 10.1 Berlin.

 

 

 

type

  TForm1 = class(TForm)

     Button1: TButton;

     Popup1: TPopup;

     Rectangle1: TRectangle;

     procedure Popup1Popup(Sender: TObject);

     procedure Popup1ClosePopup(Sender: TObject);

     procedure Button1Click(Sender: TObject);

   private

     { Private declarations }

   public

     { Public declarations }

   end;

 

var

   Form1: TForm1;

 implementation

{$R *.fmx}

 

 procedure TForm1.Button1Click(Sender: TObject);

begin

  Popup1.IsOpen:= true;

end;

 

procedure TForm1.Popup1ClosePopup(Sender: TObject);

begin

  Button1.Opacity:= 1.0;

end;

 

procedure TForm1.Popup1Popup(Sender: TObject);

begin

  Button1.Opacity:= 0.5;

end;

 

Name of the remote notification

$
0
0

Hi. I'm receiving remote notifications perfectly. With the app closed or opened.

But, when the user clicks the notification, the app is opened with the PushEvents1.StartupNotification assigned (if it's closed) or the event PushEvents1PushReceived is fired.

Everything in this scenario is perfect.

But.. the notification is not erased from the notification area. So i use the method NotificationCenter1.CancelAll. But it's erase all the notifications from my app. if i received other, i'll be gone too. The correct is to use the method NotificationCenter1.CancelNotification(), but it asks for the name of the notification. How i can get the name of the remote notification to cancel it?

 


How to make an include path and library path the default for all new multi-device projects

$
0
0

I have an issue when I create a new project that I have to set the Include and Library path.

I'm using latest Tokyo release 10.2

Is there any way in C++ Builder where I can define the include and library path for all new multi-device projects?

Per the Wiki I tried setting

Tools->Options->System Include Path (All platforms)

Tools->Options->Library Path (All platforms)

No luck

I created a project that has the correct include and library, added to the repository and tried to use that

could not find the library

Where do the default include and library settings come from?

 

Any help would be appreciated.

Delphicoreide250.bpl

10.2 Tokyo ilink32.exe not /LARGEADDRESSAWARE in latest installers

$
0
0

Hi,

We have installed 10.2 twice, once from a trial version on 26th July and the other from the ESD installer and from an ISO today. We are dealing with very large projects which have been failing in 10.1 unless be manually patched ilink32.exe to be Large Address Aware. We are upgrading with the understanding that this is the default for ilink32 in 10.2. In the trial version we installed this does seem to be the case when inspecting ilink32.exe (with 'dumpbin /headers devenv.exe | more' on the VS command line), however, this does NOT seem to be that case using both the installers tried today. This means that our large projects are failing to link in 10.2 even though it should be better at handling them.

Was there an intentional change to remove the LAA setting in ilink32 (which we thought was an advertised feature of 10.2)? If so, are we expected to enable this again by manually patching the EXE? If not, was this a mistake in the release? I do notice that the Digital Signature on ilink32.exe from the trial was ‎16 ‎March ‎2017 and for the ISO install was ‎20 ‎March ‎2017 although the actual version numbers have not been changed!

Thanks in advance.

Problem with form height in IDE

$
0
0

Form 800x600 being resized to 800x580 when the form is opened in the IDE. What to do?

compiling search demo app in delphi and compile error not sure what is wrong.

$
0
0

compiling demo app for searchbox.dpr

 

dcc32 error E1026 File not found: 'Control.res, WinXCtrls.res, CategoryButtons.res.  Not sure where to find them.

 

 

Thks All

 

SpeechAPI 5.1 doesn't work on Windows 10.

$
0
0

Hello.

I usually used this code for get all possible voices in my Windows app:

procedure TForm1.FormShow(Sender: TObject);

var

  i : integer;

  EngineName : String;

begin

  try

    SpVoice := TSpVoice.Create(nil);

    Engines:= TStringList.Create;

    SpVoice := TSpVoice.Create(nil);

    SOTokens := SpVoice.GetVoices('', '');

    for I := 0 to SOTokens.Count - 1 do begin

      SOToken := SOTokens.Item(I);

      EngineName:=SOToken.GetDescription(0);

      Engines.Add(EngineName);

    end;

    ListBox1.Items.AddStrings(Engines);

    if (ListBox1.Items.Count > 0) then

      ListBox1.ItemIndex := 0;

  except

    on E : Exception do begin

      Log(E.ClassName+' error raised, with message : '+E.Message);

    end;

  end;

end;

 

Unfortunately  in Windows 10 in some voices I get an error on line

EOleException error raised, with message : OLE error 8004503A

On line

  EngineName:=SOToken.GetDescription(0);

And I can't use Text To Speech correct.

I use SpeechAPI 5.1. I tried get SpeechAPI 5.4 from Windows 10, but when I updated my component it didn't help, I had the same error.

Can anyone help me fix this error? I tried compile this with Delphi XE2u4 and Delphi 10. Both of them has the same result.

Thank you.

Using fast XML Vendor that implements importNode function

$
0
0

I need to open large XML files (about 10MB). I must use an XML Vendor for TXMLDocument cross Platform. I need to use DOMDocument->importNode function but only ADOM XML v4 supports this function. But this parser is very very slow. Is there a workaround to implements this functionalities in OmniXML (very fast, tiny and cross Platform)? I use C++Builder 10.2 Tokyo Tks   Emanuele


Opening up Delphi to NO project

$
0
0

I'm new to the latest Delphi world so please be nice. :-)  I wrote a very large application from 2004 to 2008 in D7. I'm just getting around to upgrading to the latest Delphi version. I bought and installed 10.2 today. I'm just getting used to the new IDE. One thing that I remember fixing in D7 was when you open up Delphi from the Start Menu or a desktop shortcut, I set it so that it would NOT open my most recent project but instead open up to no project at all. But I don't remember what I did to make that happen. Is it still possible in 10.2 and if so, how?

Installation Mobile Add-On with Windows 10

$
0
0

Hello, I bought Mobile  Addon yesterday. I use Windows 10 and Tokyio professional. For installing the new feature I shall go to Windows control panel / programs & features, select the RAD Studio item and click change. But there is no change-option - just deinstallation. Please can You help me. Marcus

Simple button+label example misbehaving

$
0
0

I installed C++ Builder starter and tried to make my first forms app. I put a button and a label on the form, so when the button is clicked, label text changes to "Hello World!". When i run it and click the button, the text changes but then it changes back each time the mouse leaves the button. Also holding the button pressed keeps the label text on its default value. At first i thought this was an error on my side so i watched some youtube tutorials but as its all the same i guess theres an error with the IDE here.

I use the following line to change the label color:

    Label1->Text = "Hello World!";

Any help would be much appreciated

Using Delphi 10.2 and can't turn off "Enable runtime themes"

$
0
0

I'm using Delphi 10.2 and can't turn off enable runtime themes. I uncheck the option in the Project Options -> Application page, then click the OK button, then re-open Project Options, and the box is checked again! What am I missing? How do I uncheck this option?`

I can build Delphi wizard on Delphi 10, and use on Delphi 2007?

$
0
0

I can build Delphi wizard on Delphi 10, and use on Delphi 2007?

I'm using dll but at startup Delphi 2007 issues an AV error.

ToolsApi.BorlandIDEServices always = Nil

Viewing all 1888 articles
Browse latest View live


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