Skip to content

What to do if clawPDFObj.IsInstanceRunning is True #129

Answered by vasvovec
vasvovec asked this question in Q&A
Discussion options

You must be logged in to vote

I found a solution. I add 3 lines of code to the method ReleaseCom() in .\src\clawPDF\COM\Queue.cs
Was:

public void ReleaseCom()
{
    if (_isComActive)
    ...
    else
    {
        throw new COMException("No COM Instance was found.");
    ...

With my changes:

public void ReleaseCom()
{
    if (_isComActive)
    ...
    else
    {
        if (IsServerInstanceRunning)
            ThreadManager.Instance.PipeServer.Stop();
        else
            throw new COMException("No COM Instance was found.");
     ...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vasvovec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant