Posts

Showing posts with the label Delphi Developers: Delphi Cross platform / Linux

What's the difference between Glyph and TImage?

What's the difference between Glyph and TImage? The docs do not seem to provide a clear explanation Thanks

GREAT NEWS FOR ANDROID AND IOS!

GREAT NEWS FOR ANDROID AND IOS! +Yaroslav Brovin has been working during this entire year in an awesome project called FGX Native; you probably have already seen this because there are some post (some months old). This is a new NATIVE framework that can target android and ios. In other words, you can use Delphi to create native apps for Android and iOS! This is not firemonkey, he has created a completely new framework starting from scratch that, finally, is native. No more problems like SDK updates, broken components, controls badly painted on screen and everything. He has rewritten the bridges between Delphi and Java so that they are much more better. Finally, he is working now on internalization. It's known that FMX had to rely on 3rd party components and embarcadero has never given a good solution. The solution that FGX native will use has the same approach that you have with Java and Android studio (there are XML files with localization that are loaded when the app starts and y...

HI . Having a problem with creating MD5 hash on linux

HI . Having a problem with creating MD5 hash on linux problem is with the use of pansichar at its replacement. this is the problem code procedure TMD5.Update(const Input: string); var {$IFDEF UNICODE} utf8Str: UTF8String; {$ENDIF} Bytes: TByteDynArray; Len: Integer; Str: PAnsiChar; begin {$IFDEF UNICODE} utf8Str := UTF8Encode(Input); Len := Length(utf8Str); {$ELSE} Len := Length(Input); {$ENDIF} if Len > 0 then begin SetLength(Bytes, Len); {$IFDEF UNICODE} Str := PAnsiChar(utf8Str); {$ELSE} Str := PAnsiChar(Input); {$ENDIF} Move(Str^, Pointer(Bytes)^, Len); Update(Bytes, Len); end; end; from MessageDigest_5.pas I have tried replacing pansichar with pwidechar but I get a different result help appreciated :) thanks!

Anybody knows a way to find memory leaks in a Delphi for Linux app? Is an command line app running on Windows 32 with no memory leaks. Compiled for Linux 64 bits and have a lot of memory leaks (memory on my server raises for ever).

Anybody knows a way to find memory leaks in a Delphi for Linux app? Is an command line app running on Windows 32 with no memory leaks. Compiled for Linux 64 bits and have a lot of memory leaks (memory on my server raises for ever). Have no idea if is a problem on some library or one on the compiler. How to check? We dont have Fastmm4 on Linux, sadly. Thanks for any help.

Debug in Linux?

