Posts

Showing posts from October, 2017

Can anyone helps?

Can anyone helps? Originally shared by Daniel Lu Hi, guys, I made a Fmx TFrame, then put it on a form, named TMainForm, compile and run, works fine so far. So I saved the project and close all. Then, I open this project again, shows the error "Error Creating Form: Index out of range(76). Must be >=0 and < 76. ", and failed to load the form. Can't toggle to form. Need help. Thanks. Souce code as attached. and the error message as following. https://drive.google.com/open?id=0Bxec0oUE0z_-SmpIeDcteTREaUU https://drive.google.com/open?id=0Bxec0oUE0z_-ME0xUW15Z0poY2s

Can anyone helps?

Can anyone helps? Originally shared by Daniel Lu Hi, guys, I made a Fmx TFrame, then put it on a form, named TMainForm, compile and run, works fine so far. So I saved the project and close all. Then, I open this project again, shows the error "Error Creating Form: Index out of range(76). Must be >=0 and < 76. ", and failed to load the form. Can't toggle to form. Need help. Thanks. Souce code as attached. and the error message as following. https://drive.google.com/open?id=0Bxec0oUE0z_-SmpIeDcteTREaUU https://drive.google.com/open?id=0Bxec0oUE0z_-ME0xUW15Z0poY2s

Anyone having trouble with Windows 10 latest update (build 1709)?

Anyone having trouble with Windows 10 latest update (build 1709)? Since that, Delphi won't run at all: no splash screen, no error, nothing. Tried new registry settings, disabling every addon, andy's ide fix, even a full uninstall/reinstall Both with Delphi 2010 and Delphi 10 Seattle Toughts?

Notify Me of Everything… – Part 2.1 (Rename Fix)

Notify Me of Everything… – Part 2.1 (Rename Fix) http://www.davidghoyle.co.uk/WordPress/?p=1810 http://www.davidghoyle.co.uk/WordPress/?p=1810

Marco Cantù, I wonder if this is solved (for us that get the bonus for Berlin):

Marco Cantù, I wonder if this is solved (for us that get the bonus for Berlin): https://community.embarcadero.com/answers/my-questions/konopka-signature-for-delphi-10-2-tokyo https://community.embarcadero.com/answers/my-questions/konopka-signature-for-delphi-10-2-tokyo

Here comes FixInsight 2017.11

