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

Delphi 10.2 64 bit windows compile to win32

$
0
0

Strange case ... i have installed delphi 10.2. I have create a console application and I compile it to a 64-bit Windows project but the executable is created in the win32 folder and it is a win32 and not win64 application. If I start the project with the play button it says "Counld not find program, '..." with the path of the project in the Win64 folder. New console project just created. In the project is defined WIN32 compiler directive and not WIN64, but 64-bit windows is selected.

Ho già disinstallato ed installato diverse volte ma il problema permane. Nello stesso PC è installata anche la versione XE7 che funziona correttamente.

 


FireDac for FireBird

$
0
0

Hi all,

I'm new here. In fact, I used to be a .NET developer for to many years, and now I should get into Delphi and FireBird.

In order to achieve this, I download the RAD Studio 10.2.1 trial version and installed it on my home machine. The trial period should be enough to learn the basics and figure out how the things are running in Delphi, the syntax and, of course, how to connect and manipulate data in a database. In this case, the company is using FireBird.

After the installation, I found that a bunch of nice application samples were also installed. Nice indeed. I tried to run them all, but some of them couldn't be started, due some missing libraries.

After some thought exchange with my colleagues, I got the reason why: it lacks the FireDac for FireBird. Ok. So... uninstall everything and reinstall... something went wrong in the first time. Some problem.

Therefore, I realize that the FireDac isn't part of the trial version. As the rest of the company is using it a lot, it is supposed that I learn the maximum possible on every platform they are using, and that includes FireDac.

So... I'm asking... It is real that the firedac doesn't come with the trial version of the RAD Studio? Is there any way for me to install it for a kind of a trial period so I could learn the maximum about it?

 

Many thanks in advance for all the time spent and information that you can send me.

All the best,

Artur

Run option is greyed out in Delphi XE 5

$
0
0

Why did my RUN (F9) and debug options under the Run tab in Delphi XE5 suddenly gray out?   I have reinstalled the entire IDE and no change.  The same project works fine under Win 7 elsewhere but now Under Win 10 this has happened...

FireDAC/linux win1251 strings

$
0
0

I'm developing a cross-platform console application for working with the database using FireDAC. Database - Firebird with win1251 encoding:

  fConnection := TFDConnection.Create(nil);
  fConnection.DriverName := S_FD_FBId;
  fConnection.Params.AddPair(PARAM_PATH, Path);
  fConnection.Params.AddPair(PARAM_USERNAME, Username);
  fConnection.Params.AddPair(PARAM_PASSWORD, Password);
  fConnection.Params.AddPair(PARAM_HOST, Port.ToString);
  fConnection.Params.AddPair(PARAM_PORT, '');
  fConnection.Params.AddPair(PARAM_AUTH, 'No');
  fConnection.Params.AddPair(PARAM_CHARSET, 'WIN1251');
  fConnection.Params.AddPair(PARAM_METADATA, 'False');
  fConnection.Params.AddPair(PARAM_PROTOCOL, 'Local');
  fConnection.Params.AddPair(PARAM_SQLDIALECT, '3');
  fConnection.Params.AddPair(PARAM_ROLE, 'Admin');
  fConnection.Params.AddPair(PARAM_MODE, 'Open');
  fConnection.Params.AddPair(PARAM_DROPDATABASE, 'No');
  fConnection.Params.AddPair(PARAM_PAGESIZE, '4096');
  fConnection.Params.AddPair(PARAM_ADVANCED, '');


