@ Duffer
Quote: "
Excellent - thanks for this - opens up the possibility of perhaps coding something like PurePLUGIN pro
"
Yes, that's the idea. Although the Pureplugin developement package is a great
framework for writing plugins with PureBasic, it has some drawbacks. Continued
support and regular updates being just a few of them.
I've briefly looked over your utility and it's usage. It seems to be a potential
gem stone. I will download it and look it over in more detail. Just a suggestion
in advance... Maybe you could add the codes from PPFixer so your utility could do
those fixes as well. This would make it more of a complete "all-in-one" tool for
PureBasic plugin developement.
Note about the plugin setup functions:
I was discussing the special plugin functions that DBPro uses during both compile
and runtime with IanM recently. I wanted to know which functions were called and in
what order.
Here's what he said:
Quote: "
Actually, my personal notes list the Constructor being called before the dependencies - TBH, I do all of my construction in the ReceiveCoreDataPtr, so it's not something that would cause me any problems.
Anyway, I've now reconfirmed the order of initialisation/teardown as:
- Constructor
- GetNumDependencies
- GetDependencyID (called once for each dependency)
- ... Window Created
- ReceiveCoreDataPtr
- ... Further internal initialisation
- ... Normal running, until user-code ends
- ... Window Destroyed
- PreDestructor
- Destructor
"