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

Print Spooler spoolsv.exe

$
0
0

Hi

I have a customer who is having issues with spoolsv.exe and when our application loads it just hangs and goes no further.  Is there a way, if there is not a timely response from the service, that we can skip over this and allow the application to launch?

 

Many Thanks

Philip L Jackson


Fatal error on first Mac OS X compiling

$
0
0

Hello,

 

I am running a trial version of 10.1 Berlin that I just installed.

Delphi for win32 is working fine.

 

However, if I try to compile ANY project for OS X (using my mac as a target), I get the following error : [dccosx Fatal Error] F2084 Internal Error: AV0DF5E0D7-R00000014-0

I get the same error even if I try to compile a blank/basic project.

First time I try to dev/compile cross-platform.

Any Ideas ?

 

Thanks,

Thibaud

Delphi Debugger not working

$
0
0

I installed Delphi 10.1 Berlin over a month ago and the debugger doesn't work. I have now installed Delphi 10.2 Tokio and have the same problem. I wrote a simple program by dropping a label on a form and in the form create event placed a single line of code: Label1.caption:='Hello'. I placed a breakpoint on the line of code (a red circle appears) but when I run the application the breakpoint is ignored. Run to cursor also doesn't work. I made sure the program was in debug mode and tried clean and build and still it doesn't work. I have Windows 10 operating system and now have three versions of Delphi on my computer: 7, 10.1 & 10.2 and only Delphi 7 works perfectly. Any ideas why debug is not working? and both 10.1 & 10.2?

FDQuery updates to DB with multiple table?

$
0
0

Hi,
Just a question regarding automatic update of databases using SQL Queries.

As a simple example, I have a Contact DB with two tables, Address and Persons

If I build a small app with a Grid linked to an FDConnection and an FDQuery hooked to a TDataSerProvider and run the app, it's fine, I can edit the data in the grid, click ApplyUpdates and have the modified values pushed back to the database. IF and only IF the SQLQuery is relatively simple and accesses only 1 table.

For example, if the SQL query is "SELECT * FROM Address;" this works fine.

But now if I start combining multiple tables, it doesn't work anymore. Say:

SELECT  P.LastName, P.FirstName, A.Street, A.City FROM Address AS A, Persons AS P
ORDER BY P.LastName, P.FirstName ;

Now, no matter what I change, the database doesn't update.
Is there a way to have new values pushed back to multiple tables using FDQuery components?

For now, what I do is update manually using an UPDATE SQL statement, but if it could be handled for me, why bother?

Thanks for any light.

I'm using RadStudio Tokyo (Delphi) and SQLite

Steve

FDQuery updates to DB with multiple tables?

$
0
0

Hi,
Just a question regarding automatic update of databases using SQL Queries.

As a simple example, I have a Contact DB with two tables, Address and Persons

If I build a small app with a Grid linked to an FDConnection and an FDQuery hooked to a TDataSerProvider and run the app, it's fine, I can edit the data in the grid, click ApplyUpdates and have the modified values pushed back to the database. IF and only IF the SQLQuery is relatively simple and accesses only 1 table.

For example, if the SQL query is "SELECT * FROM Address;" this works fine.

But now if I start combining multiple tables, it doesn't work anymore. Say:

SELECT  P.LastName, P.FirstName, A.Street, A.City FROM Address AS A, Persons AS P
ORDER BY P.LastName, P.FirstName ;

Now, no matter what I change, the database doesn't update.
Is there a way to have new values pushed back to multiple tables using FDQuery components?

For now, what I do is update manually using an UPDATE SQL statement, but if it could be handled for me, why bother?

Thanks for any light.

I'm using RadStudio Tokyo (Delphi) and SQLite

Steve

Getit -- LifeTrak Move -- Berlin 10.1

$
0
0

I tried to run the LifeTrakPas demo and it won't discover the LifeTrak Move device.

Yet the LifeTrak is paired to the development PC show up when scanned by the BTLE component.

I can't test with Berlin 10.2 since Getit is empty and I have not seen a fix yet.

 

Has anyone been able to run the LifeTrak demo successfully yet ?

 

Clark

Why is TEffectAnimator.DefaultApplyTriggerEffect checking for HitTest=False in Delphi ?

$
0
0

Hi!

After ages of searching for the reason why my custom controls can not trigger effects / animations in my style files, I found out that the ApplyTriggerEffect method checks for HitTest = false.
I'm sure there is a reason for this. But I can not get it.

greetings  

 (Using Delphi pro. 10.2 Tokyo)

Using .NET assembly via COM throw Floating point invalid operation exception in Delphi.

$
0
0

Hello, I have some problem upon using .NET assembly via COM in Delphi.

How to reproduce:

Please, create simple .NET Class Library, with some test method, inside the method set Double test = Double.Nan

using System;

namespace DoubleNan

{

    public class TestClass

    {

        public TestClass() {}

        public void TestMethod()