Here comes FixInsight 2017.11 * New : Updated ignore feature: the whole folder content can be ignored * New : New rule W530: 'IFoo' interface has the same GUID with 'IBar' (Unit1.pas) * Improved : Rules O802/O803 (now it takes in account DPR file content as well) * Improved : Rule C108 (now it triggers a warning for "with A,B do;" too) * Improved : Improved parser * Fixed : False positive in W525 (a constructor that calls another constructor doesn't cause a warning anymore) * Fixed : False positive in W503 ("inherited Value := Value" doesn't trigger a warning anymore) * Fixed : False positive in O804 (now it doesn't report 'Msg is declared but never used' for Windows message methods) * Fixed : False positive in O803 (now it doesn't report a constant is not being in use when it is used as an array bound) * Fixed : False positive in O801 (now it doesn't report "string is missing c
Please can anyone tell me where to get a list of the system calls available for android? I need to be able to change from silent/vibrate/sound ASAP, but would like a list of all that are available (especially for reading/writing system settings) so I can access them as needed from Delphi.

Originally shared by Benjamin “BeRo” Rosseaux

Originally shared by Benjamin “BeRo” Rosseaux PasVulkan progress status update on Android target (IME text input) https://www.youtube.com/watch?v=a1bs6S8OWTw GitHub: https://github.com/BeRo1985/pasvulkan/ The next next steps are to implement popup menus and to finish the window main menu stuff. https://www.youtube.com/watch?v=a1bs6S8OWTw

HTML Scripter: Debugger Visualizers.

Image
HTML Scripter: Debugger Visualizers. Visualizer can be registered for any simple type or class and returns HTML, f.e. visualizer for TColor looks as following: function THtScriptDebuggerColorVisualizer.GetFieldValue(const F: TRTTIField; Value: TObject): string; var t: TColor; begin t := TColor(F.GetValue(Value).AsOrdinal); Result := Format(' $%s', [Htmlcolortohex(ControlColortoARGB(nil, t)), Htmlcolortohex(ControlColortoARGB(nil, t))]); end;

I am getting an odd exception:

I am getting an odd exception: Cannot create WIC Imaging Factory object for 'TCustomBitmapCodecWIC'. This is occuring on Windows 2003 server with code that is built with 10-Seattle and seems to run perfectly fine everywhere else. Nothing weird... In a nutshell, I'm just trying to load the application's icon from the exe to an image on the application's splash screen. This is what it is running and it is choking on the Bitmap.LoadFromStream() call: var icon: TIcon; Stream: TMemoryStream; begin icon := TIcon.Create; icon.LoadFromResourceName(HInstance, 'MAINICON'); if icon.Handle = 0 then begin Exit; end; Stream := TMemoryStream.Create; icon.SaveToStream(Stream); Stream.Position := 0; imgAbout.Bitmap.LoadFromStream(Stream); icon.Free; Stream.Free; end;

CrossVcl 0.96 just released. Start building macOS and Linux apps with Embarcadero Delphi and CrossVcl. THeaderControl and TStatusBar have been added.

Image
CrossVcl 0.96 just released. Start building macOS and Linux apps with Embarcadero Delphi and CrossVcl. THeaderControl and TStatusBar have been added. What's new: http://www.crossvcl.com/history.html More info: http://www.crossvcl.com

Hi, guys

Hi, guys, I made a Fmx TFrame, then put it on a form, named TMainForm, compile and run, works fine so far. So I saved the project and close all. Then, I open this project again, shows the error "Error Creating Form: Index out of range(76). Must be >=0 and < 76. ", and failed to load the form. Can't toggle to form. Need help. Thanks. Souce code as attached. and the error message as following. https://drive.google.com/open?id=0Bxec0oUE0z_-SmpIeDcteTREaUU https://drive.google.com/open?id=0Bxec0oUE0z_-ME0xUW15Z0poY2s

Originally shared by Jonathan Schmitt

Originally shared by Jonathan Schmitt http://jonathanschmitt.blogspot.com/2017/10/codigo-fonte-integracao-de-delphi-com-api-instagram.html

New IDE Fix Pack 6.1 for Delphi 2009-10.2 Tokyo.

New IDE Fix Pack 6.1 for Delphi 2009-10.2 Tokyo. First version that makes changes to the generated binary. - Eliminates duplicate DLL imports and delay DLL imports (Win32/64 default on) - Removes fwait (Win32, default off) - Replaces XCHG in stack frames (Win32, default off) - Replaces XCHG in virtual method calls through interfaces (Win32, default off) http://andy.jgknet.de/blog/2017/10/ide-fix-pack-6-1-released/

It's been now 4-5 days that Studio consumes 80-90% of the CPU and slows down everything.

It's been now 4-5 days that Studio consumes 80-90% of the CPU and slows down everything. A while ago someone posted something similar but was unable to locate it. Anyone has the link or has an idea what is wrong? Thanks

I'm trying to fully understand what Martin explains in his discussion of encapsulation. He uses the C and C++ languages in his discussion.

Image
I'm trying to fully understand what Martin explains in his discussion of encapsulation . He uses the C and C++ languages in his discussion. Because I do not have a background in C/C++ I'm finding it difficult to understand what he is explaining. I assume that Delphi also breaks perfect encapsulation according to Martin's explanation. I would very much appreciate some help it trying to understand what Martin is talking about. Especially within the context of how Delphi breaks perfect encapsulation. Clean Architecture pages 34-37 (C) Robert Martin Encapsulation? The reason encapsulation is sited as part of the definition of OO is that OO languages provide easy easy and effective encapsulation of data and function. As a result, a line can be drawn around a cohesive set of data and functions. Outside of that line, the data is hidden and only some of the functions are known. We see this concept in action as the private data members and the public member functions of a class. Th

Why does delphi run git.exe in the background when I open the context menu of the editor (before view this menu)?

Why does delphi run git.exe in the background when I open the context menu of the editor (before view this menu)? http://snap.ashampoo.com/uploads/2017-10-27/BB5ce9zy.png
Muy interesante... Game developement with Delphi

Few months ago, I've started a new blog about game programming with Delphi Firemonkey. It's in Spanish and I try to explain how to design and programmings games step by step.

Few months ago, I've started a new blog about game programming with Delphi Firemonkey. It's in Spanish and I try to explain how to design and programmings games step by step. This week I've started a new video series about Firemonkey programming showing how to programming a game. https://jugandocondelphi.blogspot.com.es/ https://www.youtube.com/watch?v=g1L4H7c-gxA&list=PLyeWl1NOoFSyQBysP6Bcf5Uf0H1qi33lv https://www.youtube.com/watch?v=g1L4H7c-gxA&list=PLyeWl1NOoFSyQBysP6Bcf5Uf0H1qi33lv

I'm using Delphi Tokyo 10.2 with Sybase SQLAnywhere 11 and / or 16. I've put a dbExpress TSQLConnection onto a VCL Form and can connect successfully to the database at design time. When I run the application, it gives the following error:

I'm using Delphi Tokyo 10.2 with Sybase SQLAnywhere 11 and / or 16. I've put a dbExpress TSQLConnection onto a VCL Form and can connect successfully to the database at design time. When I run the application, it gives the following error: --------------------------- Debugger Exception Notification --------------------------- Project Project3.exe raised exception class TDBXError with message 'Cannot load dbodbc*.dll library (error code 126). The dbodbc*.dll library may be missing from the system path or you may have an incompatible version of the library installed'. dbodbc11.dll and dbodbc16.dll are in SysWow64. I've tried using regsvr32 for both and tried removing all of them and copying them and registering them one by one. Does anyone have any ideas on what I can try to connect successfully at runtime?

Hello

Hello, Is possible use cortana on delphi application ? I would like use it for several commands in my application. I test SAPI but it does not recognize correctly like cortana does. Regards

Hello Everybody

Hello Everybody, I have an application developed in XE2 (Hot Fix 2 + IDE Fix Pack installed) that has started giving me the "out of memory" error message therefore I have to fix this in order to progress. I Googled it and made sure my swap file is big enough but no joy. I have found some suggestion saying I should rename some .DLLs but I want to keep this as last resort. In the end I found this article http://support.embarcadero.com/article/44279 suggesting I should compile via MSBuild. I also found this questions https://stackoverflow.com/questions/8068481/how-to-build-using-msbuild-and-delphi-xe2 that helps me a bit but I don't understand if I can run this inside the IDE and how to do it or if I have to run from "DOS windows". One last question. If I compile and run the application via MSBuild do I still have all the debug facilities in the IDE ? Sorry for the multiple questions but this is something very new to me. https://stackoverflow.com/questions/8068

Hello, Delphi developers. I I found interesting ORM framework Marshmallow which is part of Spring4D. https://bitbucket.org/soundvibe/marshmallow/wiki/Home But there is no advanced example all over the internet how to use it. Can anybody provide some examples on this awesome tool?

Hello, Delphi developers. I I found interesting ORM framework Marshmallow which is part of Spring4D. https://bitbucket.org/soundvibe/marshmallow/wiki/Home But there is no advanced example all over the internet how to use it. Can anybody provide some examples on this awesome tool?

After some tweaking TStringBuilder in FastCode is now 2x faster than the stock Builder in SysUtils.

After some tweaking TStringBuilder in FastCode is now 2x faster than the stock Builder in SysUtils. See: https://github.com/JBontes/FastCode/blob/master/FastStringBuilder.pas Here's the timing code: procedure TForm76.Button1Click(Sender: TObject); var B: FastStringBuilder.TStringBuilder; Ticks: Currency; S: string; begin S:= 'hallo'; B:= FastStringBuilder.TStringBuilder.Create; Ticks:= THiResStopWatch.Sample(procedure() var i: integer; begin B.Clear; for i:= 0 to Runs do begin B.Append(S); end; end,100); Button1.Caption:= Format('%m',[Ticks]) + ' Ticks, '; end; procedure TForm76.Button2Click(Sender: TObject); var B: System.SysUtils.TStringBuilder; Ticks: Currency; S: string; begin S:= 'hallo'; B:= System.SysUtils.TStringBuilder.Create; Ticks:= THiResStopWatch.Sample(procedure var i: integer; begin B.Clear; for i:= 0 to Runs do begin B.Append(S); end; end,100); Button2.Caption:= Forma

Hi All!

Hi All! First Edition of the Delphi Memory Management for Classic and ARC Compilers is officially released... 🎉🎇✨ Err... WAS released like two weeks ago! Sorry, it was hectic here so I forgot to announce it publicly 😊 Anyway, it's a bit longer than expected. From a planned 150 pages it grew up to the 326 (A4 format), but I guess you won't mind that. Some of you asked if there will be an ePub version... Well, yep! ePub version is here, included in the package! https://igoto.co/DelphiMM https://igoto.co/DelphiMM

It's always fun to meet a fellow Delphian :)

It's always fun to meet a fellow Delphian :) Christoph Roeper @ Kirchzarten, Schwarzwald, Germany https://twitter.com/skipperTux/status/923443828148834304 https://twitter.com/skipperTux/status/923443828148834304
Has anyone implemented the JSON-RPC protocol (2.0) on top of the DataSnap REST server?

We've got a project with a couple hundred units and forms, and we want to start using GIT for version control. I know that the latest Delphi can connect directly to GIT. The company here actually has a white-label hosted GitLab server attached to their main domain name.

We've got a project with a couple hundred units and forms, and we want to start using GIT for version control. I know that the latest Delphi can connect directly to GIT. The company here actually has a white-label hosted GitLab server attached to their main domain name. What I'm wondering is if anybody has any suggestions or can point to tutorials or a white-paper of some sort that discusses how to go about migrating an existing project to GIT? Everything I've seen talks about setting up a new project from scratch. Also nothing I've seen is Delphi specific, so I'm not sure what files we want to grab and which ones we don't.

https://emiliopm.com/2017/08/por-que-elegi-delphi/

https://emiliopm.com/2017/08/por-que-elegi-delphi/ https://emiliopm.com/2017/08/por-que-elegi-delphi/

Hi, I was using Delphi Tokyo 10.

Hi, I was using Delphi Tokyo 10.2 but I was not able to compile a simple hello world program for the osx environment. I always got the DCC exit code 3 error. Any suggestions ?
Hi, I was using Delphi Tokyo 10.2 but I was not able to compile a simple hello world program for the osx environment. I always got the DCC exit code 3 error. Any suggestions ?

Hi there

Hi there, Is there simple way to allow specify seconds in FMX.TimePicker?

https://stackoverflow.com/questions/46862820/dcef-memory-leak-in-delphi-xe2

https://stackoverflow.com/questions/46862820/dcef-memory-leak-in-delphi-xe2 Does anybody has idea of why this happens and how to fix it ? https://stackoverflow.com/questions/46862820/dcef-memory-leak-in-delphi-xe2
huh... I see the original EMD forum is down, so I went to visit the community forum...and it says, Warning,You are blacklisted user, and I can not login

Marco Cantù

Marco Cantù forums are down ... again... https://forums.embarcadero.com/

Hi everybody

Image
Hi everybody, A huge work is done, but a lot interesting development of ahead. There are a lot of ideas, which have already implemented and a lot of idea, which are going to be implemented. The first of all, i didn't provide a detail infromation about progress of my project, because there were alot of work releated with designer and searching the best approach between good user experience in mobile development and flexibility in development approach. Let me share with you just a part of done work and show you something really cool and interesting. 1. The number one - is a separated and independed form designer for Rad Studio. It cost me a lot of month for development, but result is amazing, i can implement anything what i want. You can look at screenshots and see how it looks now. It's not a final stage, i haven't finished it yet, but result is already glad me 2. Full automaticall process from creating new project type in IDE Rad Studio and finishing running new applicatio

It looks like Idera purchased Ranorex: https://blog.gurock.com/testrail-ranorex-a-winning-combination/

It looks like Idera purchased Ranorex: https://blog.gurock.com/testrail-ranorex-a-winning-combination/ Could it be a great news for Delphi testing... or will it be like SmartInspect not supporting the latest Delphi IDEs more that a year after the purchase of its parent company ? https://blog.gurock.com/testrail-ranorex-a-winning-combination/

I am using Tokyo (I have to because another person gave me a tokyo project) and I have to target android/ios.

I am using Tokyo (I have to because another person gave me a tokyo project) and I have to target android/ios. We all know that FMX is pretty broken under android and the patch fixed some issues but not all of them. I have always used the latest android sdk version BUT I didn't change the ndk (delphi installation offers v9 and the latest is 15). I use C++ and Qt but Qt is recommended with ndk version 10 (stable) since the later versions have issues. I have put in delphi (tools > SDK Libraries) a new android sdk using NDK 10 dowloaded from google and not the ndk 9 given by delphi. Could this be a solution to the rendering/crash problems of fmx android? I have noticed that a new simple app with only a webbrowser inside for example doesnt crash anymore after some time it is opened. Same thing with other apps that I made (berlin was ok but tokyo no). Also there are no rendering problems with grids, no random access violations when calling showmessage and I can render custom edits (be

I am using Tokyo (I have to because another person gave me a tokyo project) and I have to target android/ios. We all know that FMX is pretty broken under android and the patch fixed some issues but not all of them.

I am using Tokyo (I have to because another person gave me a tokyo project) and I have to target android/ios. We all know that FMX is pretty broken under android and the patch fixed some issues but not all of them. I have always used the latest android sdk version BUT I didn't change the ndk (delphi installation offers v9 and the latest is 15). I use C++ and Qt but Qt is recommended with ndk version 10 (stable) since the later versions have issues. I have put in delphi (tools > SDK Libraries) a new android sdk using NDK 10 dowloaded from google and not the ndk 9 given by delphi. Could this be a solution to the rendering/crash problems of fmx android? I have noticed that a new simple app with only a webbrowser inside for example doesnt crash anymore after some time it is opened. Same thing with other apps that I made (berlin was ok but tokyo no). Also there are no rendering problems with grids, no random access violations when calling showmessage and I can render custom edits (be

Update 3.3 for TECNativeMap, a 100% Delphi mapping component available for VCL and Firemonkey.

Image
Update 3.3 for TECNativeMap, a 100% Delphi mapping component available for VCL and Firemonkey. The main improvement of this release is support for Heatmap layer see : http://www.helpandweb.com/ecmap/en/layers.htm#HEATMAP

Is there someone who reached to make this websocket library https://github.com/andremussche/DelphiWebsockets work with an Ionic3 socket.io client?

Is there someone who reached to make this websocket library https://github.com/andremussche/DelphiWebsockets work with an Ionic3 socket.io client? The Ionic client connects to the Delphi server, but I see zero connection in ServerIO.ConnectionCount and the client doesn't receive any message sent from the server via the EmitEventToAll method. Any help is appreciated. Thanks

Delphi berlin wile compiling

Delphi berlin wile compiling [dcc32 Fatal Error] Project1.dpr(1): F1027 Unit not found: 'System' or binary equivalents (.dcu) bds.exe -rtest here compilation workes I have a hinch that option>librery changed since most components directories are gone. I have a backup of my computer but i do not know which files have changes. 1.what are the files names used for librery ,or else, names. 2 Or beter when i do bds.exe -rtest where are those option file ? Either way i need to know which file to bring from my backup P.S i tried install it did not help (I do not want to uninstall)

Delphi 10.1 was already very good.

Delphi 10.1 was already very good. But Delphi 10.2 is even better. Rock solid so far! I just regret having it installed all this time and still using 10.1. For those still not decided to move to 10.2, do it asap. Edit: I only use Delphi for Windows VCL desktop apps.

FmxLinux is a way to launch FireMonkey app in the browser. One interesting bonus of GTK+ 3 is set of backends. There is a HTML5 backend called Gtk-Broadway - https://developer.gnome.org/gtk3/stable/gtk-broadway.html

FmxLinux is a way to launch FireMonkey app in the browser. One interesting bonus of GTK+ 3 is set of backends. There is a HTML5 backend called Gtk-Broadway - https://developer.gnome.org/gtk3/stable/gtk-broadway.html We've just played with broadway and the result is amazing: https://youtu.be/67xzTHTXlrc The main limitation is only single-user mode. But maybe there is a way to support multi-users somehow, we didn't investigated this a lot. It is only server-side rendering, but it can be useful in some cases. New video - FMX Application on Ubuntu Server - https://youtu.be/qPubvI7pwC4 https://youtu.be/67xzTHTXlrc

Originally shared by Benjamin “BeRo” Rosseaux

Originally shared by Benjamin “BeRo” Rosseaux PasVulkan progress update, this time, the GUI sub-framework of PasVulkan https://www.youtube.com/watch?v=MZ0xtX5rzS0&feature=autoshare

[github pull request merged] The constants editor in DKLang (the best localization package IMHO) has the feature to *search* for constant names and values now. The code was quickly written, but this would significantly improve your productivity if you *have hundreds* of constants in your project. I wish the original author would accept my pull request since I don't want to modify the source file every time the package is upgraded.

[github pull request merged] The constants editor in DKLang (the best localization package IMHO) has the feature to *search* for constant names and values now. The code was quickly written, but this would significantly improve your productivity if you *have hundreds* of constants in your project. I wish the original author would accept my pull request since I don't want to modify the source file every time the package is upgraded. PS, DKLang is great. PS 2: In order to make this github pull request, today I have spent hours, at the end the GitKraken software was my chosen tool, since it's easy for a TortoiseSVN user like me (you still need to know some git concepts though). https://github.com/yktoo/dklang/pull/19

I stumbled upon this yesterday, very informative, accessible and also with Delphi examples - among other languages.

I stumbled upon this yesterday, very informative, accessible and also with Delphi examples - among other languages. https://sourcemaking.com

Title

Hello... I AM owner of MVCBR framework. How the name, it a MVC framework for delphi seattle late. At main folder there is MVCBrInstall... Its a set of experts tô create mvc project views and models. There are a lot of samples on exemplos folder. Thk I ll apreciate some feedback See on Git http://bit.ly/2gYj418

Been working with a Nest Home Thermostat via its API REST, as they are a iOT device -> I was able to add a simulator. i.e so I can read the current indoor temperature/humidity and even set the thermostat temperature :)

