-
Content Count
1112 -
Joined
-
Last visited
-
Days Won
96
Everything posted by Dalija Prasnikar
-
Delphi compatibility with Windows 11?
Dalija Prasnikar replied to PeterPanettone's topic in General Help
Windows XP, Vista and Windows 7 had round corners... I guess that will not be an issue 😃 -
Delphi compatibility with Windows 11?
Dalija Prasnikar replied to PeterPanettone's topic in General Help
Define compatibility... Delphi applications work, IDE works... MS has good track record in providing backward compatibility for existing applications. Minor tweaking to embrace new OS features are always possible. You can find more information here: https://blogs.embarcadero.com/windows-11-a-beautiful-meteor-will-wipe-out-the-dinosaurs/ -
[Android][FMX] Which solution to have a full size app icon with Android 10?
Dalija Prasnikar replied to Fabian1648's topic in FMX
You need to create vector icons (adaptive icons), and you will need to add those additional files to deployment manually. You can find more about icons formats and deployment folders at https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive -
Binary size, how-to make it smaller?
Dalija Prasnikar replied to Wil van Antwerpen's topic in General Help
Because enhanced RTTI is now turned on for RTL/VCL with rather poor default (and of course, FMX, but FMX was never without it) and that RTTI prevents removing unused things with linker. So any class you touch or is touched by other code, will be almost completely included in executable. Unused classes are not included. Default visibility for methods is public and published, for fields private, protected, public, published and for properties public, published. There is also WEAKLINKRTTI directive, that enables linker to eliminate unused symbols with RTTI, but it is not turned on in core Delphi frameworks. http://docwiki.embarcadero.com/RADStudio/Sydney/en/WEAKLINKRTTI_directive_(Delphi) -
When will be binding to Swift libraries possible ?
Dalija Prasnikar replied to Rollo62's topic in Cross-platform
If the Swift framework does not support any explicit interop, it could be possibly wrapped and consumed through Objective-C library that can then be imported in Delphi https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/importing_swift_into_objective-c If you need support for Swift frameworks now, this sounds like most viable option. -
When will be binding to Swift libraries possible ?
Dalija Prasnikar replied to Rollo62's topic in Cross-platform
There is QP report for that https://quality.embarcadero.com/browse/RSP-22944 When will importing Swift frameworks be available, the is only that Embarcadero can tell. From what I can see, such Swift framework would have to be compiled in interop mode and Expose its API. Delphi is capable of importing Objective-C framework, so it is possible that @objc mode would suffice. If not there is unofficial @cdecl support, for Swift side. https://forums.swift.org/t/best-way-to-call-a-swift-function-from-c/9829 This is not something I had need to explore, so this is all the information I can give. -
Out parameter is read before set
Dalija Prasnikar replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
It is valid alert. You need to initialize out parameters before they are used. Only managed out types will be automatically initialized. When you mark parameter as out, you are saying I will properly initialize that variable (setting to nil is also proper initialization in this context) If you don't initialize that parameter inside the method, then this is a bug and your method signature is telling a lie. If you want to initialize variables outside the method, then you should use var parameter. The fact that Delphi automatically initializes only managed out types, is just implementation detail of the compiler. In theory it is behavior that may change, most likely it will not, but out parameter is meant for output, compiler is free to discard its value in the function prologue. -
Are there any experiences with www.experts-exchange.com ?
Dalija Prasnikar replied to Rollo62's topic in General Help
Sounds obsolete. Just look under development section and languages listed, there is no TypeScript, Python, Swift, Kotlin, R... I wouldn't count that the content they do have is severely outdated. -
Examples of Android apps
Dalija Prasnikar replied to Mike Torrettinni's topic in Tips / Blogs / Tutorials / Videos
You can find some videos on Embarcadero YouTube channel. Only sky is the limit. There are no limitations on what you can achieve, it is only matter of how much time you need to do that. At the moment the weakest point for Android development is using native 3rd party libraries that come in AAR form - packaged library with resources because integrating those can be painful process. -
Delphi 10.4.2 cannot find new ios provisioning profile
Dalija Prasnikar replied to billyb's topic in FMX
The annual fee is 99$. The higher 299$ fee is for large organizations that want to distribute their internal iOS applications without going through AppStore. -
Delphi 10.4.2 cannot find new ios provisioning profile
Dalija Prasnikar replied to billyb's topic in FMX
It looks like you are not logged into your account. Do you have an Apple account? -
Delphi 10.4.2 cannot find new ios provisioning profile
Dalija Prasnikar replied to billyb's topic in FMX
Maybe there is some bug in RAD Studio. I currently don't have my Mac connected so I cannot check the current behavior. What are the versions of software in your setup: RAD Studio, Xcode, macOS? -
Is set a nullable type? (record constraint)
Dalija Prasnikar replied to Eugine Savin's topic in RTL and Delphi Object Pascal
If it works in Tokyo you should report compiler regression to Quality Portal https://quality.embarcadero.com/ This is probably due to introduction of custom managed records that need additional handling and they broke record constraint that is basically constraint for value types. I had similar issue with variant records https://quality.embarcadero.com/browse/RSP-28761 -
Do bug fix patches really require active subscription?
Dalija Prasnikar replied to David Heffernan's topic in General Help
Yes. That would also solve issues for people using trial version, bumping into some problem and then not having the ability to properly test trial version because they cannot install patch. I seriously cannot imagine buying something if I cannot properly test it. If I am already Delphi user and I want to upgrade, then maybe but in such cases I already have some other reasons for upgrading. -
Several F2084 Internal Error on Delphi 10.4.2
Dalija Prasnikar replied to Davide Angeli's topic in Delphi IDE and APIs
And this time it is fixed, finally. At least on Android... I didn't test other platforms. -
Several F2084 Internal Error on Delphi 10.4.2
Dalija Prasnikar replied to Davide Angeli's topic in Delphi IDE and APIs
You are correct. On Windows platform try...finally works fine. -
Several F2084 Internal Error on Delphi 10.4.2
Dalija Prasnikar replied to Davide Angeli's topic in Delphi IDE and APIs
For anyone interested in try...finally patch... it is still broken. I guess those "3 minutes" tests strike again... -
Several F2084 Internal Error on Delphi 10.4.2
Dalija Prasnikar replied to Davide Angeli's topic in Delphi IDE and APIs
You can join the beta if you are on active subscription. Most recently, betas were announced on Embarcadero blog posts like this one https://blogs.embarcadero.com/delphi-and-cbuilder-10-4-2-beta-invite-for-update-subscription-customers/ Invitation is also probably sent or announced through marketing emails. You will have to sign NDA and you are not allowed to discuss participating in the beta nor about any features, fixes or bugs. Above is valid for major release beta cycles and updated. Patches and hotfixes are commonly tested by smaller number of people because testing cycle is shorted and focus is on particular bugs. If you have some particular reason for testing some hotfix or you have some major issues using latest release, you can always try going through official channels and present your case. However, there is a catch-22 because you will never know whether some testing is in progress or not, and even when there is, you might not get answer to that question even when you ask directly (not in public). Next major release will be 10.5 and at some point you can expect posts (unless policy changes) inviting subscribers to participate for that beta. When will that be, nobody knows. For now you can just wait. -
Several F2084 Internal Error on Delphi 10.4.2
Dalija Prasnikar replied to Davide Angeli's topic in Delphi IDE and APIs
I am afraid that list might be too long... and it would require input from large number of developers. It all depends on code you have and what kind of workflow you have at any given moment and for which platforms you develop. What is good version for some people, might be utmost nightmare for others. And besides stability, there might be other reasons and bugs in the core frameworks which makes some versions unsuitable for some developers. Workarounds were usually move to another version and hope for the best. Without actually trying on your own code and working with some version, one can never know. Since Embarcadero opened up beta testing for larger audience, it would be good that anyone who can participate. The more the merrier. It is also important to start testing early, because some bugs if found too late in the cycle may end up unfixed. Of course, all that also does not guarantee final quality and release success, but it can be significant factor. Literally one person can stumble upon critical bug that would end up in RTM, and all other testers might miss it for one reason or another. It is huge codebase, and we cannot test and use all features thoroughly. -
Delphi 10.4.2 cannot find new ios provisioning profile
Dalija Prasnikar replied to billyb's topic in FMX
Yes. But you need to run application from Xcode at least once. I don't remember whether running the application is just for preparing the particular device for debugging - or you also need to run it for triggering creation of provisioning profiles, too. -
Delphi 10.4.2 cannot find new ios provisioning profile
Dalija Prasnikar replied to billyb's topic in FMX
You add that in Xcode (somewhere in Preferences). RADStudio does not have that option because it can handle only downloaded provisioning profiles. Any one will do. The selected one is fine. -
Delphi 10.4.2 cannot find new ios provisioning profile
Dalija Prasnikar replied to billyb's topic in FMX
The simplest way is to use Xcode because it will create and download profiles automatically https://help.apple.com/xcode/mac/current/#/dev154b28f09 Add your developer ID to XCode, create new application in Xcode with the same id your Delphi application has and run that application on device in debugging mode. Xcode will automatically perform the whole setup and then you just need to pick that profile in Delphi. You can also create and download those profiles manually, but it is longish process. -
I am quite positive that some of the books you listed are not free. Even if you got them for free (some could have been distributed to Delphi subscribers as part of some marketing activity) that does not mean you are allowed to distribute the, Same goes for the books you purchased. You haven't bought right to distribute.
-
Be happy that you are not Cocoa (Objective-C) developer https://github.com/Quotation/LongestCocoa
-
Thanks! That means a lot 🙂 Since books covers both classic and ARC compilers, unifying memory management does not have huge impact on the book content. Only DisposeOf chapter and few references to mobile (previously ARC) compiler when it comes to reference counting for object references no longer apply. New mobile compilers now behave exactly like classic compiler, and memory management for that one hasn't changed. Eventually, there will be some book update, but not for now. There is not much going on in the memory management area that would warrant updating the book.