        {

            Console.WriteLine("Start1");

            double test = Double.NaN;

            Console.WriteLine("End1");

        }

    }

}



Make assembly COM visible, sing it and register in GAC.

Then try to use this assembly inside Delphi, like this:

var  testClass: OleVariant;

 

CoInitialize(nil);

testClass := CreateOleObject('DoubleNan.TestClass');

testClass.TestMethod;

CoUninitialize;

Please let me know if you need more details. 

Waiting for your response.

Best regards, Andrey.

 


FMX Android apps do not draw some forms after Tokyo update

$
0
0

I have a number of FMX based programs that do not draw there forms correctly when built for the Android platform under Tokyo. The programs work fine on Berlin update 1 and 2. The same programs complied for Win64 or Win32 under Tokyo seam to work fine.

I have only had time to test the android apps on a Samsung S5 (6.01), S6 (6.01) and a Samsung TabS (6.01).

Each of the programs has 8 to 10 forms. When a form is shown it does not always display but the controls on the form are active.

The programs use a local SQLite database using FireDac and live bindings to display data. All of the forms which use live bindings from the FireDac database to one or more ListViews in a MultiView  will not draw at all. While you can not see the form all of the forms controls are active.

I have one application form that uses live bindings but has no MultiView.  The form has a hidden panel (visible=false). When the panel is made visible the form does not update to show the panel but the controls on the panel are active.

In the IDE I can not show the contents of a MultiView when the "Master" form layout is selected. If I select the "Windows" or "Android" layouts the show command displays the MultiView.

 

10.2 Debugger not showing values of variables

$
0
0

By hovering over a variable in a breakpoint the debugger shows me the same as in design-time.

What I'd like to see is the value of the variable as in preceding versions. Is this a bug or a setting I have to configure?

(by explicitly asking for it with Ctrl F7 I get the value)

 

How to access/submit IBM Mainframe jobs from Delphi windows application

$
0
0

Hi, 

We need to submit jobs to IBM Mainframe from Delphi windows application. Please let us know is there is any way to do it.

Currently on a other application we are uploading text files to mainframe using FTP. but we couldn't find a way to submit jobs to mainframe using FTP commands. Please help us.

Thanks,

Uma

 

 

Fed up with spending large gas bills? Buy Roti device India

$
0
0

Chapati making device is truly some help when it comes to get ready Chapati in large. With the help of this device, you can reduce your gas expenses and make the chapatis easily. These devices are developed spending attention to all the needs of individuals. If you are concerned about the functions about this device, then no need to fear. The technicians who have developed this device have recognized every simple part of Roti creating in order to fulfill up with the needs of clients that is sure to elate taste buds of the customer.

These devices are advancement that is motivated by the improving price of energy in Indian. With the improving costs of gas tubes and many other types of energy for both household and professional reasons, these devices are true haven. The Roti Making Machine Price is quite great and these devices can provide the Roti need of huge amount of individuals effectively. These high-speed devices not just preserve the energy absorbed but also preserve the man energy needed.

For any organization that consumes in action of offering food to huge viewers should get these devices. Roti is an critical facet of the regular food choice of Indian and for these organizations to fulfill the requirements of huge amount of individuals, both great quality and rate is needed. With the Roti Machine Indian you can fulfill all the needs of your client by offering them delicious chapatis. With these devices, you can preserve a lot and before you know it, the preserving that you have made would combination the overall cost that you invest for the device.

With the help of the website of Automated Chapati Making Machine Producers, you can know about the various factors of such devices and Chapati Making Machine Price In India . These sites have all the information that you need before purchasing these devices. They will let you know about the various part of device like requirements, about Partial Automated Chapati Making Machine operating, the benefits and operating and Automatic Chapati Making Machine Price In India etc.

They understand the significance of these types of devices for hostels, problems, dining places etc and always try to fulfill the anticipations of their clients with the best Roti creating device. There are many satisfied clients that such companies have and by studying their recommendations you can know about the effectiveness and the great company's devices. Choose the best producer to buy the best automatic Chapati creating device and provide delicious Roti.

To know more about Chapati Making Machine Cost in Native Indian, you can check out the globally web where you can find various websites that provides finish information appropriate to this revolutionary product. At the globally web, you can also look for the official websites of various manufacturers of Chapati maker device who are looking to provide their useful gadgets for both expert as well as personal uses. You can easily purchase a roti maker device for your business developing at very cost-effective expenses. So, do not invest your time and attempt and attempt, just buy an computerized chapati maker device to preserve your resources.

Demo Samples no working on 10.2 -- Map, Gyroscope

$
0
0

The Gyroscope demo runs and I can check that the timer code is running but nothing is displayed.

On the Map_Object demo I now get ---------------------------

Error

---------------------------

Unable to install C:\Users\Public\Documents\Embarcadero\Studio\19.0\Samples\Object Pascal\Multi-Device Samples\Device Sensors and Services\Map Type Selector\Android\Debug\Map_ObjectPascal\bin\Map_ObjectPascal.apk.

Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED].