Been working with a Nest Home Thermostat via its API REST, as they are a iOT device -> I was able to add a simulator. i.e so I can read the current indoor temperature/humidity and even set the thermostat temperature :) (using the Rest components and a HTTPS component) and it looks like its working in the real world....just need to hear back if I just changed someones thermostat on the other side of the world...spooky

Ann: NexusDB Significant Update Info and New Licenses SALE

Ann: NexusDB Significant Update Info and New Licenses SALE ================================================== Greetings from the NexusDB Team! We have just released v4.13, and would like to take a moment to mention some important new features in our database products. For purchase of new licenses, please see the offer towards the end. The SQL engine has been enhanced with: The SIMILAR predicate, which introduces Regular Expression matching using the PCRE syntax! You can now do RegEx searches against any string expression (including [N]CLOBs). Example: SELECT Title FROM Movies WHERE Title SIMILAR TO '. {lord|wars}. ' IGNORE CASE The OVERLAY string function, allowing replacing parts of a string with another, in place. Example: SELECT OVERLAY(Title PLACING '- overwritten -' FROM LEFT 5 TO RIGHT 5 FROM Movies The new OVERLAY string function also supports using SIMILAR in order to use RegEx matching to determine parts to be replaced. Example: SELECT OVERLAY(Title PLACI

Retired developer. Will work remote for $200/week, cash.

Retired developer. Will work remote for $200/week, cash. Delphi 1-10.2. Many sql flavors.

Hi, I need you help! I'am working with Delphi 7 + vcl Dbisam + vcl fast report 5

Image
Hi, I need you help! I'am working with Delphi 7 + vcl Dbisam + vcl fast report 5, I need to build my sql queries with vcl dbisam, from the report, as the image is, someone could guide me. Thank you

It was unclear if I could make it to EKON this year because of too many care-taking issues that came towards me during the year, but it looks I'll be there. Fingers crossed.

Image
It was unclear if I could make it to EKON this year because of too many care-taking issues that came towards me during the year, but it looks I'll be there. Fingers crossed. A conference that runs for the 21st time is a nostalgic thing, so here a fitting picture. If people are interested, I can bring some Kylix posters (: https://entwickler-konferenz.de Originally shared by Jeroen Wiert Pluimers Nostalgia: #Delphi 7 architect inner box with Borland marking and #CodeGear mints.

Hi

Hi, I have a Delphi app ( Delphi XE10 Tokyo) with SQL Server and TFDQuery with cachedupdates=true. When I Call a save function and use transaction and FDQquery1.Applyupdates , after commiting data , and user calls again the save function in the statement FDQquery1.Applyupdates I get the exception 'SQL_NODATA'. I would be obliged if someone could give me a solution. Thank you

Imagine you've got a fairly typical client-server app built in Delphi that's connecting to pretty much any SQL-based back-end server using whatever DB connection and adapters (eg., ADOConnection and ADOQuery).

Imagine you've got a fairly typical client-server app built in Delphi that's connecting to pretty much any SQL-based back-end server using whatever DB connection and adapters (eg., ADOConnection and ADOQuery). Now, suppose you're asked to get rid of the direct server connection and adapters, and replace them with a REST-based API. Under what conditions would this make sense (or not)? Are there any videos or case studies that address such an architectural refactoring? In general, are the tools available today (in the Delphi world, at least) of sufficient "quality" or "maturity" or whatever that such an approach would make sense to employ on a regular basis? (It's a given that you'd probably need to add a service to sit between the API and the DB. I guess I'm asking if it's "easy enough" or "simple enough" to manage the additional layering in the presence of typical table maintenance activities like adding fields, tables
Originally shared by Primož Gabrijelčič

Blog post "Implementing AJAX and JSONP Support in RAD Server for ExtJS" at http://blog.marcocantu.com/blog/2017-october-ajax-jsonp-radserver-extjs.html

Blog post "Implementing AJAX and JSONP Support in RAD Server for ExtJS" at http://blog.marcocantu.com/blog/2017-october-ajax-jsonp-radserver-extjs.html http://blog.marcocantu.com/blog/2017-october-ajax-jsonp-radserver-extjs.html

How to configure DprojSplitter:

How to configure DprojSplitter: http://www.uweraabe.de/Blog/2017/10/19/configuring-dprojsplitter-to-your-needs/ http://www.uweraabe.de/Blog/2017/10/19/configuring-dprojsplitter-to-your-needs/

PostgresDAC 3.3.0 meets PostgreSQL 10!

PostgresDAC 3.3.0 meets PostgreSQL 10! Microolap Technologies is pleased to announce the availability of PostgresDAC 3.3.0. PostgresDAC 3.3.0 introduces support for PostgreSQL 10 - a major new version of the world's most advanced Open Source database. https://pgolub.wordpress.com/2017/10/19/postgresdac-3-3-0-meets-postgresql-10/
Is there any way (IDE expert?) to automatic set encoding of each PAS file in UTF-8 instead of ANSI?

Fellow Delphi Developers!

Image
Fellow Delphi Developers! We are glad to introduce new VCL Style "Zodiac"! http://www.delphistyles.com/vcl/Zodiac.html

https://quality.embarcadero.com/login.jsp

Image
https://quality.embarcadero.com/login.jsp

Fellow Delphi developers

Image
Fellow Delphi developers, This is with great pleasure that we announce the immediate availability of HelpNDoc 5.4, an easy to use yet powerful help authoring tool producing CHM help files, responsive HTML 5 and mobile Web Sites, DocX and PDF manuals, ePub and Kindle eBooks as well as Qt Help files from a single source. HelpNDoc is Free for personal use and evaluation purposes and is available at: https://www.helpndoc.com HelpNDoc 5.4 provides many new features and enhancements including new command line commands and options to automate documentation generation, enhanced user interface and documentation generation and much more... You can learn more about this update at: https://www.helpndoc.com/news/2017-10-19-powerful-new-command-line-options-automate-documentation-generation-helpndoc-54 Download HelpNDoc now and use it for free for personal and evaluation purposes: https://www.helpndoc.com/download Follow our step-by-step video guides to learn how to use HelpNDoc: https://youtu.be/u1

Windows 10 fall creators update is now Available

Windows 10 fall creators update is now Available Are the any informations on Dephi Ide Berlin and Tokyo compatible ? Is there again the problem of slow-ide for bpl loading on Berlin / Tokyo,? https://www.microsoft.com/it-it/software-download/windows10 https://www.microsoft.com/it-it/software-download/windows10

oops

oops EDIT: TCategoryPanel issue with SubComponents (TLabeledEdit) https://quality.embarcadero.com/browse/RSP-19256 https://quality.embarcadero.com/browse/RSP-19256

Originally shared by Boian Mitov

Originally shared by Boian Mitov Now VideoLab, VisionLab and BasicLab from Mitov Software now support Cross Platform Video Capture in Windows, MAC, iOS, and Android! Download and try them in Delphi! :-) #Delphi #OpenWire

Is the new Delphi update 10.2.2 planned to be released in November or December? The one with Dark IDE Theme (and I REALLY HOPE on a working android implementation).

Is the new Delphi update 10.2.2 planned to be released in November or December? The one with Dark IDE Theme (and I REALLY HOPE on a working android implementation). I have seen that it's scheduled in 2017 in the roadmap

I built a DelphiAST -> source engine. Feel free to check it out at: https://github.com/JBontes/DelphiAST_Source.

I built a DelphiAST -> source engine. Feel free to check it out at: https://github.com/JBontes/DelphiAST_Source . It does not add any new syntax, yet, but it does take every file I've tried and reproduces the original source code from the abstract syntax tree. Feel free to report any files that do not get processed correctly, I'll post any fixes needed to Roman Yankovsky DelphiAST project. The fixes used to get to this point have already been submitted there. I have not released the source code yet, because I plan to make an IDE extension that expands the Object Pascal language. A few simple constructs like a += 1; already work (in my test version, which is a bit more advanced) and a few more, like operator overloading for interfaces, still need some work on the symbol table engine. https://github.com/JBontes/DelphiAST_Source

Hi

Hi, I want to use Preview (TcxGridPreview) of cxGrid, to show an extra text line related to a record, the extra text line is being held in a calculated field. I have associated the calculated field to Preview.Column and set Preview.Visible to True, but can't see what I would expect, i.e. an extraline following record, what am I missing Thanks, Asim

FmxLinux 1.12 just released. Start build UI Linux apps with Embarcadero Delphi and FmxLinux. Time-Limited offer for personal license.

Image
FmxLinux 1.12 just released. Start build UI Linux apps with Embarcadero Delphi and FmxLinux. Time-Limited offer for personal license. History at: http://fmxlinux.com/history.html More Info at: http://www.fmxlinux.com

C/C++ to Delphi Converter

C/C++ to Delphi Converter I just received my copy of "Clean Architecture" by Robert C. Martin (Uncle Bob). All of the examples are in C/C++ and it's very difficult for me to understand. Does anyone know of a C/C++ to Delphi converter?

Has anyone heard news on when Berlin will receive a Subscription Update or hotfix to make it work properly with XCode 9 and the simulators?

Has anyone heard news on when Berlin will receive a Subscription Update or hotfix to make it work properly with XCode 9 and the simulators? I’m using the recommend terrible workaround for testing and deploying to a device but it’s not great given Berlin is still a supported IDE and Tokyo is still so broken I can’t upgrade yet. Seriously Idera where are your priorities on keeping thing working? I really doubt as many people care about new features as the existing core ones working properly!!

Does anybody know of a Delphi TFS Api implementation?

Does anybody know of a Delphi TFS Api implementation? Thanks!

FixInsight updates

FixInsight updates Anyone know if FixInsight is still under development? Forum looks abandoned and issues are not fixed

Just a shout out to FMXLinux

Just a shout out to FMXLinux If you already use FMX on Mac OSX and you want to also target Linux 64 bit Desktop (e.g Unbuntu) then this makes it easy to port :) good work guys! Brian Hamilton

