Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Question: Simple plugin implementation
Re: Question: Simple plugin implementation [message #31186 is a reply to message #31175] Fri, 11 February 2011 22:47 Go to previous message
koldo is currently offline  koldo
Messages: 3437
Registered: August 2008
Senior Veteran
mirek wrote on Fri, 11 February 2011 16:50

Well, but then you keep all plugins in memory, including all data in memory they needed for the last operation or you need to implement some sort of 'free' for them.

Allocating/deallocating memory is actually quite fast operation in U++.

Hello Mirek

It is only necessary to allocate the used plugin. It is done in
INITBLOCK {
	RegisterPlugin<ExcelSpreadsheet>("Excel");
}


In fact it is interesting to have it allocated while the plugin is used as it can keep some variables.

For example for an spreadsheet, the Open() method load some variables that will be used by other methods like SetData(Value v, int row, int col).


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Q: howto incorporate a native console window in GUI
Next Topic: BackgroundTask
Goto Forum:
  


Current Time: Tue Jul 08 23:22:53 CEST 2025

Total time taken to generate the page: 0.02800 seconds