---------------------------

OK   

---------------------------

 

Will try on another PC later today.  Do these samples work for anyone else using 10.2 ?

Clark

 

 

Converting AnyDAC to FireDAC

$
0
0

I'm in process of updating an application from Delphi XE3 to 10.2.  The XE3 version used the AnyDAC database components and I need to convert to FireDAC.  I used the reFind utility and it addressed some of the changes, but many I'm having to address manually.

Right now I'm stuck at three references to AnyDAC in a form's USES clause that I can't find a FireDAC equivalent for:

uADDAptManager

uADCompDataMove

uADPhysManager

Any ideas?

 

Rad Studio IDE bricked on splash screen in Windows Insider Build 16184, 16188

$
0
0

Windows Insider build starting from 16184 are not compatible with Delphi IDE, staying locked on splash screen forever.

 

Yes, Windows Insider Build are Beta version(s), however Delphi is the one and only software I am aware of that bricked under those builds.

I suspect a Delphi issue, probably the protection and online activation module that is again at fault trying to protect itself.

As it is reasonable to think Microsoft is not the culprit here, and as being in Windows Insider program is sometine not an option for software vendors, Embarcadero/idera should at least investigate the issue and report - ideally provide a quick fix. 

 

If one's answer is "don't use Windows Beta", then just don't waste the time to write it.


Connecting to https sites

$
0
0

Hello all,

 

I tried to download a web page (using WinInet, not using INDY components) by the following code (I found similar in StackOverflow):

function DownloadPage(const aURL, aFileName:string):boolean;

const BufferSize = 1024;

var hSession, hURL:HInternet; Buffer:array[1..BufferSize] of Byte;  BufferLen:DWORD; f:file;

begin Result:=false;      hSession:=InternetOpen(PChar(ExtractFileName(Application.ExeName)),

                               INTERNET_OPEN_TYPE_PRECONFIG, nil, nil, 0);

   // Establish the secure connection with real username and password

 if Copy(aURL, 1, 8) = 'https://' then 

    InternetConnect(hSession, PChar(aURL),    INTERNET_DEFAULT_HTTPS_PORT, PChar('MyUsername'),    PChar('MyPass'), INTERNET_SERVICE_HTTP, 0, 0); 

 

     try if Assigned(hSession) then begin

             hURL:=InternetOpenURL(hSession, PChar(aURL), nil, 0,

                                   INTERNET_FLAG_RELOAD, 0);

             if Assigned(hURL) then

                try try AssignFile(f, aFileName); Rewrite(f, 1);

                        repeat InternetReadFile(hURL, @Buffer, SizeOf(Buffer), BufferLen);

                               BlockWrite(f, Buffer, BufferLen);

                         until BufferLen = 0;

                        Result:=True;

                    except Result:=false; end;

                finally CloseFile(f); InternetCloseHandle(hURL); end;

          end; // if Assigned(hSession)

      finally InternetCloseHandle(hSession); end;

end;

 

It works OK with http sites, but with https sites sometimes I can not establish connection, sometimes the download goes fine. What's the matter?
Thanks in advance for eventual hints or clarifications!

 

Andrey

Embedded framework

$
0
0

Hello, 

basically I'm able to use static ios library in firemonkey project. It is not problem.

Now I found embedded framework included in one iOS project and I'd like to use this framework in firemonkey.

The structure of this embedded framework is 

-embeddeded framework

--Resources folder with bundle files

--framework file

If I add framework file as a static library into firemonkey project i will get some strange error [DCC Error] E2597 ld: 64-bit LDR/STR not 8-byte aligned: from .... but I think it has something to do with missing Resources. How can I add those .bundle files into firemonkey project?

Thank you

Iot.Family.BluetoothLE.pas -- Can't debug IoT BLE

$
0
0

The LifeTrak sample for LifeTrak can't detect/discover the Lifetrak device even with it paired.

For this (or any similar BLE) application, Iot.Family.BluetoothLE.pas is needed to debug with any hope of completing a real application.

Iot.Family.BluetoothLE.pas is not provided in version 10.2 so there is little hope of making progress with BLE IoT development.

Is there an update (or other) support coming to make it possible to debug these BLE/IoT samples and other applications ?

Clark

 

 

XCode 8.3?

$
0
0

Hi,

As always, starts aligned like each previous releases... RAD Studio is out, and a few days later, the new XCode is there too.
Did anybody try XCode 8.3 with RadStudio 10.2?
Is anything broken?
Thanks for any clue.

TMapMarkerDescriptor.snippet is not an InfoWindow?

$
0
0

Hello,

As I know, an InfoWindow of a Marker in the GoogleMaps can have HTML code and it can show 'everything' (Texts, Images, Buttons, etc., as a little webpage).

Is it possible to have an Image on a Marker's snippet in Delphi, or it is only a text area?

Thanks

 

Viewing all 1963 articles
Browse latest View live


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