Quantcast
Channel: Delphi – The Wiert Corner – irregular stream of stuff
Browsing all 1440 articles
Browse latest View live

Thread around DCEF3 leaking memory, but DCEF4 doesn’t taught me to look at...

This thread about [WayBack] DCEF3 memory leak in Delphi XE2  – Alberto Paganini – Google+ taught me that madExcept has a much more elaborate memory leak checking than FastMM4: it checks any Windows...

View Article


Design Patterns & Refactoring

Design Patterns and Refactoring articles and guides. Design Patterns video tutorials for newbies. Simple descriptions and full source code examples in Java, C++, C#, PHP and Delphi. Source: [WayBack]...

View Article


Delphi RTTI Context limitation: not thread safe for method RTTI

In a comment to [WayBack] Update: It was not clear what I was asking so I updated the question. I am trying to call RTTI Invoke from within TTask.Run and I get an AV. I have t… – John Kouraklis –...

View Article

Tweaked TStringBuilder in FastCode is now 2x faster than the stock…

Reminder to self as occasionally I concatenate a lot of strings: [WayBack] After some tweaking TStringBuilder in FastCode is now 2x faster than the stock Builder in SysUtils.  – Johan Bontes – Google+....

View Article

delphi – How to hide the inherited TObject constructor while the class has...

Interesting, need to try this one day to see how well this works so the base constructor TObject.Create cannot be called.[WayBack] delphi – How to hide the inherited TObject constructor while the class...

View Article


Namespaces in Delphi – Stack Overflow

Blast from the past, but still relevant: [WayBack] Namespaces in Delphi – Stack Overflow: Q Are there any practical benefits in using long unit file names like MyLib.MyUtils.pas or it is just a kind of...

View Article

Image may be NSFW.
Clik here to view.

Laptop fan profiling, and debugging them – related to Profiling | CommitStrip

A while back, I posted the “profiling” CommitStrip on[WayBack] Profiling – Jeroen Wiert Pluimers – Google+. Boy how did I not know that within a week, I bumped into a “laptop fan profiling” artefact. A...

View Article

delphi – Why variables are declared as TStrings and created as TStringList? –...

Blast from the past: [WayBack] delphi – Why variables are declared as TStrings and created as TStringList? – Stack Overflow Q Why variables are declared as TStrings and created as TStringList? A...

View Article


Delphi dcc32 error E2506 Method of parameterized type declared in interface...

Need to check on this compiler error that you can solve by moving the generic class TExceptionThread<T> from the implementation section of a unit to the interface section. [dcc32 Error]...

View Article


Sometimes a race condition is in just two lines of code

A race condition can be this small: if Assigned(Setting.OnChanged) then Setting.OnChanged(Setting); If in between these lines, the value of Setting.OnChanged becomes nil, then you have an access...

View Article

It’s a blong, blong, blong road…: ‘What if?’ scenario analysis in the CPU window

Patching code at debug-time: [WayBack] It’s a blong, blong, blong road…: ‘What if?’ scenario analysis in the CPU window. Remember: There are dragons Patching too many bytes will kill a kitten and...

View Article

New in 10.2.2: Component icons – Community Blogs – Embarcadero Community

A well balanced post that shows what you can attain by thinking in advance and remembering backward compatibility: [WayBack] New in 10.2.2: Component icons – Community Blogs – Embarcadero Community...

View Article

Delphi XE2: IDE out of memory problem? Check the library path length

Curious, but somehow shortening the library path solved the problem Alberto had: [WayBack] Hello Everybody, I have an application developed in XE2 (Hot Fix 2 + IDE Fix Pack installed) that has started...

View Article


GitHub – Purik/AIO: Coroutine-based multithreading library for Delphi

On my list of things to try: [WayBack] GitHub – Purik/AIO: Coroutine-based multithreading library for Delphi which are similar to what golang does. Coroutine-based multithreading library for Delphi....

View Article

More on new .NET path handling – Jeremy Kuhne’s Blog

When it was at the age natural people are allowed to drive in the USA, the .NET framework behaved far less brain dead handling various (especially long or strange) paths: [WayBack] More on new .NET...

View Article


Using PE Flags in Delphi – twm’s blog

For my link archive: [WayBack] Using PE Flags in Delphi – twm’s blog with information about and links to: IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP IMAGE_FILE_NET_RUN_FROM_SWAP IMAGE_FILE_LARGE_ADDRESS_AWARE...

View Article

NativeInt / NativeUInt type in various Delphi versions – twm’s blog

Reminder to Self (and note that Delphi <= 2007 does not reference NativeInt/NativeUInt in System.pas): [WayBack] NativeInt / NativeUInt type in various Delphi versions – twm’s blog Just in case you...

View Article


QualityCentral 56524: tanh function from Delphi 7 till Delphi XE was buggy;...

In case you maintain code in older versions of Delphi, be aware that the function tanh was broken starting in Delphi 7 and only got fixed in Delphi XE2: QualityCentral QualityCentral 56524: tanh...

View Article

Delphi, SHA-3 and streaming

If I ever need to use SHA-3 in Delphi: [WayBack] Does anyone know of any implementations of SHA-3, that can support TStream? – Nicholas Ring – Google+ The comments have a nice list of libraries...

View Article

TestInsight provides a local JSON web-server from the IDE for the test-runner...

Stefan Glienke shared the TestInsight default JSON web-server location with me through chat; I like it! Some endpoints: GET localhost:8102/tests initially returns {"SelectedTests":[]} After enabling a...

View Article
Browsing all 1440 articles
Browse latest View live