Even if you are not following my "Writing a Simple DSL Compiler with Delphi" series, you may be interested in this intermezzo ...

Even if you are not following my "Writing a Simple DSL Compiler with Delphi" series, you may be interested in this intermezzo ... No need to read previous articles, you can just read this one. Originally shared by Primož Gabrijelčič A gentle introduction to a simple compiler, written in a Literate Programming style.

I'm thinking of writing a parser for EBNF (Extended Backus-Naur Form). The BNF is the format that one often finds in computer books to describe the syntax of a statement.

I'm thinking of writing a parser for EBNF (Extended Backus-Naur Form). The BNF is the format that one often finds in computer books to describe the syntax of a statement. Any ideas? Is there perhaps someone that has created such a solution? Does anyone have suggestions how I should go about to do this?

Since recently there was the discussion about the QuickSort implementation in Delphi suffering from the worst case performance and possible stack overflow I looked into IntroSort (see https://en.wikipedia.org/wiki/Introsort) and the Microsoft implementation (see http://blog.teamleadnet.com/2013/08/introsort-algorithm-in-net-45-internal.html)

Since recently there was the discussion about the QuickSort implementation in Delphi suffering from the worst case performance and possible stack overflow I looked into IntroSort (see https://en.wikipedia.org/wiki/Introsort ) and the Microsoft implementation (see http://blog.teamleadnet.com/2013/08/introsort-algorithm-in-net-45-internal.html ) Here is my current implementation - there might be some room of improvement (currently just testing with long array of Integer which performs approx 30% faster on random data) and only is a bit slower on reverse ordered input than the RTL implementation: https://bitbucket.org/snippets/sglienke/64LG6b/introsort Please let me know your feedback and improvement suggestions.

Join us at EKON 21 next week!

Image
Join us at EKON 21 next week! The abstraction layer FNC (Framework Neutral Components) is introduced and explained and with the help of this FNC layer, Bruno Fierens will demonstrate how to create a UI control from scratch for VCL, FMX and LCL. https://goo.gl/hqMHyu

Anyone with debug problems in Delphi Tokyo?

Anyone with debug problems in Delphi Tokyo? In my case it doesn't align the debug lines with the editor lines correctly. The selected/highlighted line is not the one that is being executed.

TMS FNC UI Pack v2.1 released with a new TableView control: https://goo.gl/wkHLSS

Image
TMS FNC UI Pack v2.1 released with a new TableView control: https://goo.gl/wkHLSS FNC = Framework Neutral Components to master application development in VCL + FMX + LCL

LMD 2017.7 installers are available now in public (Trials) and new LMD 2017 download areas (full versions).

LMD 2017.7 installers are available now in public (Trials) and new LMD 2017 download areas (full versions). Review changes of this release on history page. This is a minor release and required only, when you need certain fixes. https://lmd.de/news/new-lmd-2017-7-installers-available https://lmd.de/news/new-lmd-2017-7-installers-available

A Singleton in Delphi Tokyo

A Singleton in Delphi Tokyo I have some code that appears to have stopped working. We have had every version from XE7 right up until Tokyo and I have a singleton in there for doing Debugging to Log files...... For IPR reason I cannot include the source code, but safe to say I used the pattern described in: http://edn.embarcadero.com/article/22576 However, we made a few mods, so: var debugger: TuexDebugLogger = nil; debuggerRefCount: Integer = 0; {* **************************************************************************** * Class : TuexDebugLogger * Function : NewInstance * Arguments : None * Action : Overriden NewInstance for singleton * Returns : An object pointer *******************************************************************************} class function TuexDebugLogger.NewInstance: TObject; begin if debugger <> nil then begin Result := debugger; end else begin Result := inherited NewInstance; end; Inc( debuggerRefCount ); end; {***

Hi!

Hi! Anyone here with an "F2092 Program or unit '?' recursively uses itself" error in Tokyo? I have this error in Tokyo but the same project compiles ok in Berlin. Is this some issue with Tokyo only? Can't find the problem in my project files. Thanks.
What do you use in your Delphi projects when it comes to do web scraping ?
When it comes to compare two strings and see how similar they are, what do you use ? Is there any class/component available ?

CrossVcl 0.95 just released. Start building macOS and Linux apps with Embarcadero Delphi and CrossVcl. Now with full clipboard support.

Image
CrossVcl 0.95 just released. Start building macOS and Linux apps with Embarcadero Delphi and CrossVcl. Now with full clipboard support. What's new: http://crossvcl.com/history.html More Info at: http://www.crossvcl.com

New string builder that 5x faster than the Delphi built-in one :)

New string builder that 5x faster than the Delphi built-in one :) https://github.com/nglthach/NTDEStringBuilder

