ScErrReattachFailedBadDbState (SCERR4158) - per-samuelsson/GoodTimes GitHub Wiki

Code: 4158 (0x103E)

Text: "A thread detached during database operation and failed to reattach leaving the server process in an inconsistent state."

Description

There is currently no further description available.

Example

There is currently no code example available on how to reproduce error 4158. Please modify the code below in a way that can describe how to produce this error.

using Starcounter;
using System;

class Program {
    static void Main(string[] args) {
        // Foo can not be successfully invoked if PreFoo() is not
        // invoked previously. If Foo() is called like this, it will
        // generate an error 4158.
        Db.Foo();
    }
}

Resolution

There is currently no code example available on how to remedy error 4158. Please modify the code below in a way that can describe how to remedy this error.

using Starcounter;
using System;

class Program {
    static void Main(string[] args) {
        // We call PreFoo() prior to calling Foo(). Now, we will
        // no longer experience error 4158.
        Db.PreFoo();
        Db.Foo();
    }
}

See also

References

There is currently no reference documentation available.

Concepts

There are currently no conceptual documentation available.

Additional resources

Search the Starcounter issue tracker for

Search the GitHub site for

⚠️ **GitHub.com Fallback** ⚠️