-
Content Count
392 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Cristian Peța
-
DateTime problem in fastreport's PFD export.
Cristian Peța replied to Ali Dehban's topic in General Help
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.- 12 replies
-
- fastreport
- export
-
(and 1 more)
Tagged with:
-
DateTime problem in fastreport's PFD export.
Cristian Peța replied to Ali Dehban's topic in General Help
Are the script code using regional settings? Do you need the user to decide the format?- 12 replies
-
- fastreport
- export
-
(and 1 more)
Tagged with:
-
DateTime problem in fastreport's PFD export.
Cristian Peța replied to Ali Dehban's topic in General Help
What is invisible mode? A Windows service? Can you show the code of that script?- 12 replies
-
- fastreport
- export
-
(and 1 more)
Tagged with:
-
FYI - Several Embarcadero services are currently unavailable
Cristian Peța replied to Keesver's topic in General Help
DELETED: some misunderstanding about subscription.... -
There was a survey that closed on 21 January. In the survey was a question also about WebAssembly.
-
Probably you are reading binary data as Unicode string. x80 is euro symbol in ANSI/Windows-1252. 0x20AC is also euro symbol in Unicode.
-
Why are access violations not shown in popups with EurekaLog ?
Cristian Peța replied to dormky's topic in General Help
Try to disable EurekaLog and see. -
Why are access violations not shown in popups with EurekaLog ?
Cristian Peța replied to dormky's topic in General Help
Then the exception occurs deeper and you catch it with the try...except block. I don't see your code so I'm guessing... -
Why are access violations not shown in popups with EurekaLog ?
Cristian Peța replied to dormky's topic in General Help
There is probably a try...except block where this exception occurs that will catch the exception. -
FYI - Several Embarcadero services are currently unavailable
Cristian Peța replied to Keesver's topic in General Help
The link below is working from here. https://lp.embarcadero.com/webinar-registration?utm_source=Eloqua&utm_medium=email&utm_content=Webinar-240119-HowToWebinars -
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.
- 28 replies
-
- d12
- catalogrepository
-
(and 1 more)
Tagged with:
-
FYI - Several Embarcadero services are currently unavailable
Cristian Peța replied to Keesver's topic in General Help
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? -
FYI - Several Embarcadero services are currently unavailable
Cristian Peța replied to Keesver's topic in General Help
Delphi activated without ELC will run without internet connection indefinitely or this 30 days applies too? -
FYI - Several Embarcadero services are currently unavailable
Cristian Peța replied to Keesver's topic in General Help
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. -
How do I terminate a thread that doesn't have an Execute method ?
Cristian Peța replied to dormky's topic in Algorithms, Data Structures and Class Design
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. -
How do I terminate a thread that doesn't have an Execute method ?
Cristian Peța replied to dormky's topic in Algorithms, Data Structures and Class Design
Use Sleep() in the thread and start other threads at that interval. The thread with the Sleep() will need to have highest priority. -
How do I terminate a thread that doesn't have an Execute method ?
Cristian Peța replied to dormky's topic in Algorithms, Data Structures and Class Design
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. -
How do I terminate a thread that doesn't have an Execute method ?
Cristian Peța replied to dormky's topic in Algorithms, Data Structures and Class Design
What is wrong with Sleep() -
How do I terminate a thread that doesn't have an Execute method ?
Cristian Peța replied to dormky's topic in Algorithms, Data Structures and Class Design
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; -
D11.3 Surfaces a Bug in 8-Year-Old Code that reads DBF file...
Cristian Peța replied to Steve Maughan's topic in General Help
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 -
D11.3 Surfaces a Bug in 8-Year-Old Code that reads DBF file...
Cristian Peța replied to Steve Maughan's topic in General Help
Sorry, uploaded wrong file... uDBF.pas -
I suppose is about the algorithm (google for "Dragon4 algorithms").
-
D11.3 Surfaces a Bug in 8-Year-Old Code that reads DBF file...
Cristian Peța replied to Steve Maughan's topic in General Help
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 -
D11.3 Surfaces a Bug in 8-Year-Old Code that reads DBF file...
Cristian Peța replied to Steve Maughan's topic in General Help
It is working like compiled in D11.1 if you disable ASLR from linking options. -
D11.3 Surfaces a Bug in 8-Year-Old Code that reads DBF file...
Cristian Peța replied to Steve Maughan's topic in General Help
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.