What IDE you guys use? Write comments!

What IDE you guys use? Write comments! As for me - 2010 on work and XE8 at home :)
Is it still possible to access QC?

Originally shared by Thomas Mueller (dummzeuch)

Originally shared by Thomas Mueller (dummzeuch) Jeroen has submitted two enhancements to GExperts: Grep search makes IDE unresponsive when searching massive amounts of directories with non-matching files Allow delete key in grep search `Results` pane to delete an entry Thanks! I am still working on the… http://blog.dummzeuch.de/2017/10/14/enhancements-to-gexperts-grep/

Hi guys

Hi guys, Has we know Apple have finally opened the Access to NFC library, and it's now easy to make your iOS apps read nfc tags, there is this good example. https://github.com/hansemannn/iOS11-NFC-Example and its works just fine, my question is : is there any example for Delphi Firemonkey? any library? https://github.com/hansemannn/iOS11-NFC-Example

Zombies took over my IDE.

Zombies took over my IDE. All of the sudden and without compiling or building the project, I get an internal error (F2084) in a unit I haven't opened for some time. The strange thing is that the project compiles and builds without any internal errors. Git shows that the IDE adds a blank line in the end. I saved the unit, put some code to move the end line further down, restarted the IDE but nothing works. Anyone any ideas? It is become annoying as I am typing the IDE takes me to the other unit every 3 minutes now.

Hello, My name is Eric

Hello, My name is Eric, I'm from Brazil, but I'm looking for professionals opportunities in Canada as programmer. I'm working with Delphi 7, XE3 and XE6 since 2013. Please if you have an opportunity, feel free to text me, will be a pleasure to clarify more about my experiences and skills.

I'm trying to compile TOOLSAPI with Berlin and Tokyo, but two files seems to be missing: PersonalityConst.pas and DockForm.pas

I'm trying to compile TOOLSAPI with Berlin and Tokyo, but two files seems to be missing: PersonalityConst.pas and DockForm.pas If anybody can assist it would be great. I have also logged it with EMBT, so you votes will help in this regard: https://quality.embarcadero.com/browse/RSP-19230 https://quality.embarcadero.com/browse/RSP-19230

Is there a difference between the following two statements?

Is there a difference between the following two statements? EDatabaseError = class(Exception); EDatabaseError = class(Exception) end; I'm 96.7% sure both are equivalent, but I may be mistaken.

Delphi VCL #2

https://www.youtube.com/watch?v=43QoKZsysrk&feature=player_embedded

Project Manager for Delphi

Project Manager for Delphi https://github.com/alefragnani/delphi-james
Hi to al! I am newbie here. I always interest in remote work

Fellow Delphi Developers

Image
Fellow Delphi Developers, We are glad to introduce new "RegalBlue Clear Modern" FM style (Windows Modern template with styles for multiview control, additional icons, thin form border and scrollbars + specific style for tabcontrol): http://www.delphistyles.com/fmx/RegalBlueClearModern.html Also Several FM Styles was updated: - "Madison Dark" (improved and updated graphics, editors and listboxes now are semitransparent, gradients and some details now are more flat) http://www.delphistyles.com/fmx/madisondark.html - "Sienna Green Light" (added second variant with light border) http://www.delphistyles.com/fmx/SiennaGreenLight.html - "Charcoal Expressive" (improved and updated graphics) http://www.delphistyles.com/fmx/CharcoalExpressive.html - "Material White Smoke" (added second variant with another style for combobox, popupbox) http://www.delphistyles.com/fmx/MaterialWhiteSmoke.html
I updated My Delphi 10.1 Berlin to update 2 and am now finding that on exiting the IDE I see an invalid pointer operation with no ability to identify what is causing it. Does the IDE maintain a log anywhere? I imagine it is a bpl causing it, but would prefer to track it down without having to progressively enable and disable the various components I am using.

