Dmitry,
You might ask this question down in the Stonefield section to see if anyone that uses SFQuery has ever run across something like this before.
But anyway you have a way to check and get it back in now so your calendar should work ok.
>I just found that the statement RELEASE CLASSLIB (cClasslib) will close it.
>I guess somewhere in SFQUERY it closes my library using this syntax.