Can I use EZTrial and handle semaphore files on my own?
Posted by - NA - on 16 April 2009 09:57 AM

EZTrial has built-in support for network floating licensing that automatically handles using the proper Computer ID algorithms and creating the semaphore files, though its functionality is limited. EZTrial uses the license file path for the semaphore directory and uses a fixed semaphore file prefix of "sema".

EZTrial can easily cause issues with network licensing if you use Software Binding or have Convert illegal copies to demo checked in your Product Definition. Software Binding is recommended for expiring licenses. If this is necessary, you should use custom aliases by calling pp_lfalias() / LFile.LFAlias() in your start up code.

Depending on your requirements, you may still be able to use EZTrial and SemOpen, but your custom semaphore files may not get deleted. The lock on these files should get released so another user can reuse the existing semaphore files.