Little demo for the Desktop Duplication API

Little demo for the Desktop Duplication API https://github.com/tothpaul/Delphi/tree/master/DesktopDuplicationAPI https://github.com/tothpaul/Delphi/tree/master/DesktopDuplicationAPI

I try use PPL and ITask, but I get strange things.

I try use PPL and ITask, but I get strange things. Example code (console, mini app): https://pastebin.com/aLGYwZfB Results: First Test 1 thread - Loop count: 1000000, time: 3447 ms Second Test 4 thread - Loop count: 1000000, time: 13232 ms But when I run only second test (without first) I get: Second Test 4 thread - Loop count: 1000000, time: 4531 ms 13323 vs 4531 ms, why?? Delphi Tokyo https://pastebin.com/aLGYwZfB

I don't understand why I'm getting EAccessViolation. This happens when closing my application.

I don't understand why I'm getting EAccessViolation. This happens when closing my application. I'm basically displaying frames. I'm calling a "Start" method after displaying them. procedure TfrPicpic.Start; begin if Assigned(AnonymousThread) then AnonymousThread.Terminate; pnDeviceNotReachable.Visible := false; pnDeviceNotReachable.Align := alNone; AnonymousThread := TThread.CreateAnonymousThread( procedure() var isopen: boolean; begin while not AnonymousThread.CheckTerminated do begin if Assigned(Connection) then isopen := PortIsOpen(5432, Connection.Server); AnonymousThread.Synchronize(nil, procedure() begin if not isopen and Assigned(pnPicpicEteinds) then begin pnDeviceNotReachable.Align := alClient; pnDeviceNotReachable.Visible := true; end else begin p

Hello! At what time does a TPersistent object (at runtime) receive the data assigned to it through the Object Inspector? Is there an event for this?

Hello! At what time does a TPersistent object (at runtime) receive the data assigned to it through the Object Inspector? Is there an event for this? Thank you.

Hi

Hi, For years, when I hover the mouse cursor above a component in the component toolbar (I use the classic undocked editor setting with components on the horizontal toolbar) I never get any tooltip showing me the name of the component if a project is open. I have them only when there is no open or a blank project. Any one with the same problem? Or better, a way to fix this? Sometimes it's convenient to know which component you're going to click instead of going through the search field Thanks for any help.
Anyone know of a Delphi db component set that has support for SAP HANA 2.0+?

I'm on Delphi Professional 10.2 update 1.

I'm on Delphi Professional 10.2 update 1. Code completion (Ctrl+Space) does not work any more in my project (mouse just show busy cursor and that's it). When I clean the project, it works, but after first recompile is stops working. Any fix for this?

Will we ever see class operators on classes in Delphi?

Will we ever see class operators on classes in Delphi? So far only records can have them! I know that iOS can have them but will the next update bring them?? Or at least has someone discussed about it?
Will we ever see class operators on classes in Delphi? So far only records can have them! I know that iOS can have them but will the next update bring them?? Or at least has someone discussed about it?

Exactly 15 years ago at tmssoftware.com

Image
Exactly 15 years ago at tmssoftware.com

Document and test your REST API using OpenAPI/Swagger support in TMS XData:

Document and test your REST API using OpenAPI/Swagger support in TMS XData: https://www.tmssoftware.com/site/blog.asp?post=428 https://www.tmssoftware.com/site/blog.asp?post=428

Jeg søger en dygtig Delphi udvikler til Danvægt A/S i Danmark.

Jeg søger en dygtig Delphi udvikler til Danvægt A/S i Danmark. https://www.linkedin.com/pulse/jeg-s%C3%B8ger-en-ny-kollega-til-software-udvikling-kim-bo-madsen/

BrintToFront

BrintToFront SetWindowPos doesn't work at all @ Delphi 10.2 Tokyo. I used to write a code in FormKeyUp event SetWindowPos(Form1.Handle, HWND_TOP, Form1.Left, Form1.Top, Form1.Width, Form1.Height, SWP_SHOWWINDOW); ================================================== Thank you for everyone help me by reply. I think I was wrong that I didn't make it clear the question above. I was trying to make 2 forms and would like to popup main form when click F10 key on sub form. actually I was trying same situation at Delphi 7, Delphi 10.1 and Delphi 10.2. so that I have seen it works at 7 and 10.1 but 10.2 didn't. anyway I have solved this question after delete some code in dpr file. Application.MainFormOnTaskbar := True; After delete it, it works well. thank you for all anyway.

Originally shared by Boian Mitov

Originally shared by Boian Mitov My 4th Video Processing with Delphi article (Video Layers and Effects) has just been published in the "Blaise Pascal Magazine" :-) #Delphi #OpenWire
Does anyone know if the TMS Flexcel trial allows you to compile an EXE and have it run on a machine without Delphi? We have a client that has issues with running the Excel automation object (they've screwed around with his virtual machine -- don't ask). Our current code uses the automation object to read XLSX files. However some machines have two versions of EXCEL loaded (again , don't ask), and depending on which one is loaded last, it can't read XLSX files (just XLS). Anyhow, I wanted to prove that the Flexcel components would work on his machine before we buy a site license

CrossVcl 0.94 just released. Start building macOS and Linux apps with Embarcadero Delphi and CrossVcl.

CrossVcl 0.94 just released. Start building macOS and Linux apps with Embarcadero Delphi and CrossVcl. What's new: - Added: Find and Replace dialogs - Added: Bunch of new GDI+ APIs - #106: Tbitbtn set as Kind as OK - #105: Stub for createellipticrgn - #104: TSpinEdit unknown - Fixed: Lots of minor issues Roadmap: http://crossvcl.com/roadmap.html Pre-Order with good discount available. New CrossVcl + FmxLinux Bundle at: http://crossvcl.com/order.html More info at: http://www.crossvcl.com

Hi

Hi i have a problem with Amazon S3, Berlin, when i call a : StorageService.GetObjectProperties work fine, but if file have these chars: ( ) in file name then StorageService.GetObjectProperties return Always false. Are there any encode or other ? StorageService.GetObjectProperties('mydeploy-bck', 'Dir/SubDir/XXXXXYYY(A)ZZZZ.ZIP', Properties, MetaData) code: function Amazon_Download_File_Progress(myConnectionInfo: TAmazonConnectionInfo; sBucketName, sFileLocale, sFileRemoto: string;OnProgress_BEGIN,OnProgress:TOnProgressEvent;MyProgressBar1:TProgressBar): Boolean; var ResponseInfo: TCloudResponseInfo; StorageService: TAmazonStorageService; ObjectName: string; FileStream: TStream; ProgressStream: TProgressStream; MetaData: TStrings; Properties: TStrings; ContentLength: Int64; // ResultFileStream: TMemoryStream; begin Result := False; StorageService := TAmazonStorageService.Create(myConnectionInfo); ResponseInfo := TCloudResponseInfo.Create; try

I have a question regarding Cyclometric Complexity.

I have a question regarding Cyclometric Complexity. I'm looking to include a number of metrics in my Browse and Doc It plug-in and I've been researching the above (wikipedia and the metric notes in RAD Studio) and they mention IF statement and later on conditional loops but they are silent on CASE statements. If an IF statement increases the complexity by 1 should a CASE statement increase the complexity by at least 1 if not more due to the number of branches?

2 synedit sites

2 synedit sites https://github.com/TurboPack/SynEdit >> compile in Berlin from getit https://github.com/SynEdit/SynEdit >> dose not compile 2'nd seem to be the latest in procedure TSynJavaSyn.Next; first has 'A'..'Z', 'a'..'z', '_', '$', 'À'..'Ö', 'Ø'..'ö', 'ø'..'ÿ': IdentProc; >> OK second has which is updated 4 month ago 'A'..'Z', 'a'..'z', '_', '$', WideChar(#$C0)..WideChar(#$D6), WideChar(#$D8)..WideChar(#$F6), WideChar(#$F8)..WideChar(#$FF): IdentProc; but the error is [dcc32 Error] SynHighlighterJava.pas(877): E2011 Low bound exceeds high bound Which is the formal site? it seem to be the second one. https://github.com/TurboPack/SynEdit

Fun code snippet of the day :-)

