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

ARC and Copy-On-Write? - by: Gerhard

$
0
0
If you have many similar objects which have subobjects (like e.g. in a particle emitter), it could be useful to have an exemplar object and all the other objects have the same values except for certain subobjects.

There comes my idea for a use of weak references:

All copies of the exemplar object have weak references from their subobjects to the corresponding subojects of the exemplar object.

Only if a subobject of a copy has different values than the exemplar object the weak reference is transformed to a hard reference (by creating a new subobject to a private variable and assigning the weak reference to the private subobject).

(The same is done for the subobjects of the subobjects in the tree of subobjects).

Each object and subobject must have a variable indicating the exemplar object.

Is this an abuse of the mechanism of ARC and weak references?
Will this idea also be possible in future versions of modern programming?
Is this program style acceptable?
Or is there anything better?

Firedac returning mssql identity value in MDL - by: Marius

$
0
0
Is it possible to get the identity value from mssql when using the MDL bulk query insert?

I need this so i can fill the foreign key's in the next insert round.

Regards,
Marius

Installation of Delphi 10.2.3 aborts - by: Frederic

Sending alerts from desktop app to Android and iOS app - by: Stefano

$
0
0
Hi everybody.
I'm writing an application for descktop PC that has to send alerts to Android and iOS devices and I've never done it before so I don't know from where to start.
I have C++Builder 10.2 Pro with Mobile.
I have found some information starting from here:

docwiki.embarcadero.com/RADStudio/Tokyo/en/Push_Notifications

but perhaps I need some more basic information before...
I'm a little confused about the architecture that this desktop->mobile (perhaps descktop<->mobile) system must have.
I need a cloud service to send notifications to devices or the backend service EMS? (...what is EMS exactly?)
What is better?
Sometimes informations in docwiki.embarcadero seems to be not up to date and this doesn't help me to find the right way.

Someone can address me in the right direction?

Thanks in advance.

GDPR and fake mails - by: Ole

$
0
0
Dear …..

I would like to introduce myself, my name is Kalpesh Solanki and I am the Country Manager for your region.

I am writing to you as your maintenance has expired on your license. You have the option to buy a new license or renew your maintenance if your maintenance has expired within 1 year.

Update maintenance Subscription Benefits include:

● Convert your development team to Update Subscription and benefit from standardized version, simplifying code sharing and version control.

● Update Subscription is like insurance for your developer tools: always get the latest fixes and version updates without separate procurement process.

● You still remain in control of when you install new versions.


Come and talk to me or your partner and we can help you with your purchase.

Kind regards,


Kalpesh Solanki


Kalpesh Solanki
Partner Manager


Embarcadero Technologies Europe Ltd | www.embarcadero.com
York House | 18 York Road | Maidenhead | Berkshire SL6 1SF
This email address is being protected from spambots. You need JavaScript enabled to view it.
Office: +44 (0) 1628 684 446 | Fax: +44 (0) 1628 684 444
Skype: This email address is being protected from spambots. You need JavaScript enabled to view it.

this mail (above) is from this morgning This is not right ..
I do not understand that it is end of service agreement it was renewed on 23/03/2018 and applies to 26-03-2019

If it is the problem that you have been hacked then you must remember that GDPR. is importen
So they remember to inform that you have had a security breach

TListView issues in Tokyo - by: Kostyantyn

$
0
0
Here what I tried

ListView1 OwnerDraw:=True

procedure TForm1.ListView1CustomDrawItem(Sender: TCustomListView;
Item: TListItem; State: TCustomDrawState; var DefaultDraw: Boolean);
begin
case Item.Index of
0: ListView1.Canvas.Font.Color:=clGreen; //OK
1: ListView1.Canvas.Font.Color:=clBlue; //OK
2: ListView1.Canvas.Font.Color:=clRed; //OK
3: ListView1.Canvas.Font.Style:=[fsBold]; <No good - No bold font in Tokyo, but OK in Berlin.
end;
end;

Thanks.

Stray files appearing in Firemonkey Android app - by: Raymond

$
0
0
I have a small Android application developed in Delphi that creates and uses a few folders during its running, all under the TPath.GetPublicPath root. Every now and then, we find a file named pskc_schema.xsd in those folders, and also, more rarely, html files whose content are about consent to collection and use of personal information by Samsumg. Anybody has an idea why those files appear? They are not related to my application in anyway...

Cannot connect firebird with dbexpress or firedac - by: Peet

$
0
0
I was for many years a BDE user and trying to move away struggle hope you can help. I decided to go for the firebird database and now only experimenting with it. After sweat I could manage to connect to the employee.fdb with the isql tool of Firebird. My problem is to connect that employee.dbf file using dbexpress or Firedac in Delphi10.2 but without success. I followed the step by step instructions of www.danysoft.com/free/er.aspx.pdf but the Test Connection failed with the message : Your username and password are not defined. Ask your database administrator to setup a firebird login" which I do not understand as I could connect with isql?

Video Capture - by: Barry

$
0
0
I am trying to get video capture working under windows on my Surface Pro 3.

