setLicense required for each call?


#1

I’m curious, is the setLicense call required each and every time you use the PowerPoint API? This is going to be cumbersome as we have various calls to the assembly in various locations. If it is required just once, what happens if the assembly is removed from memory? Also, does anyone have any good ideas on where this call can be placed for efficiency sake (i.e., in the global.application_start event perhaps)?


#2

Why not create a class that handles all the calls to the Aspose.Powerpoint assembly? Create it as a singleton class, then you can use it anywhere in your application and not worry about having to initialize and call setLicense in your code outside the class you write for this.


#3

License stored in static members of the License class so
you can call SetLicense only once in your application.