Fun code snippet of the day :-) Exit( TypeInfo().GetSinglePropertiesRecursive( Self, TOWPinTypeObject ).Query().Contains( function( APropertyObject : TRecursiveInfo ) : Boolean begin Result := APropertyObject.Element.Value[ APropertyObject.Owner ].AsType .IsConnected(); end )); Checks if any sub property of the component has any type of connected OpenWire pin, using the Mitov.Runtime RTTI ;-)

I need help with TVAlue and IsObject and IsObjectInstance.

I need help with TVAlue and IsObject and IsObjectInstance. So, I have a Dictionary with . The idea is to store different types of data linked to tags. I now write dictionary.add('John', '123); dictionary.add('John List', myStringList); When I want to retrieve 'John List' I go this: newList:=dictionary.Items['John List].AsType ; Now, I want to free the dictionary and before this I iterate the items and free them. Depending on the use, myStringList may be freed somewhere else in the code. So, I do this: var tmpValue: TValue; tmpObject: TObject; begin for tmpValue in dictionary.Values do if tmpValue.IsObject then begin tmpObject:=tmpValue.AsObject; if Assigned(tmpObject) then FreeAndNil(tmpObject); end; end; Now, if I don't free myStringList this code works correctly. If the list is Freed (or FreeAndNil) the if IsObject is always performed and, also, the if Assigned. I have tried with IsObjectInstance (which would m

IDE Notification 1.1b Bugfix

IDE Notification 1.1b Bugfix http://www.davidghoyle.co.uk/WordPress/?p=1816 http://www.davidghoyle.co.uk/WordPress/?p=1816

Ok, this is weird.

Ok, this is weird. I have an FMX project, and I accidentally deleted the form file (just the .FMX file). I didn't realize it until I opened the project, and it gave me some errors. So I copied it from a backup copy, but now when I do a full build, I get a bunch of these errors: [dcc32 Hint] H2161 Warning: Duplicate resource: Type 12 (CURSOR GROUP), ID 32761; File c:\program files (x86)\embarcadero\rad_studio\19.0\lib\Win32\release\Controls.res resource kept; file c:\program files (x86)\embarcadero\rad_studio\19.0\lib\Win32\release\FMX.Controls.Win.res resource discarded. I think there are some wires crossed, and it thinks the controls are both VCL and FMX. I can open another FMX project and do Build and it works fine. This one keeps giving me these errors for every visual control on the form.

Ok, this is weird. I have an FMX project, and I accidentally deleted the form file (just the .FMX file). I didn't realize it until I opened the project, and it gave me some errors. So I copied it from a backup copy, but now when I do a full build, I get a bunch of these errors:

Ok, this is weird. I have an FMX project, and I accidentally deleted the form file (just the .FMX file). I didn't realize it until I opened the project, and it gave me some errors. So I copied it from a backup copy, but now when I do a full build, I get a bunch of these errors: [dcc32 Hint] H2161 Warning: Duplicate resource: Type 12 (CURSOR GROUP), ID 32761; File c:\program files (x86)\embarcadero\rad_studio\19.0\lib\Win32\release\Controls.res resource kept; file c:\program files (x86)\embarcadero\rad_studio\19.0\lib\Win32\release\FMX.Controls.Win.res resource discarded. I think there are some wires crossed, and it thinks the controls are both VCL and FMX. I can open another FMX project and do Build and it works fine. This one keeps giving me these errors for every visual control on the form.

Originally shared by Benjamin “BeRo” Rosseaux

Originally shared by Benjamin “BeRo” Rosseaux I did it again :) https://github.com/BeRo1985/rnl RNL - Realtime Network Library - The opensource reliable UDP network library for real-time games RNL is an UDP-based network library for real-time applications and games, inspired by ENet, yojimbo, libgren, and so on. https://github.com/BeRo1985/rnl

How to manage dependencies in Delphi?

How to manage dependencies in Delphi? I am involved in the refactoring of some legacy Delphi code. One of the issues I am facing is that multiple project share a multitude of pascal units at the source code level. This introduces numerous ripple effects in the code base. I would like to break this into manageable boundaries by introducing code libraries. These libraries/units would in turn either export interfaces or core classes. My question: how should these units be packaged and distributed? Is it right at first approximation to consider the dcu file as a binary unit similar to an assembly in the .net world? If not what would be the most appropriate approach?
How to manage dependencies in Delphi? I am involved in the refactoring of some legacy Delphi code. One of the issues I am facing is that multiple project share a multitude of pascal units at the source code level. This introduces numerous ripple effects in the code base. I would like to break this into manageable boundaries by introducing code libraries. These libraries/units would in turn either export interfaces or core classes. My question: how should these units be packaged and distributed? Is it right at first approximation to consider the dcu file as a binary unit similar to an assembly in the .net world? If not what would be the most appropriate approach?

I try use FastMM4 to tracking bottleneck in allocating memory.

I try use FastMM4 to tracking bottleneck in allocating memory. I was inspired by this Primož movie: https://www.youtube.com/watch?v=p-5mJyXvmrc When I turn off FullDebugMode and turn on LogLockContention then I get compiler error: [dcc32 Error] FastMM4.pas(3274): E2003 Undeclared identifier: 'DebugFillMem' But when I turn on FullDebugMode then code with Collector is ommited: function FastGetMem() [...] {$ifdef LogLockContention} {$ifndef FullDebugMode} <--- this is correct? if Assigned(ACollector) then begin GetStackTrace(@LStackTrace, StackTraceDepth, 1); ACollector.Add(@LStackTrace[0], StackTraceDepth); end; {$endif} {$endif} How to correct check bottleneck in memory usage? https://www.youtube.com/watch?v=p-5mJyXvmrc

