Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, March 3, 2010 2:28:48 PM(UTC)

Sindri  
Sindri

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.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, March 4, 2010 12:48:30 AM(UTC)

Adnan Ismail  
Guest

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.
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.042 seconds.