Jump to content

Dave Nottage

Members
  • Content Count

    1489
  • Joined

  • Last visited

  • Days Won

    36

Everything posted by Dave Nottage

  1. Dave Nottage

    Using GetMethod functions in the .NET COM interop

    Can you clarify what this means? Correct.
  2. Dave Nottage

    Using GetMethod functions in the .NET COM interop

    How does one do that from Delphi?
  3. If you don't have it already, I recommend downloading the GExperts source: https://sourceforge.net/p/gexperts/code/HEAD/tree/trunk/ Then have a look at the GX_EditorChangeServices unit
  4. Dave Nottage

    How to run iOS app on physical iPhone

    You followed the instructions, however you followed them literally, i.e. you added the CoreBluetooth framework instead of the SystemConfiguration framework.
  5. Dave Nottage

    How to run iOS app on physical iPhone

    I suspect it's because the SystemConfiguration framework is not listed in the iPhoneOS 12.2 SDK in Delphi's SDK Manager, so you'll need to add it, as per these (though a little old) instructions: https://www.delphiworlds.com/2013/10/adding-other-ios-frameworks-to-the-sdk-manager/
  6. I see one comment about it not working on iOS 7.1.2, which I supposed might have had a bug? Which comments are you referring to?
  7. Dave Nottage

    OnTerminated never triggers

    Should we assume that the ServiceStop event is fired?
  8. Dave Nottage

    Constructors + Destructors in class helpers?

    Probably because that's the sum total of what you can do with class helpers. If you specify what you actually want to achieve, there might be a different solution.
  9. Dave Nottage

    Autocompletion for TEdits revisited

    Not sure what I'm doing differently, however I never need to disable it. Unlike Clippy, it never intrudes unless I ask it to; at least I'm assuming that's case, because so far it has been never.
  10. I think you'd need to sell it better than that. Why would those people be glad? e.g.: what advantages (if any) does TardsPlaya give over other players? How many people are using it now, and give reasons (other than being "glad") as to why people might want to shift to, or start using, TardsPlaya?
  11. Dave Nottage

    TCameraComponent Crash Occasionally While In Capturing Mode

    Make a copy of (bds)\source\fmx\FMX.Media.Android.pas, and put it in your project folder. Modify this routine: function CreateJBitmapFromYuvBuffer: JBitmap; var Image: JYuvImage; Rect: JRect; Stream: JByteArrayOutputStream; LoadOptions: JBitmapFactory_Options; begin SurfaceSection.Acquire; try Image := TJYuvImage.JavaClass.init(SharedBuffer, SharedBufferFormat, PreviewBufferSize.X, PreviewBufferSize.Y, nil); finally SurfaceSection.Release; end; Replacing the SurfaceSection references with QueueSection
  12. Dave Nottage

    TCameraComponent Crash Occasionally While In Capturing Mode

    There's a workaround in the report.
  13. Dave Nottage

    TCameraComponent Crash Occasionally While In Capturing Mode

    If you mean on Android, this report relates to the issue: https://quality.embarcadero.com/browse/RSP-23791
  14. Dave Nottage

    What does "G" in GExperts mean?

    Most likely "Gerald", after Gerald Nunn: the original author
  15. Dave Nottage

    Need Help Java to Pascal

    You cannot do that part in Delphi; it needs to be done in Java, then you can consume it from your Delphi code.
  16. You might have to provide a reproducible test case, because I'm unable to reproduce the problem. I deployed a couple of example PDF files in the app, using the default remote path of /Contents/MacOS/Startup, and used this code to load them: procedure TForm1.OpenPDF(const AFileName: string); var LSourceName, LDestName: string; begin // Bit of a "hack" to get the exact paths of the pdf files deployed to /Contents/Resources/Startup LSourceName := TPath.GetDirectoryName(ParamStr(0)); LSourceName := TPath.Combine(StringReplace(LSourceName, '/MacOS', '', []), 'Resources/Startup/' + AFileName); LDestName := TPath.Combine(TPath.GetTempPath, 'open.pdf'); // Delete any existing temp file TFile.Delete(LDestName); // Copy from resources to common location TFile.Copy(LSourceName, LDestName); WebBrowser1.Navigate('file://' + LDestName); end; Works every time. My guess is that the problem is with your file retrieval/copy, rather than it being a WebBrowser issue
  17. I'll take a look into this.. hopefully in the next few hours. If there's a QP entry, please let me know
  18. Given one of the answers in the SO link, it sounds (pun intended) like AudioServicesPlaySystemSound is your best bet to ensure it works on all devices. You just need to import the function, something like this: uses iOSapi.CoreFoundation; const libAudioToolbox = '/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox'; procedure AudioServicesPlaySystemSound(inSystemSoundID: UInt32); cdecl; external libAudioToolbox name _PU + 'AudioServicesPlaySystemSound';
  19. How are those lines entered? If by typing, why not just type the commas as the code is being typed? If they're generated, why not generate the lines with commas in the first place?
  20. Dave Nottage

    My android app restarts on permission request

    Have you traced through the code to see where it fails? Does it reach the first line in the anonymous method?
  21. Dave Nottage

    Did anybody have the guts to try XCode 10.2

    I use a macOS VM (on a macOS host) to try out new versions of Xcode, macOS etc. No problems at all using Xcode 10.2 with: Debugging to an iPhone X Deploying an app store version (i.e. set Configuration to App Store, use Deployment Manager to deploy)
  22. Dave Nottage

    Delphi 10.3.1 keep deploying corrupted apk

    What version of build tools are you using? i.e. in the Delphi SDK Manager, what is the path for example, for aapt.exe?
  23. Dave Nottage

    Delphi 10.3.1 keep deploying corrupted apk

    Can you be a bit more explicit about what you are actually changing? Preferably, show the before and after, even if it's the whole manifest.
  24. Dave Nottage

    GExperts module to make the Components structure view PERMANENT

    I expect this may be rather difficult to be implemented in an expert without having it totally separate from the Structure View itself, because there is only one TVirtualStringTree which reloads, dependent on whether Code or Design is selected.
  25. Dave Nottage

    Compiling code originally for VS in C++Builder

    Neither of those compile, giving the same error: Declaration terminated incorrectly. It compiles OK omitting: extern "C", however the Load function is not exported, either. Could this be due to the .lib not being linked? I can name Load as Loadx instead, and the project still compiles. I'm using ObjConv from here: https://agner.org/optimize/ to convert the original .lib file to OMF format. C++Builder does not complain about the file being linked, however I'm wondering whether it is sufficient for it to use.
×