I have followed the example from
docwiki.embarcadero.com/RADStudio/Tokyo/en/Video_Capturing

This turns on the front camera of my SP3 when I select the camera (Front and rear appear in the devices list in my dropdown).
When I start the capture the light indicates camera is on, however no video is displayed and the OnSampleBufferReady callback is never executed.


Is there something else that needs to be done to get the capture to work?

Eigen math library GetIt - by: Eric

$
0
0
After updating from 10.2.2 to 10.2.3 it appears the Eigen math library has been 'removed' from the GetIt package manager and thus cannot be reinstalled since updating to 10.2.3.

Is anyone else using this library and has the same issue like me?

Static code analysis - by: Furkan

$
0
0
Hello, I would like to have my delphi software reviewed through static code analysis. Although there are companies that do this for other languages/platforms, I wasn't able to find one that does it for delphi. Are there any suggestions?

Using CHM help file with application - by: Garrett

$
0
0
Hi
I am using C++ Builder XE.
I am trying to trigger the opening of a help file, when the user presses the F1 button on their keyboard.
I thought I had done everything correctly, but I get no response/action when F1 is pressed.

I have created a .chm help file (using Microsoft HTML Help Workshop)
I have copied the compiled .chm file to the application directory
I have set:

In the main form, I have set the HelpFile porperty to the same .chm file.
In the main form I have included the following two lines of code:

Obviously there is a piece of the puzzle that I am missing. Any help much appreciated.
Thanks
Garrett

how to accounts for specific app in android using firemonkey - by: Delphi

$
0
0
I'm using Delphi 10.1 Berlin to develop a mobile application. From an Android mobile app, I need to create a new Account for a specific app.

How can I create the Account so that I can skip the login screen validation (Eg: Whatsapp)?

Please provide example

FlatBox2DDyn.dll - by: Gl

$
0
0
Hi. I am running Delphi 10.2 Tokyo Starter Edition on my Windows Server 2016.
While I was playing with all the Samples, I came across with FlatBox (Box2D thingie).
I was able to compile, however, could not run the program.
It looks for "FlatBox2DDyn.dll" which is nowhere to be found on my entire PC.

Following is what is on the wiki about where is the file, but it just not there.
32-bit Windows: C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\FlatBox2DDyn.dll
64-bit Windows: C:\Program Files (x86)\Embarcadero\Studio\19.0\bin64\FlatBox2DDyn.dll

I wonder what is going on? Can someone help me regarding this?

Recommend Grid load/save configuration from/to INI (extern file) at design time - by: BB

$
0
0
I need a GRID who have this capability....method to save AT DESIGN TIME the proprieties of the grid in INI file and restore AT DESIGN TIME another INI file, save before, with another structure!!! IN RAD STUDIO!

To make a collection of grid confuiguration, difefrent tables, load in design the grid column, aspect...make chenges..save tne new aspect in another extern file...

] want to design the grid aspect and fields, save in design the structure of the grid in external file and on run dynamic load this extern file structure of the grid, and after load with data...i have something with DBALTGRID from quasidata (Saving and loading a grid properties to and from a text file, a stream, a resource file/compiled resource, or the system registry)but old component...Builder c++ 6

Installation hangs when installing Interbase - by: Bill

$
0
0
Downloaded latest install today. Uninstalled previous version and then went to install the latest but when it gets to the installing Interbase stage....it simply sits there and does nothing. I cancelled out and the did another uninstall followed by an install without Interbase selected and all went Ok. Then tried a 'modify' install with only Interbase selected but that simply hung again and wouldn't finish.

Can anybody help me with this issue?

Thanks in advance.

Bill

Help needed ;) - by: n/a

$
0
0
I started with Turbo Pascal many moons ago and what made it easy to use and hooked me, was the great help (and the Turbo Debugger :). These days I still use XE2, but use a current Starter Version 10.2 to play around. One thing I found extremely dissatisfying (apart from the castrated editor) and that is the Help System which I find about as helpful as a poke in the eye.

Especially when I start scribbling a quick project I may use classes without remembering what unit those were included. Information available via [F1] is mostly either absent or simply wrong.

Have I missed to download a Help Update or is that really meant to be as painful? Usually I keep an XE2 instance open to use its help or have to use a search engine. Is the Help just as bad in the other versions?

UNKNOW ERROR when my app terminate and go back to RAD IDE in DEBUG MODE - by: Emailx

$
0
0
hi Friends,

I have here one question for anyone that can solve it! The text is a bit long to try to explain what is happening. I hope someone can find an explanation on the subject.

UNKNOW ERROR WHEN MY APP TERMINATE AND GO BACK TO RAD IDE IN DEBUG MODE

Here my problem with "trying" to do one simple apps to "Push Notifications" using:
  • PC i7 4770K, 8GB
  • Windows 10 PRO 1803
  • RAD Studio XE10.2.3 Arch
  • Project registered in Firebase service (GCM) by Google.
  • Smartphone Moto G4 (4core, 2GB), Android 7.0 Nougat (update at March/2018)
  • Smartphone connected by USB cable and access to Wifi Internet
  • Trying work with PUSH NOTIFICATION (for test)

