Rollo62
Members-
Content Count
1812 -
Joined
-
Last visited
-
Days Won
23
Everything posted by Rollo62
-
Howto call initWithDelegate and CBCentralManagerOptionShowPowerAlertKey
Rollo62 replied to Rollo62's topic in Cross-platform
@Dave Nottage Thanks, I will check that. Never know when to use what and why excactly when it comes to iOS objects -
Extract selected UI and code elements to insert them into another project
Rollo62 replied to PeterPanettone's topic in Delphi IDE and APIs
When it comes to IDE experts, I'm a little careful, as I prefer the manual way to not rely on some experts or IDE "magic" too much. After separating the number of components is reduced into a few frames to handle, and they easily can be handled manually. Of coarse I prepare my views manually at runtime too, putting them into the right container, not in the IDE designer, which might cause all sorts of issues. That way the RAD in RadStudio becomes very handy for the frame/form design, but for the rest I try to rely on coding over drag-n-drop. For me this is the best of both worlds. -
Extract selected UI and code elements to insert them into another project
Rollo62 replied to PeterPanettone's topic in Delphi IDE and APIs
Probably that doesn't help you much right now, but I usually decompose more complex views into smaller modules, already before putting all components on one form. To have a few separate views, which show specific aspects of a whole view, like media.play.controller; media.play.playlist, media.play.viewer, all were placed into separate, selfcontaining frames or forms. In my final views I can simple compose them, and connect them via interface bindings and/or messages. Thats way makes it easier to test, compose, re-use and re-place separate parts of a projects view. All it needs is a little more discipline before clicking such complex views or datamodules together, and a little more efford, but I'm not ready either to do this always right, especially when I needed a "fast" solution again -
The interfaces in Delphi are bad?
Rollo62 replied to Jacek Laskowski's topic in RTL and Delphi Object Pascal
@Dalija Prasnikar Yes, I think compiler/linker could get a little smarter though, maybe in the direction like FixInsight or PascalAnalyser can do. To find common anti-patterns, and give warnings, that should be not so far out of reach. But you're right, maybe this is a task for some separate tool probably. -
Maybe something is possible with FireUI, never checked that out more deeply. I usually make screenshots of each situation I need, e.g. on iOS phone, and then have a lot of files I can show.
-
The interfaces in Delphi are bad?
Rollo62 replied to Jacek Laskowski's topic in RTL and Delphi Object Pascal
Yes, Rx10.4 will move in the opposite direction then. Maybe someone else has some practical thoughts too, how to get most of it. I personally can live with the interface as is well, but of coarse the pitfalls are deep. How about a better error-detection by the compiler/linker, would that be thinkable ? Couldn't be all the do's and dont's in the compiler logic (as switchable error option of coarse, for those who need it as is) ? Probably that not possible either, but maybe the most common, drastic mistakes/misuses could be turned into some clear compile time errors (warnings). -
The interfaces in Delphi are bad?
Rollo62 replied to Jacek Laskowski's topic in RTL and Delphi Object Pascal
Would be maybe a good time and place to make some clear proposals howto improve interfaces, instead of moaning all the time. So how exactly should they get fixed, so that all can be happy ? -
Using TFileStream to check if file is in use
Rollo62 replied to Patrick Hughes's topic in Algorithms, Data Structures and Class Design
Maybe some kind of file monitoring .... But also then I would use notifications instead of polling. -
I would say this depends highly on what you want to achive. Pure visual stuff usually works nice, but FMX is not made for game development. I think the approach Windows-first was not a good idea, better start Mobile-first, and then use Windows for testing. What I would recommend is to modularize as much as possible, and try each little piece on Android, putting all together step-by-step, and well tested. I know this is not an easy way and maybe the problem lies somewhere else, but without any info the best thought I could get.
- 5 replies
-
- delphi 10.3.3
- multi-platform
-
(and 1 more)
Tagged with:
-
Hi there, I have a very strange issue, which seems to be related to 3D graphics under Win10 guest in a MacOS host. My configuration is the following: Host: Macos 10.14.4 Guest: Win10 x64 Pro 1909, (16.12.19) VmWare Fusion: 11.5.1 (27.01.20), Graphics settings: USE 3D, when a 3D application is loaded RadStudio 1033 Ent. RIO (21.11.19 +Patches 30.12.19 Problem: Usually the configuration works fine under all projects, never seen an larger issue before. What happens is the following: When I open the standard RadStudio Demo \Object Pascal\Multi-Device Samples\User Interface\ModelViewer\ModelViewer.dproj - the loading shows half of the project form - then IDE freezes - the whole Win10 guest freezes - the whole VmWare fusion session freezes (including other running VM) (not able to stop/cancel/do anything) - I need to kill the VmWare processes to move forward. What I've tried is to - restart VmWare (same issue, 100% reproduceable), - restart/reboot the whole Macos host (same issue, 100% reproduceable), So I think this has something to do with graphics drivers, Vulkan support, etc. From VmWare there is a hint leading to Vulkan drivers https://kb.vmware.com/s/article/2151397?lang=en_US&queryTerm=3d+vulkan But I cannot find any Vulkan drivers under Windows}System32 I have not installed the VM via Bootcamp anyway, so this should be a different case. Has anybody seen such behaviour and probably has a solution to it ? I'm pretty sure that 3D worked before, in an earlier Host/Guest/Ide, but I cannot really say from when this started to crash. Probably change to Vulkan drivers is the best guess I have so far.
-
VmWare fusion on Macos freeze and crash when loading 3D project
Rollo62 replied to Rollo62's topic in FMX
I just wanted to add the comment from VmWare support about this case. They recommend to switch to OpenGL. -
@vfbb Why do you think this is not threadsafe, because of the AIPV6.Replace( or because of the use of BigInteger at all ? When using local string copies of the first case, this should be OK, or are the BigInteger intrinsically not threadsafe (never used them yet) ?
-
I use custom styles only at the very minimum possible, but some controls unfortunately doesn't allow any other chance for tinting and re-coloring backgrounds etc. Thats a pity, because if that would be possible I wouldn't need any custom styles at all. I know , the styles were made exactly for that purpose, but its way too much efford to make a custom design, when simple fill/stroke/text colors will do the job.
-
I use such "invisible" form in one of my projects. So that the styles are still be able to edit there, sometimes to make custom edits. I uses that form for editing, and removed all unneeded stuff later, but keep that StyleBook on that form for the whole application. I'm not happy with that either, but it does its job, and its more convenient than to have a separate form elsewhere, just for designer purposes. In a DataModule the stylebook designer didn't work as it should, at least you cannot edit any custom styles, or is there any workaround to it ? I doubt it, because DataModule is not visual.
-
Use an Xcode Storyboard to Provide the App’s Launch Screen
Rollo62 replied to MikeMon's topic in Cross-platform
Dear Remy, thanks for the info, there is a nice tutorial howto do that in XCode. https://forum.unity.com/threads/xcode-storyboard-option-for-splash-screens-launch-screens-in-ios-build.811131/ Have not checked it, but I hope that works for me too, no idea yeat what else might this change affect. Will there be any special requirements to the images itself (size, type, etc.) ? -
Boolean evaluation
Rollo62 replied to Ole Ekerhovd's topic in Algorithms, Data Structures and Class Design
Call it: .IsAdministrator and all is clear -
Usually such mess can start if you have cyclic unit definitions. I would try to cleanup and rearrange used units, to maybe find the possible root cause.
-
I didnt say And64 makes no sense, I just pointed out that this problably helps to solve some issues.
-
I think Android64 doesn't even start on Android32 OS, and the selection of libraries can be done in the deployment.
-
Maybe this will be there in Version 10.4 ...
-
Thanks god the new managements didn't kill all old references in code and IDE as first step, causing all kinds of weired issues.
-
Have a look into the KastriFree project from Dave Nottage.
-
VmWare fusion on Macos freeze and crash when loading 3D project
Rollo62 replied to Rollo62's topic in FMX
No time to do that at the moment, but my current setting was produced from such clean Windows image. Only I had some updates now, and its not that clean machine anymore. Maybe I will check later, I have no 3D applications at the moment, and the IDE is running well. Better I wait until Rx10.4, then I have a good reason to start with a clean installation again. -
Thanks for testing so deeply ☝️ Nothing, I love inline variables too. I just would wait until its really stable for production, maybe I look at it in Rx10.4.
-
VmWare fusion on Macos freeze and crash when loading 3D project
Rollo62 replied to Rollo62's topic in FMX
By the way, I just found out that my VmWare also crashes when VmWare+IDE is running, and when I start then PAServer via PAServerManager on the same host. But its a different crash type, since I can close and restart VmWare normally, but maybe this is related. When I start PAServer first, and then run VmWare+IDE, all is OK. So its a matter of startup sequence here. P.S. I just see there is a new VmWare version 11.5.2 available, I will check that out later. https://docs.vmware.com/en/VMware-Fusion/11.5.0/rn/VMware-Fusion-1152-Release-Notes.html