Executing queries in Windows returns the correct strings, but the same query in Linux returns string fields, like the character set "?" (#3F) and spaces (#20):

//
var
  DataSet: TDataSet;
fConnection.ExecSQL(QueryText, DataSet);


DataSet.Fields.FieldByName('NAME').asString: Изменение БД
DataSet.Fields.FieldByName('NAME').AsBytes: C8 E7 EC E5 ED E5 ED E8 E5 20 C1 C4



DataSet.Fields.FieldByName('NAME').asString: ????????? ??
DataSet.Fields.FieldByName('NAME').AsBytes: 3F 3F 3F 3F 3F 3F 3F 3F 3f 20 20 3F 3F


For example, if change the encoding in the connection parameters to UTF8:

//
fConnection.Params.AddPair(PARAM_CHARSET, 'UTF8');

var
  DataSet: TDataSet;
fConnection.ExecSQL(QueryText, DataSet);


DataSet.Fields.FieldByName('NAME').asString: Изменение БД
DataSet.Fields.FieldByName('NAME').AsBytes: 18 04 37 04 3C 04 35 04 3D 04 35 04 3D 04 38 04 35 04 20 00 11 04 14 04



DataSet.Fields.FieldByName('NAME').asString: Изменение БД
DataSet.Fields.FieldByName('NAME').AsBytes: 18 04 37 04 3C 04 35 04 3D 04 35 04 3D 04 38 04 35 04 20 00 11 04 14 04




How to properly use FireDAC for Linux with Win1251 encoding?

P.S. Embarcadero Delphi 10.2 Version 25.0.27659.1188 

How do I debug this?

$
0
0

A customer with a copy of our application is experiencing issues running it:

I tried running same application on a clean system and it immediately dies without any error. So I had a go at running the remote debugger.

  • Installed PAServer 18 onto remote Windows 10 machine

  • Ran PAServer on remote machine

  • From Delphi, Attach to process. This fires up the remote debugger on remote machine

  • Cancel out of Attach to process, then use Load to start an image on remote machine

  • Remote debugger crashes

  • Next thing, Delphi reports an error on the remote debugger and hangs until I kill the debugger on the remote system

  • Delphi crashes

can't start my delphi xe5

$
0
0

I can't start my Delphi XE5. Product can't be validated  

E2597 _Unwind_RaiseException2

$
0
0

Hi All

 

I get this error with Delphi 10.2.1 when trying to compile an android application:

[DCC Error] E2597 c:\program files (x86)\embarcadero\studio\19.0\lib\Android\debug\System.Internal.ExcUtils.o:System.Internal.ExcUtils:function System::Internal::Excutils::_Unwind_RaiseException2(): error: undefined reference to '_Unwind_RaiseException2'

[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)

 

Any Ideas on how to fix this?

Migration Delphi 7 To Delphi XE3

$
0
0
Hello,

I have a project has just been migrated from delphi 7 to delphi XE3.
In compile still has some 4000 warnings:

Example:

Warnings:

W1050 WideChar reduced to byte char in set expressions. Consider using CharInSet function in SysUtils unit.
W1058 Implicit string cast with potential data loss from string to AnsiString
W1057 Implicit string cast from AnsiString to string
W1044 Suspicious typecast of string to PAnsiChar

I did not correct these warnings because I didn't have problems with the strings in the project,
but is worried whether this will affect the current code.

Thanks

Divide by zero different in Rad studio 10.2

$
0
0

Long ago I developed an application that is in wide use for a very large organization.   Recently I upgraded my code to Rad studio 10.2 Tokyo. All seemed well except for the following.

Throughout this program I catch divide by zero exceptions.  In the new version - it doesn't generate an exception when you divide by zero, it generates an INF value?   This is very problematic - since now my program trys to process this inf value rather than skipping over it due to an exception.   I can not figure out how to make the exceptions come back on.

 

for example 

 Function a:double;

  Var x,y:double;

 Begin

 try

 y := 0.0;

x := 1.0;

result := x/y ;  // this should generate an exception - but now it doesn't! 

 except

// error don't calculate

 result := 0.0; 

end;

End;

Upgrading Seattle licence

$
0
0

To install the upgrade to Seattle the instructions tell up to uninstall the product then reinstall the downloaded gGByte iso!  I have the following problem when I do this:  

I can't get past the window where I enter serial number, email and password!  I assume that it is flagging an error to say that the serial number has been used.  Of course it has!  To proceed I have to specify I have a trial version - hopefully after the install I have a chance to enter my serial number.  I bet I have to beg Embarcadero to reset my licence details!

 

 

Forced passsword change

$
0
0

When I try to log in to product support I enter my known user name and password.  I then get the message:

 

On March 8, 2016 we updated our Self-Service Portal.  If you are unable to log in with your normal support credentials please use the "Forgot your Password" link to reset your password. 

When I do this I get NO password reset email - what's happening there???

Using predicate-functions shows as error

Keyboard layout changing ?

$
0
0

Hello, I use Delphi Professional 10.1 Berlin for developing accounting software to my clients in Bulgaria. When users start the application they change keyboard layout to Bulgarian. But when they activate another form in application with ShowModal method,  the keyboard automatically return to default keyboard layout, in this case English. How could I to prevent this ? Thank you for any help.     

Launching web browser within delphi client application

$
0
0
 
Hello,
I would like to find out if I can use TWebBrowser to launch web browser within delphi client application.
The purpose is to launch a web browser to open a crystal report link to generate reports. I am currently using Delphi 10.2.
Please advise.

Thanks.
 
 

 

[ilink32 Warning] Warning: Error detected (LME288)

$
0
0

[ilink32 Warning] Warning: unknown heap name   : 0x08000000 / 0x08000000

[ilink32 Warning] Warning: Error detected (LME288)

Project has one form, one tbutton and tlabel (sic!) What to do ?

Builder XE8, Windows7 64 bit, 32 GB RAM


Problems after "iOS 11 Patch" install

$
0
0

I am getting F2613 Unit 'FMX.Platform.iOS' not found after installing the "iOS 11 Patch" and compiling an IOS App on either 32 or 64 bit. Android and and Windows Platforms work fine. It seems that the $Platform variable is not being set and so the path to the FMX units can't be found. Does anyone know how the $Platform variable works in XE ? Does the IDE set this when you change Platforms on the IDE. 

C++ Builder / IOS 11.1 / XCode 9.1 and Tokyo 10.2.1 with IOS 11 patch

$
0
0

I cannot get the combination in the subject line to work.

If I create a blank Multi Device C++ Builder application and set the target to iOS Device 32-bits iPhone 11.1 the app will crash immediately after displaying the splash screen.

However doing the same thing in Delphi works, so it seems to be a C++ Builder thing, any one else have this problem?

 

 

How to record video?

$
0
0

 

I need to RECORD quality video -- just displaying it is not enough.  (So please don't point me to the "Video" topic in the help... been there, done that, need more.)

I'm trying to RECORD a video from within my app.  My app is collecting data from live (Bluetooth LE) sensors and I need to record synchronized video to correlate with the sensor recording.  I'm not particularly picky about the codec or file format it gets stored in... I can deal with whatever the local OS thinks is "native" per device.

Ideally, I'd like to just give it a filename and say, "Start"... but I suspect it will be much harder than that, if it's even possible at all.

Obviously most all phones can take pretty high quality video... but how can I allow that from within my Delphi App while simultaneously collecting sensor data?

Thanks in advance for any ideas or suggestions.

 

    --Rhett

 

Error stdarg.h not found

$
0
0
Good Morning,

Recently I downloaded the latest trial version of RAD to evaluate it in order to program against IOS or choose other development options.

After configuring the system and obtaining the necessary SDKS I have a problem when building my first IOS program.

RAD gives me the following error:
stdarg.h not found. How is it possible? I have seen that there are some patches that apparently solve this (30797), but I can not download them. Is it possible to work with RAD against IOS and MAC OSX? I have downloaded the latest versions of RAD, XCODE and PAServer. Thank you, Javier.

Detecting Callstate on phone

$
0
0

Hi

A customer needs to see if an employee is busy on the phone (IOS/Android) before trying to call them.

I am looking for a way to monitor callstates on a device, and have tried the example in the Delphi Cookbook by Daniele Teti and also this example:

http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Mobile_Tutorial:_Using_the_Phone_Dialer_on_Mobile_Devices_(iOS_and_Android)

However, none of them works, at least not on my Samsung S7 phone, I can get carrier information end more, but no callstates.

Have anybody gotten the example to work, or have other suggestions on how I can solve this problem?

 

Michael

Viewing all 3212 articles
Browse latest View live


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