New cross-platform plugin template for Delphi developers
-
@rdipardo and @Ekopalypse,
many thanks for your valuable explanations!In Lazarus, for debugging DLLs, one can set a ‘host application’ to execute with; so one is able to set breakpoints in the pascal code etc.
All plugin templates i tried before, crashed … at addresses outside the scope of the pascal code though.
Your template rdipardo was the first one i found that showed up as a really fine working example :-) :-). Unfortunately, after setting the host application, the “run” functionality is not enabled. For all crashing templates, it had been enabled. I just kicked a question in the Laz. newsgroup what’s required to enable it.Could you at least, for the moment, confirm (or maybe not confirm, so that’s my fault) if you could reproduce? By commenting a few lines, and retry?
I try to describe more precise what happens:
-
First, a session with the unchanged / full menu. - config.xml says:
<PluginDlg pluginName=“HelloWorld.dll” id=“2” curr=“0” prev=“-1” isVisible=“yes” /> -
Then, shrinked menu creation to the three items “Load docking form”, Separator, “About”
-
Removed the old entry for pluginName=“HelloWorld.dll” from the config.xml for to have a clean restart
-
Start NPP with the new compiled DLL and click menu item “Load docking form”, and close NPP again
-
NPP rewrites the new line:
<PluginDlg pluginName=“HelloWorld.dll” id=“2” curr=“0” prev=“-1” isVisible=“yes” />
So far all looks fine! -
Now restart NPP again … and, what will appear at first, is the demo About box.
-
Afterwards, config.xml entry showed up unchanged:
<PluginDlg pluginName=“HelloWorld.dll” id=“2” curr=“0” prev=“-1” isVisible=“yes” />
I understand that, if some first pointers a invalid, but the last one (for About) keeps to be valid, this last one will be used.
But who stored the unbalanced info where?–> Btw: i fear that this specific issue - and the question about the dark theme - will run extremely out of scope of this specific topic, which wants to inform about the new template. Better to continue in/as a new topic if needed?
-
-
@klaus101 said in New cross-platform plugin template for Delphi developers:
Btw: i fear that this specific issue - and the question about the dark theme - will run extremely out of scope of this specific topic, which wants to inform about the new template. Better to continue in/as a new topic if needed?
If @rdipardo wants it to be split off, to avoid cluttering the main Delphi-plugin-template Topic, I could use my moderator power to split off all the recent posts to that new topic, if you give me a meaningful name to use for the new Topic. But if @rdipardo doesn’t mind it staying here, that’s fine by me.
-
@PeterJones, thank you for your proposal!
It’s related to Delphi as well as Lazarus development environments (would be interesting to know btw if the issue (if any) does show up with Delphi too).If @rdipardo wants it to be split off, i’d see two topics here:
Plugin template for Delphi and Lazarus developers: question about modifying the plugin’s demo menu (Lazarus)
Plugin template for Delphi and Lazarus developers: question about possibility to skip dark mode theme handling -
@PeterJones: the wiki is now up, so this thread can be locked 🔒, please and thank you.
-
P PeterJones locked this topic on
-