Check if gflLibraryInit was called?

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

ramington
Posts: 3
Joined: Wed Jun 25, 2008 3:59 pm

Check if gflLibraryInit was called?

Post by ramington »

Hi,

-I have an app whcih loads dynamic a lot of modules each time a image should be processed (that happens often)

-now I'd like to call gflLibraryInit only once for all files that should be procesed, but I can not store any additional information to check by my own

-does it take long to call gflLibraryInit and gflLibraryExit ???

-I tested under windows with an memchecker, if calling Init 2 times and Exit only one time there gets some memory lost, therefor it would be good to check if the init was called

-any ideas?

Thx, Peter
User avatar
xnview
Author of XnView
Posts: 44325
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Check if gflLibraryInit was called?

Post by xnview »

gflLibraryInit can take some time (if you have plugins), and you must call ONE gflLibraryInit and ONE gflLibraryExit
Pierre.