Delphi: Access Violation at the end of Create() constructor
var the : TLoader; begin the := the.Create; is incorrect. It should be var the : TLoader; begin the := TLoader.Create;
var the : TLoader; begin the := the.Create; is incorrect. It should be var the : TLoader; begin the := TLoader.Create;
i would relaunch yourself as elevated, passing command line parameters indicating what elevated thing you want to do. You can then jump right to the appropriate form, or just save your HKLM stuff. function RunAsAdmin(hWnd: HWND; filename: string; Parameters: string): Boolean; { See Step 3: Redesign for UAC Compatibility (UAC) http://msdn.microsoft.com/en-us/library/bb756922.aspx This code is released … Read more
The best approach I know is to check if specific API is exported from some DLL. Each new Windows version adds new functions and by checking the existance of those functions one can tell which OS the application is running on. For example, Vista exports GetLocaleInfoEx from kernel32.dll while previous Windowses didn’t. To cut the … Read more
FFMPEG supports screen capturing(casting) and is cross platform.
Note that this answer only lists new language features not new VCL/FMX features. Here are the links to the RAD Studio docwiki: What’s new in Rad Studio 10.4 Sydney What’s new in Rad Studio 10.3 Rio What’s new in Delphi and C++Builder 10.2 Tokyo What’s new in Delphi and C++Builder 10.1 Berlin What’s new in … Read more
For the price, you cannot beat FastMM4 as a memory tracker. It’s simple to use yet powerful and well integrated with Delphi. I guess that you know that, without downloading, installing or changing anything else, just putting this line ReportMemoryLeaksOnShutDown := True; anywhere in your code, will enable basic reporting of memory leaks. If you … Read more
Windows file caching is very effective, especially if you are using Vista or later. TFileStream is a loose wrapper around the Windows ReadFile() and WriteFile() API functions and for many use cases the only thing faster is a memory mapped file. However, there is one common scenario where TFileStream becomes a performance bottleneck. That is … Read more
This trick was never officially supported by the language and you have been getting away with it to date due to the implementation specifics of the 32 bit compiler. The documentation is clear: Nested procedures and functions (routines declared within other routines) cannot be used as procedural values. If I recall correctly, an extra, hidden, … Read more
You can navigate to the front page of the Embarcadero documentation and search from there. The link is: http://docwiki.embarcadero.com/RADStudio/en/Main_Page Note that no version is included in the link. If you navigate to that link then the site will re-direct you to a version specific URL for the latest release. In this case, as I write … Read more
This is a very broad question with many different angles. The meaning of the Assigned function Much of the code in your question betrays an incorrect understanding of the Assigned function. The documentation states this: Tests for a nil (unassigned) pointer or procedural variable. Use Assigned to determine whether the pointer or the procedure referenced … Read more