First, I have my account in Google, and, on Firebase services, I have my project created and one apps defined.
I have my ID and Key to my project/apps! Its ok, for while!

My project in RAD Studio, is very simple:
  • 1 form FMX (in blank)
  • 1 component EMSProvider (without any changes, all default property for tests)
  • 1 component PushEvents, bind in EMSProvider, without any changes, too!
  • There is not any code in my project! Just this components above.

In my project OPTIONS, I have: (for all config Android (Release or Debug)
  • Entitlement List -> Receice Push notifications = True
  • Verions Info -> apiKey = (with and without) for test of compiling not for Firebase service (GCM) message

Here my Unit.pas


The project compiled and was sent to my smartphone, however, when trying to run I got the error message on the Debug screen of RAD Studio (not on the smartphone):

"Can not Bind Address: Address Already In Use Existing"

This for a long time, and several tests. I created more than one project and this message was always displayed.

In this way, the app was run on the smartphone, however, it was "stopped" on the app's only home screen (since there were no other forms in the app).

On the smartphone side, no messages were shown. Only on the RAD Studio screen, in Debug mode. I could, on the smartphone, run the apps and nothing was shown error.

After several attempts, finally the application was compiled and executed without any error screen in RAD Studio, however, this time, before sending the application to the smartphone, now AVG Internet Security 2018 (antivius) "got" and showed a screen saying that the file "AndroidGDB.exe" was trying to access the internet. Something that had never been told before.

By the way, I had already put the "ADB.exe" in the list of "exceptions" of AVG 2018.
Conclusion The new Antivirus with Firewall software seems to be more hostile with many applications than before, not even noticed.
********* END my 1st problem, now its ok ********

Well, now, a new clash begins between RAD Studio DEBUG MODE and My END App.


Now, after losing so much time with the above mentioned error, I come back to a new error that I was already trying with trying to create a test project for "Push Notification" messages.

Well before the above error, I was not able to understand where the error was with my project, since I had no code to promote the error that I will describe here.

Always after the application was sent to the smartphone and executed without any error, when closing it and returning to RAD Studio I had the following errors: (always in DEBUG mode):

Debugger Exception Notification: Project "NovoPush.apk" raised exception class Segmentation fault (11).

And right after the second error screen:

Debugger Exception Notification: Project "NovoPush.apk" raised exception class EAccessViolation with message 'Access violation at address 746F4E64, accessing address 746F4E64

And then Debug was terminated in RAD Studio.

Now, let's understand my side:
  • 1st, I do not have any source code typed in the project;
  • 2nd, I have only 2 components that are linked by one of their properties (EMSProvider and PushEvetns)

Nothing else! No creation of any object is created or deleted manually, as there is no source code in the project.

There is only one form, which is the main form. Nothing else!

And now, what to do to understand this error! I've been trying to figure out where the error is in the project for 4 days.

If I compile in RELEASE mode, no error is shown.

If I set the variable "ReportMemoryLeaksOnShutdown: = True;" in DPR, no further information is displayed. Only the above two error messages.

So I'm sending the source project so someone can understand and explain where the error is. Which I do not think they will find either.

In order to create this "Push Notification" project, I have already installed the "30831_rad_studio_10.2.3_android_push_notification_patch 2017-March-27" patch in the RAD Studio XE10.2.3 Tokyo, as already explained in several videos I already saw on YouTube about subject matter.

My Project:
oload.site/f/RssdHI9eVO4/MobileAndroidPushNotification.rar

My lasts line in my "AndroidManifest.template.xml"


Error message when go back to IDE in DEBUG MODE
  • 1ts, Project "NovoPush.apk" raised exception class Segmentation fault (11)
  • 2nd, Project "NovoPush.apk" raised exception class EAccessViolation with message 'Access violation at address 746F4E64, accessing address 746F4E64

My Screenshots
ibb.co/album/nxVe5a

I hope someone can lend a hand, thank you in advance.

hug

How to target a particular Android SDK - by: Karu

$
0
0
I have several Andorid SDKs installed - 22, 27, 28, and P. However I only see Andoid 25.2..5 32 Bit in the SDK Versions in the Tools->Options->SDK Manager->SDK Versions. Do I need to do some more configurations to make others appear in the SDK Versions? Thanks!

Cannot Target Win x64 Delphi Community Ed - by: Ioannis

$
0
0
Well, first of all congratulations for the release of the community Editions.
I have already download Delphi Community Edition and installed Win x32 and x64 support
BUT no matter what I do It seems I cannot enable a win x64 build.
As a last resort I uninstalled Win x32 support and I left only Win x64 support installed
but the IDE stills shows my builds as win32. Is this a typographic mistake or am I doing
something wrong? Please help...

Intell i5- 4460, 16GB RAM, Samsung 850 Evo SSD 512, Win x64 HOME
Viewing all 3677 articles
Browse latest View live


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