Jump to content

Steve Maughan

Members
  • Content Count

    135
  • Joined

  • Last visited

Community Reputation

22 Excellent

About Steve Maughan

  • Birthday September 23

Technical Information

  • Delphi-Version
    Delphi 10.4 Sydney

Recent Profile Visitors

2491 profile views
  1. Steve Maughan

    App Builder & Blazor

    That gives me hope
  2. Steve Maughan

    App Builder & Blazor

    Hi Lars, You may be right but I find parallel with the current situation with Blazor and 1994 with VB 3. When Delphi was launched VB had first-mover advantage in the RAD development market. There were lots of ActiveX components. Then Delphi came along and provided a cleaner way to develop and the executables were lightning fast. Now we have Blazor and all of the .net luggage that needs to be installed. To me Blazor seems cluncky in the same way VB was clunky back in 1994. I see a sizable gap in the market for Blazor challenger. The key components would be a page-builder (like the ones for WordPress), the ability to drop controls on GUI and change properties, and then create events and code in Delphi / Visual Pascal. If the whole app was then compiled to WASM and run on any browser that would be wonderful. But you might be right, it might be too much for Embarcadero to pull off. Steve
  3. Steve Maughan

    App Builder & Blazor

    Hi Lars — I don’t have specific project need. This post was more of a desire for Embarcadero to move in this direction.
  4. Steve Maughan

    App Builder & Blazor

    Blazor is an interesting technology: web development using C#, compiling to WebAssembly. There’s also App Builder that can do create Blazor GUIs in a RAD style environment. Does anyone know of any plans to do something similar with Delphi? It seems this would be in the original spirit of Delphi i.e. RAD development compiling to native executable. I know there are things like TMS WebCore, but they compile to JavaScript, whereas WASM would (I assume) be significantly faster. Thoughts? — Steve
  5. Steve Maughan

    D11.3 Surfaces a Bug in 8-Year-Old Code that reads DBF file...

    Thanks @Remy Lebeau — I'll take a look.
  6. Steve Maughan

    D11.3 Surfaces a Bug in 8-Year-Old Code that reads DBF file...

    @Cristian Peța this version works perfectly. Many thanks — I owe you one!! @Brian Evans Thanks — that makes sense. @Attila Kovacs thanks for the input! — Steve
  7. Steve Maughan

    D11.3 Surfaces a Bug in 8-Year-Old Code that reads DBF file...

    Hi Cristian — many thanks but the file you uploaded is identical to the original. Is there a patched version? I owe you bigtime! — Steve
  8. Steve Maughan

    D11.3 Surfaces a Bug in 8-Year-Old Code that reads DBF file...

    @Cristian Peța you found it!! When I disable the ASLR in Delphi 11.3 it also runs fine in 64 bit mode. That makes sense. MANY THANKS! Now the question is, how do I make it work with ASLR enabled. — Steve
  9. Steve Maughan

    D11.3 Surfaces a Bug in 8-Year-Old Code that reads DBF file...

    Thanks Attila, but I didn't think "Data" needed to be initialized. The GetMem function is asking the OS to allocate some memory of length "iRecord", and sets "Data" to point to the start of the allocated memory. Is this not correct? — Steve
  10. I recently updated to D11.3 for AlignMix, our mapping solution. We were previously using D11.1. We have old code that reads a DBF file. This is used to read the DBF files associated with ESRI Shapefiles that contain geographic data. The code had worked for eight years without a problem. It still works in 32 bit mode but now doesn't work in 64 bit mode and gives an error. The DBF reading routine contains code that casts blocks of memory as strings etc — this is probably the root of the problem. If anyone is interested, I've attached a sample project that reads a DBF file using the code. In the sample project I only get two warnings: [dcc32 Warning] uDBF.pas(155): W1000 Symbol 'StrPas' is deprecated: 'Moved to the AnsiStrings unit' [dcc32 Warning] uDBF.pas(216): W1057 Implicit string cast from 'AnsiString' to 'string' Are these relevant? Question: what changed between D11.1 and D11.3 that could cause this type of problem? Was there any change involving casting of strings in 64 bit mode? All help appreciated! Steve DBF-64-Bit-Bug.zip
  11. Steve Maughan

    EXE Speeds: Delphi vs. FPC?

    I can't tell if you're joking or not. There are not many tasks more computationally intensive than chess. Of course I'll benchmark but just wanted to know if anyone had any broad-brush insights that could save me some time. Thanks, Steve
  12. Steve Maughan

    EXE Speeds: Delphi vs. FPC?

    I've used Delphi since it was launched in 1995 and never explored the FPC. Now I'm tinkering on developing a chess engine. For this I'd like the EXE to be as fast as possible. I assume Delphi produces faster EXEs than FPC. Is this correct? I Googled around and the only posts were 10+ years old. They implied Delphi was faster — sometimes by quite a bit. Has anything changed? — Steve
  13. Steve Maughan

    Writing & Reading as a Console App?

    @Fr0sT.Brutal This looks ideal. I'll delve in a try to implement this approach @FPiette thanks also, this looks good too! — Steve
  14. Steve Maughan

    Writing & Reading as a Console App?

    I've added the "flush(Output)" command after the "WriteLn" statements and it seems to be working. Any advice on getting the ensuring the fastest possible communication via StdIn and StdOut would be appreciated! — Steve
  15. Steve Maughan

    Writing & Reading as a Console App?

    @FPiette Yes, that's why I was planning to have a separate thread constantly reading the StdIn. @KodeZwerg Yes, I was planning to create a separate TUCI class to handle the communication
×