LEADTOOLS Support
General
General Questions
How to check if RasterCodecs engine has started.
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, March 3, 2010 2:28:48 PM(UTC)
Groups: Registered
Posts: 2
Is there any way to check explicitly if the RasterCodecs engine is started?
Also, where is the best place to call the Startup and Shutdown methods? I have seen examples where they are called before and after the use of the codecs, and also examples where Startup is called at the start of the application.
#2
Posted
:
Thursday, March 4, 2010 12:48:30 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Startup and Shutdown should always be called in pairs.
If you are going to use one global RasterCodecs object repeatedly in your code, call Startup at the beginning and keep it until the very end. This way, you won't have to worry about accidentally calling Startup twice or using the object before it was started.
There is no code to check if Startup was called because it should be easy to track in your code. If you must check, call Startup and handle the exception that gets triggered if it's already started.
LEADTOOLS Support
General
General Questions
How to check if RasterCodecs engine has started.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.