Embarcadero Forums are down for 2 days now, :(

Embarcadero Forums are down for 2 days now, :( Tomcat is crashing ... https://forums.embarcadero.com/index.jspa
Ok. I give up. I am sure I am missing something obvious but when you have set up deployment settings to debug an application on a different machine, how do you go about debugging the application locally again? I am debugging a high DPI application and want to switch between a high DPI laptop and my development machine. There must be a simple method of achieving this? Using Delphi Tokyo 10.2.

Please help me to print QR code from Firemonkey application to Bluetooth ESC/POS receipt printer.

Please help me to print QR code from Firemonkey application to Bluetooth ESC/POS receipt printer. Does anyone can send me example app?

Hello

Hello, nntp forums reject my password, any change out there ?

Hello

Hello, I am looking for prestashop sync with delphi VCL app, any recomendations ? Thank you

Can anyone help me understand why I am not able to drop the ScrollBox2 in a TabItem?

Image
Can anyone help me understand why I am not able to drop the ScrollBox2 in a TabItem? I get this behaviour very often and of course I don't know what to do. It feels like all the elements are kind of locked. Does anyone face this too or any ideas why this is happening? Thanks

Can anyone help me understand why I am not able to drop the ScrollBox2 in a TabItem? I get this behaviour very often and of course I don't know what to do. It feels like all the elements are kind of locked. Does anyone face this too or any ideas why this is happening?

Image
Can anyone help me understand why I am not able to drop the ScrollBox2 in a TabItem? I get this behaviour very often and of course I don't know what to do. It feels like all the elements are kind of locked. Does anyone face this too or any ideas why this is happening? Thanks

I have decided to write my own localization component that works with FMX and VCL. Most important, it's free of course! Here the details: https://delphitipsandtrick.blogspot.it/2017/10/delphi-tlanguage-localizaton-tool.html

I have decided to write my own localization component that works with FMX and VCL. Most important, it's free of course! Here the details: https://delphitipsandtrick.blogspot.it/2017/10/delphi-tlanguage-localizaton-tool.html Basically there is a language editor that creates a json file with the localized strings. Then this file will be loaded in the program as resource (Project > Resources and Images > Add). The component simply loads the resource file, parses the json and outputs the string. I wanted to share it in case it would be useful to someone even if I recognize that this is far away from perfect, performant, high quality. I have written this because I have some android/ios apps with some text inside (20/30 words not so much) and I really had to be able to have 2 or 3 languages. I have decided this to work with json and resources but let me know your opinions! I am not an expert, this was the easiest solution I could find. Also I would like to be able to localize compo

Something small but useful.

Something small but useful. https://community.embarcadero.com/blogs/entry/new-in-10-2-1-debug-visualisers-for-delphi-generics https://community.embarcadero.com/blogs/entry/new-in-10-2-1-debug-visualisers-for-delphi-generics

Just curious, in which version was the dependency directive introduced? As in

Just curious, in which version was the dependency directive introduced? As in procedure X; external 'somelib' dependecy 'otherlib'; See: http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Procedures_and_Functions_(Delphi) http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Procedures_and_Functions_(Delphi)

I am looking for a JSON unmarshaller, that takes the JSON string and apply it to the object (and not take an object and try to apply the JSON to it).

I am looking for a JSON unmarshaller, that takes the JSON string and apply it to the object (and not take an object and try to apply the JSON to it). Example: SuperObject ( https://github.com/hgourvest/superobject ) when unmarshalling, it iterates over the object/record fields and tries to apply the JSON to it. This is a problem if the type you unmarshalling to is a descendant of TInterfaceObject, as there is the FRefCount field What I would like: * an unmarshaller that iterates through the JSON, and searches the object/record for the field (which could be annotated with the JSON field that it handles), and * an [Ignore] attribute, so if there isn't a field for that JSON field isn't handled, it will be skipped (and not error out), and * an attribute to say what a concrete object to use (that way, the field could be an interface, but you can specify the TObject that implements the interface and it knows how to handle it). Does anyone know if this unarshaller exists in Delphi? or

I don't understand the IDE some times.

I don't understand the IDE some times. I have created frames more than 100 times in FMX, added them in a new form in TabControls and added other components (Labels, etc.). Now, I created a new TFrame but when I add it in a form it behaves like it is locked. I can't add it in a TabItem and can't add any other components in it. Anyone has any idea what is wrong? Thanls
Ok, I'm proceeding as I write this. But anyone know how to easily put 121 edit boxes on a scrollbox easily (At design time -- I could do it at runtime, but I'm choosing to do it at design time)? (I'm doing it, but it's painful)

Happy Birthday to Jim McKeeth!

Image
Happy Birthday to Jim McKeeth! Thank you for all of your dedication to the Delphi Community!

Usually I don't really care about Delphi's way of doing it, but this one got me thinking what am I missing here:

Usually I don't really care about Delphi's way of doing it, but this one got me thinking what am I missing here: In one simple unit I use SelectDirectory and DirectoryExists functions. Both from Vcl.FileCtrl. All working good, until I noticed the message: W1000 Symbol 'DirectoryExists' is deprecated: 'Use SysUtils.DirectoryExists instead'. So, now instead of using Vcl.FileCtrl only for both functions, I need to use SysUtils unit and prefix SysUtils.DirectoryExists. I don't get this. If I use 3rd Party units, I get it, I need to prefix if they use same names as Delphi's own functions. But for Delphi's source functions... can't they come up with a solution where this is not needed and deprecated functions are just not used. Or am I missing something here and this makes a lot of sense, I'm just not that experienced Delphi developer, yet?

Slashdot drew my attention to this ressearch ...

Slashdot drew my attention to this ressearch ... http://ttendency.cs.ucl.ac.uk/projects/type_study/ An argument for languages like Delphi. http://ttendency.cs.ucl.ac.uk/projects/type_study/

We are glad to introduce few new FM Styles special for Ubuntu, Windows and macOS:

Image
We are glad to introduce few new FM Styles special for Ubuntu, Windows and macOS: - "Ubuntu Clear Fantasy" (FMXLinux required) http://www.delphistyles.com/fmx/UbuntuClearFantasy.html - "macOS Zodiac" http://www.delphistyles.com/fmx/MacOSZodiac.html - "Windows Zodiac" http://www.delphistyles.com/fmx/WindowsZodiac.html

Originally shared by C++Builder

Image
Originally shared by C++Builder So true! :D

I think the Interbase marketing team have given up.... :-)

Image
I think the Interbase marketing team have given up.... :-)

Hi

Hi, Is there any image editing components available for FMX on android and IOS. What I am looking for is the ability to 1. Open an image or take a photo. 2. Ability to draw lines with different brush size or color (Fill) sections. 3. Ability to write text. 4. Crop image. 5. Save to a file or stream. Thanks

I would like to have a property on all forms in project that indicates if the form has been translated to another language or not. So, I was thinking of adding a simple Translated: boolean; public property to TForm, so they would all get this new property.

Image
I would like to have a property on all forms in project that indicates if the form has been translated to another language or not. So, I was thinking of adding a simple Translated: boolean; public property to TForm, so they would all get this new property. But the problem I have now is that compile/build doesn't create new Vcl.Form.dcu file. I assume it has something to do with Library settings, folders, but can't really figure out how to set that it would build new .dcu file so I can use it. Can somebody give me some pointers what I can do? I use Delphi 10.1 Berlin; I have permissions to write in C:\Program Files (x86)\Embarcadero\Studio\18.0\lib\win32\release and C:\Program Files (x86)\Embarcadero\Studio\18.0\lib\win32\debug folders. Here is my Library Directories settings screenshot:

TMS Component Pack v8.8 released with 3 new components: http://www.tmssoftware.com/site/news.asp

Image
TMS Component Pack v8.8 released with 3 new components: http://www.tmssoftware.com/site/news.asp - TAdvHighLightLabel v1.0: Label that allows to highlight specific words in the label text in different colors. - TAdvTouchSpinEdit v1.0: Spin edit control with spin buttons left and right from the edit control to allow easy up/down button access from touch screens. - TAdvDBListBox v1.0: Listbox control with embedded filter + insert data capability that can be bound to a dataset field.

I have picked up a memory leak whenever the virtual keyboard pop up on iOS. I have logged it with EMBT. https://quality.embarcadero.com/browse/RSP-19181. Your votes will assist in this matter.

I have picked up a memory leak whenever the virtual keyboard pop up on iOS. I have logged it with EMBT. https://quality.embarcadero.com/browse/RSP-19181 . Your votes will assist in this matter. Has anyone seen this? https://quality.embarcadero.com/browse/RSP-19181

TStringBuilder.

TStringBuilder.Append calls SetLength on each and every call. And SetLength contains a try-except block that is always activated. *Faulty code* procedure TStringBuilder.SetLength(Value: Integer); var LOldLength: Integer; begin if Value < 0 then raise ERangeError.CreateResFmt(@SParamIsNegative, ['Value']); // DO NOT LOCALIZE if Value > MaxCapacity then raise ERangeError.CreateResFmt(@SListCapacityError, [Value]); LOldLength := FLength; try FLength := Value; if FLength > Capacity then ExpandCapacity; except on E: EOutOfMemory do begin FLength := LOldLength; raise; end; end; end; *Improved code* property Capacity: NativeUInt read FCapacity write SetCapacity; procedure TStringBuilder.SetLength(Value: NativeUInt); begin if Value > Capacity then ExpandCapacity(Value); FLength:= Value; end; procedure TStringBuilder.SetCapacity(Value: NativeUInt); begin if Value < Length then raise ERangeError

TStringBuilder.Append calls SetLength on each and every call. And SetLength contains a try-except block that is always activated.

TStringBuilder.Append calls SetLength on each and every call. And SetLength contains a try-except block that is always activated. *Faulty code* procedure TStringBuilder.SetLength(Value: Integer); var LOldLength: Integer; begin if Value < 0 then raise ERangeError.CreateResFmt(@SParamIsNegative, ['Value']); // DO NOT LOCALIZE if Value > MaxCapacity then raise ERangeError.CreateResFmt(@SListCapacityError, [Value]); LOldLength := FLength; try FLength := Value; if FLength > Capacity then ExpandCapacity; except on E: EOutOfMemory do begin FLength := LOldLength; raise; end; end; end; *Improved code* property Capacity: NativeUInt read FCapacity write SetCapacity; procedure TStringBuilder.SetLength(Value: NativeUInt); begin if Value > Capacity then ExpandCapacity(Value); FLength:= Value; end; procedure TStringBuilder.SetCapacity(Value: NativeUInt); begin if Value < Length then raise ERangeError