Debug in Linux? I am confused with debugging in Linux. I have one VM with Delphi and another one with Linux. The two VM are connected, all works nicely. Say, I have this code: writeln('Line 1); readln; If I build and deploy it, I go to the Linux VM and run the app. Then, I see the output in the VM. The same if I run the app from IDE. Now, what I confuses me is this: If I run the app with debugging, I can't figure out where the output is. Should it be in the paserver (Linux VM), right? I can't see anything there. Moreover, if I set a breakpoint in writeln and run it, there is nothing in the Linux VM but I see the output in the "Event Log" window within the IDE. But, then I can't not interact with the keyboard for the readln.

WebBroker and CentOS

WebBroker and CentOS Hi, I am trying to load a module (webbroker) in CentOS but something does not work. All the guides I've seen use Ubuntu. Has anyone used webbroker in CentOS? Thanks

This piece of code is Windows only:

This piece of code is Windows only: function MemoryUsed: cardinal; inline; var MMS: TMemoryManagerState; Block: TSmallBlockTypeState; begin GetMemoryManagerState(MMS); Result := MMS.TotalAllocatedMediumBlockSize + MMS.TotalAllocatedLargeBlockSize; for Block in MMS.SmallBlockTypeStates do Result := Result + (Block.UseableBlockSize * Block.AllocatedBlockCount); end; Is there something that is available on other platforms (POSIX) that can give me an idea of how much memory the app is using, without calling native OS functions?

I asked this in the ADUG list, but didn't think to ask here ...

I asked this in the ADUG list, but didn't think to ask here ... CppCon 2015: Niall Douglas “Racing The File System" - https://www.youtube.com/watch?v=uhRWMGBjlO8 I'm interested in learning more around concurrency, but have not seen this information put forward before. It discusses the process of guaranteeing atomic, preferably fast, changes to files and the file system. It is from CppCon 2015, with almost no C++ in it, and surprisingly complimentary to Windows. I've only watched this one so far ... the same speaker has more recent videos. Does anyone know of other sources of information around this area - not necessarily in terms of Delphi - but that would be good too. Perhaps elements of Delphi protect from us some of this ... eg database engine designers have hopefully worked out this sort of thing. One piece of info near the beginning that I don't know that I've heard before - that deletion in windows is just a promise to remove the file/directory sometime ...

need input

need input what is the best component cross platform, can extract tabel to excel withou msoffice installed, or save to file using template or do with pivot (like xlreport afalinasoft) i want to migrate my desktop app (d7, nativeExcel3, xlreport) to web with unigui (all design plan using cross platform component)

Bad...

Bad... https://techcrunch.com/2018/04/11/apple-starting-to-alert-users-that-it-will-end-32-bit-app-support/ https://techcrunch.com/2018/04/11/apple-starting-to-alert-users-that-it-will-end-32-bit-app-support/

I was wondering if you can help me with Delphi on Linux.

I was wondering if you can help me with Delphi on Linux. I've setup two VMs: one with CentOS and another with Delphi. The paserver runs on CentOS and the Connection Profiles and the SDK in Delphi all are good. The Test Connection button works. Then, I create a simple console app with a writeln statement and try to run it on Linux but what I get is the message in the Event Log in Rad and not on Linux. Anyone any idea what is wrong? Thanks

I saw this article on the most recent ACM A.M. Turing Award and noticed this at the bottom of the first paragraph:

I saw this article on the most recent ACM A.M. Turing Award and noticed this at the bottom of the first paragraph: "Today, 99% of the more than 16 billion microprocessors produced annually are RISC processors, and are found in nearly all smartphones, tablets, and the billions of embedded devices that comprise the Internet of Things (IoT)." There was a thread recently that I wasn't able to locate where the topic of support for RPi devices came up. Something about how RPi's aren't Intel CPUs. Well, neither are iPhones or Android phones. It's nice that Delphi finally targets Linux platforms, although its support is hardly generic and not too useful for IoT-scale devices. (Do I need to mention that most RPi devices sold today have a footprint that's on par with what most Linux servers offered 15 years ago? I had a small mini-ITX based server box that had a 600MHz x86 clone CPU with 256MB of RAM and a 20GB HDD, and I used it for nearly 8 years. It was plugged i...

cross-platform audio ...

cross-platform audio ... Suppose I wanted to build a simple audio mixer in Delphi that works on Win, MacOS, iOS, and Android (not Linux since no UI). Is there a generic API or library that supports all platforms for such a use-case, or would I need to create one? In this case, assume there are a few separate tracks or channels, and a bunch of user-selectable audio snippets (MP3 and FLAC) that can be arranged as desired via UI actions per track and time-order, and then mixed-down and played

Service Applications - Windows vs Linux.

Service Applications - Windows vs Linux. Coming from Free Pascal, a Windows Service or Unix Daemon application is a 100% non-visual application with no GUI dependencies. In Delphi XE3, the TServiceApplication (Vcl.SvcMgr.pas unit) has loads of references to Forms, Dialogs and such . That's a pretty terrible design. Anybody with a Delphi version that supports Linux, did Embarcadero clean up the TServiceApplication class to be 100% non-GUI? Otherwise, how do they expect someone to develop a Linux Daemon that runs on a truly headless server? I'm very curious to know how Delphi for Linux fixes this - hopefully like what Free Pascal does - 100% non-GUI, otherwise Delphi for Linux is going to be pretty useless in the server environment.

Hi

Hi TCriticalSection under iOS, Android and Linux use TMonitor. Is TMonitor safe and efficient on theses platforms ? Is there a more native implementations ?

I think there might be a memory leak with the move (i.e move memory) function on linux (latest Delphi version)

I think there might be a memory leak with the move (i.e move memory) function on linux (latest Delphi version)

- In the second half of 2018, Play will require that new apps and app updates target a recent Android API level. This will be required for new apps in August 2018, and for updates to existing apps in November 2018. This is to ensure apps are built on the latest APIs optimized for security and performance.

- In the second half of 2018, Play will require that new apps and app updates target a recent Android API level. This will be required for new apps in August 2018, and for updates to existing apps in November 2018. This is to ensure apps are built on the latest APIs optimized for security and performance. - *In August 2019, Play will require that new apps and app updates with native libraries provide 64-bit versions in addition to their 32-bit versions.* - Additionally, in early 2018, Play will start adding a small amount of security metadata on top of each APK to further verify app authenticity. You do not need to take any action for this change. https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html

This may seem like a silly question, but I was in Best Buy today looking around at cheap laptops and I noticed a bunch of Chromebooks on sale. I never really looked closely at them before, but these all have Intel CPUs in them. So I'm wondering if we can build apps that run within Chrombooks with Delphi?

This may seem like a silly question, but I was in Best Buy today looking around at cheap laptops and I noticed a bunch of Chromebooks on sale. I never really looked closely at them before, but these all have Intel CPUs in them. So I'm wondering if we can build apps that run within Chrombooks with Delphi? I know they run something called ChromeOS, but I know nothing about it other than it's a thin Linux distro. I also believe they're designed mainly so everything runs inside the browser, so maybe not so much value in building native apps for them. But I'm curious anyway. EDIT: it looks like some Chrombooks are actually loaded up with Windows now. Odd...

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

TFrameStand wait demo running on Linux Desktop without effort :) #FMX #FMXLinux #Delphi #Linux

Image
TFrameStand wait demo running on Linux Desktop without effort :) #FMX #FMXLinux #Delphi #Linux