Jump to content

Cristian Peța

Members
  • Content Count

    392
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Cristian Peța

  1. Cristian Peța

    DateTime problem in fastreport's PFD export.

    You want to change the text value from a frxMemoView from date-time to display hour and minutes? Because mm is month... and HH is not documented. See documentation: https://docwiki.embarcadero.com/Libraries/Alexandria/en/System.SysUtils.FormatDateTime EDIT: Now I see that mm can show minuts if after hh.
  2. Cristian Peța

    DateTime problem in fastreport's PFD export.

    Are the script code using regional settings? Do you need the user to decide the format?
  3. Cristian Peța

    DateTime problem in fastreport's PFD export.

    What is invisible mode? A Windows service? Can you show the code of that script?
  4. DELETED: some misunderstanding about subscription....
  5. Cristian Peța

    App Builder & Blazor

    There was a survey that closed on 21 January. In the survey was a question also about WebAssembly.
  6. Cristian Peța

    Wrong hex code

    Probably you are reading binary data as Unicode string. x80 is euro symbol in ANSI/Windows-1252. 0x20AC is also euro symbol in Unicode.
  7. Try to disable EurekaLog and see.
  8. Then the exception occurs deeper and you catch it with the try...except block. I don't see your code so I'm guessing...
  9. There is probably a try...except block where this exception occurs that will catch the exception.
  10. The link below is working from here. https://lp.embarcadero.com/webinar-registration?utm_source=Eloqua&utm_medium=email&utm_content=Webinar-240119-HowToWebinars
  11. Cristian Peța

    D12 CatalogRepository Problem!

    The professional installs into "C:\Program Files (x86)\FastReport VCL Professional". It is your decision if this is better. The downside is that it comes with sources and after installation I always need to go and move sources and let only dcu files because I don't need to compile them every time.
  12. Security is not bad intention. Delphi is calling home for a reason. If ELC is not calling home then the VM with ELC can be multiplied and used on multiple sites without Embarcadero knowing about this?
  13. Delphi activated without ELC will run without internet connection indefinitely or this 30 days applies too?
  14. It is not somehow similar to having Delphi installed into a VM? If Delphi can call home then also ELC can call home at some point in time.
  15. You are right. I'm using Sleep() only in Windows services in the ServiceExecute(). 50 or 100 ms is not an issues for a service to get down. And checking Terminated, an increment and loop every 50 ms is nothing.
  16. Use Sleep() in the thread and start other threads at that interval. The thread with the Sleep() will need to have highest priority.
  17. If you have a timer there is a possibility that your execution will not end and a new one will need to be started. With Slepp() this can not happen.
  18. Into the Execute you need to have a code that will not exit till you need that thread alive. procedure TMyThread.Execute; var LHowMuchToWait: Integer; LDoExit: Boolean; begin try repeat ExecuteMyClass(LHowMuchToWait, LDoExit); Sleep(LHowMuchToWait); until LDoExit or Terminated; finally Terminate; end; end;
  19. Cristian Peța

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

    Now I see that FieldData can be defined for max 256 fields. FieldData: array [0..255] of PAnsiChar; And get rid of setting the length of FieldData for every field. uDBF.pas
  20. Cristian Peța

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

    Sorry, uploaded wrong file... uDBF.pas
  21. Cristian Peța

    Debugger gives wrong value for long double

    I suppose is about the algorithm (google for "Dragon4 algorithms").
  22. Cristian Peța

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

    I used FieldData array to store offsets instead of FData that must remain 4 bytes. Maybe there are better approaches but it was faster so. This is a fast patch and not optimal. uDBF.pas
  23. Cristian Peța

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

    It is working like compiled in D11.1 if you disable ASLR from linking options.
  24. Cristian Peța

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

    FData : DWORD; And should be 8 bytes on 64 bit. Something like PAnsiChar. Fields^[iFieldCount].FData := DWORD(Data + iTmp); It is wrong to cast to DWORD for 64 bit.
×