-
Content Count
56 -
Joined
-
Last visited
Community Reputation
35 ExcellentAbout sakura
- Birthday February 4
Technical Information
-
Delphi-Version
Delphi 10.4 Sydney
Recent Profile Visitors
401 profile views
-
Would you mind writing a bit more about what you did, how can we reproduce that? Btw, you can copy&paste the messages from the message pane...
-
Double-dabble to convert binary to decimal
sakura replied to Darian Miller's topic in Tips / Blogs / Tutorials / Videos
Take a look above the text editor, in the toolbar and look for the </> button, press that to insert code π -
Can I use dynamically linked MPL 2.0 dll library for commercial purposes?
sakura replied to at3s's topic in General Help
Only, and only if your application does not depend upon that DLL to do its work. If it is an extension, giving extra features, not needed for the overall result, then you may use it that way. However, if the main purpose of your application depends on that DLL, it is to be published under GPL as well. -
Open Tools API - Mark Module as not Modified
sakura replied to sakura's topic in Delphi IDE and APIs
Any other ideas, anyone?- 3 replies
-
- ota
- open tools api
-
(and 3 more)
Tagged with:
-
Let's not discuss the GOTO - first, it is not my code, but code from a library I use, second, the full method from the library certainly benefits from it. It is not always possible to optimize for everything cleanly. For full details, follow the links π
- 7 replies
-
- optimization
- bug
-
(and 1 more)
Tagged with:
-
Open Tools API - Mark Module as not Modified
sakura replied to sakura's topic in Delphi IDE and APIs
Yes, no change, the IOTAEditorContent object itself is not even marked as modified, it's the module, which is "knowing" that something has happened. π- 3 replies
-
- ota
- open tools api
-
(and 3 more)
Tagged with:
-
Hi, I have a IDE plug-in which acts upon an opened file in the IDE (IOTAIDENotifier.FileNotification - aNotifyCode = ofnFileOpened). It loads the corresponding IOTAModule and the IOTAEditorContent for the PAS-File Before displaying, I want to do some formating for the viewer and set the content through the IOTAEditorContent interface. Nicely, as I do not call MarkModified, the editor view acts like the content has not been modified. However, the IOTAModule believes that the module has been modified and asks, whether the changes shall be saved (which I do not desire, when just viewing). Is there a way, to inform the IDE, that at this point, no changes have occurred. The question to save changes should not appear, when the user did not actually change anything π Thanks, Daniel
- 3 replies
-
- ota
- open tools api
-
(and 3 more)
Tagged with:
-
Hi, just for you guys to weigh in, we have located a bug in the Delphi 10.4 compiler, that removes a totally valid assign statement in RELEASE mode, believing, that the code will never be executed. The actual method is from the mORMot library in releases before last week (unit SynCommons.pas, method TSynAnsiFixedWidth.AnsiBufferToUTF8. A full discussion is available at the mORMot-Forum: https://synopse.info/forum/viewtopic.php?id=5520 . I have reported the bug to Embarcadero: https://quality.embarcadero.com/browse/RSP-30088 . Please check out my report and try to confirm and weigh in there. It should be reproducible. --- Note, the compiler will tell you (Hint H2077), that the value assigned is never used and thus, in RELEASE mode, with optimizations enabled, drop the code completely. Thanks for your time and support π
- 7 replies
-
- optimization
- bug
-
(and 1 more)
Tagged with:
-
Further on, the function is to ensure a properly nulled reference, even if something fails. A object that failed during Free/Destroy is usually not usable any longer anyways.
-
FreeAndNil 10.4 vs 10.3.1 and Pointers
sakura replied to Sherlock's topic in RTL and Delphi Object Pascal
Yeah, that was my first thought... not really better, though the name of the method itself tells the story. Yet, for someone, who does not quite yet understand all the quirks of Delphi, this is a little frustrating... -
wuppdi Welcome Page for Delphi 10.4?
sakura replied to PeterPanettone's topic in Delphi IDE and APIs
Yepp, I know why π The original Welcome Page was designed by me during the field test, and at that time "wuppdi" was the "thing" at the German Delphi Praxis, and I wanted to include that somehow and that's how it ended up there π wuppdi is a simple CSS class to hide different things. doShow CSS class was used to override wuppdi π -
As a Delphi expert, do you ever need to refactor or improve your code?
sakura replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
Don't worry, I've never seen larger projects, where the code could explain all the thinking behind the tinkering, especially the larger picture. I think we all can agree, that good code explains what it is doing quite well, however, rarely, if ever why and never the reason behind he full logic of a multi-year-project. -
As a Delphi expert, do you ever need to refactor or improve your code?
sakura replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
@Vincent Parrett Done yet? π Honestly, refactoring does not only mean fixing and improving code itself, though, as stated above, as learning and evolving creature, there is always a chance for that, no matter how expertly you done it, but requirements change, features need to be implemented, and so on. Existing code may anticipate a lot of upcoming changes, but ever everything? So yes, there will always be a need for refactoring. Now, let's go back to my last paragraph and do that π -
German store has ist too. Congrats!
-
Looks like you have some post build events and those try accessing java.