wuwuxin
Members-
Content Count
79 -
Joined
-
Last visited
-
Days Won
3
Everything posted by wuwuxin
-
Now listed 11th in the lsit. Is this a good news for Delphier? https://www.tiobe.com/tiobe-index/
-
Question about Delphi class (static) constructor
wuwuxin posted a topic in Algorithms, Data Structures and Class Design
I am somewhat unclear about Delphi class constructor. Say, for the following code: TMyFunkyObject = class strict private class constructor Create; public class procedure FoBar; end; I am calling TMyFunkyObject.FoBar from the initialization section of another unit. Is it guaranteed that the class constructor will be (implicitly) called before TMyFunkyObject.FoBar? Or the sequence is in-deterministic? -
My RAD Studio 10.4.2 works fine with opened project, but it ALWAYS crash upon exit (i.e., after I click the close button). however, if I don't open any project, just open the IDE then close it, no crash. This doesn't impact my programming work, but quite annoying. From Windows Event Viewer, I find the following info - I suspect the crash is related to some third-party component or some IDE expert. Any one can shed some lights? Faulting application name: bds.exe, version: 27.0.40680.4203, time stamp: 0x6030517d Faulting module name: rtl270.bpl, version: 27.0.40680.4203, time stamp: 0x603056c0 Exception code: 0xc000041d Fault offset: 0x0000fc74 Faulting process id: 0x30c Faulting application start time: 0x01d799ee7598f2cd Faulting application path: C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\bds.exe Faulting module path: C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\rtl270.bpl Report Id: 32b44a0f-9ac1-4bf2-81ae-72383b40e201 Faulting package full name: Faulting package-relative application ID:
-
The link here are all broken https://www.indyproject.org/documentation/
-
thanks all - I ended up using Delphi's Indy 10.5 document. It works for me.
-
"RTC SDK was originally developed by Danijel Tkalčec in 2004, and acquired by Teppi Technology in 2018 . Now, as of May 20th 2022, we announce that ReatlThinClient SDK (a.k.a. RTC SDK) is open source." https://rtc.teppi.net/ https://github.com/teppicom/RealThinClient-SDK
-
For the "few other FMX grids available" - which one is the best (or better) in terms of performance ? I am looking at woll2woll FirePower X2, TeeGrid for FMX, TMS, and what else?
-
Any good one (open source or commercial) to recommend? Something that resembles Dephi's object inspector
-
Thank you for the link. On one hand, string is listed as a reserved work, on the other hand, it also says "System.String" is an alias for "UnicodeString"..........
-
Really, so it is a reserved word? I had thought it is a Class type, hence it should be "String"
-
This has been pestering me for a while For the string type, should be it "String", or "string", I saw the Delphi source code mixes the uses. Some third-party code uses "String", while some uses "string".
-
Delphi RAD Studio 11. Is there a way to increase the Code Editor's line spacing? I use JetBrains Mono fonts, and the lines appear too "squeezing", and it seems the line spacing is too small. Any advice?
-
Any third-party code formatter that can correctly format the inline var?
-
Ann: TECNativeMap 4.4 is available with delphi 11 support
wuwuxin replied to Christophe E.'s topic in Delphi Third-Party
@Christophe E. What happened to TECMap? Also - Can TECNativeMap extract OSM data, something like this data extract service at bbbike.org: https://extract.bbbike.org/? -
I would like to use FMX 2D drawing to plot an engineering diagram (with user interactions) - I need advice on where to start. Any good FMX 2D drawing demo, book, or tutorial? Thank you.
-
Image32 - 2D graphics library (open source freeware)
wuwuxin replied to angusj's topic in I made this
@angusi I am very interested in Image32 - forgive my dumb question - is it suitable to be used for developing CAD-like application, or interactive 2D graphics (that is based on user mouse dragging etc)? Thank you- 42 replies
-
- graphics
- cross-platform
-
(and 2 more)
Tagged with:
-
@sakura Thank you for the heads up. Appreciated.
-
Yes. @Stefan Glienke With current prototype, View, ViewModel, and Model have to run within in the same thread - otherwise, the global ObservableStack would be messed up. Is my understanding right? Also currently, the DependencyList field is not of much use, thought it might be used to trace the origin of the Notify call? Any future plan for KnockOff that might be shared here? It is very refreshing code, and I learned a lot from it!
-
Is KnockOff thread-safe? I saw it uses a global ObservableStack without thread-protection?
-
Ref to function used as interface?
wuwuxin posted a topic in Algorithms, Data Structures and Class Design
{$M+} ReadOnlyObservable<T> = reference to function: T; Observable<T> = interface(ReadOnlyObservable<T>) {$REGION 'Property Accessors'} procedure Invoke(const value: T); overload; {$ENDREGION} procedure Subscribe(const action: TAction<T>; trigger: TNotifyTrigger = AfterChange); end; The above is taken from @Stefan Glienke's Knockoff project https://bitbucket.org/sglienke/knockoff/src/master/Knockoff.Observable.pas Can someone give me some heads up - is this some type of advanced usage of Delphi? can "reference to functio: T" be used as the base interface? -
What is the best (fast) way of checking if a string is number?
wuwuxin posted a topic in Algorithms, Data Structures and Class Design
I know I can use TryStrToFloat, but is there any other (better, and faster) way of checking if a string can be converted to number? -
What is the best (fast) way of checking if a string is number?
wuwuxin replied to wuwuxin's topic in Algorithms, Data Structures and Class Design
No need for the range check. Just whether is is a number string. -
What is the best (fast) way of checking if a string is number?
wuwuxin replied to wuwuxin's topic in Algorithms, Data Structures and Class Design
@Anders Melander Thank you for the inputs. I need a fast way to just find out if a string is "convertible" to number, I don't need to see the actual number converted. I can use TryStrToFloat, then ignore the converted number, while just looking at the returned Boolean result. The reason I need this to be as fast as possible, is - I am processing a large text file, and need to generate some statistics on how much can be converted to numbers. I don't need to actually convert numbers, just need to know the percentage of the file that can be converted to numbers (integer, or floating point). Any advice?