System.Data.SQLite
Check-in [f5c5f581dc]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add comment to warn about the nature of the current fix for [b4a7ddc83f].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f5c5f581dc158df848517af67ce8b4962263d084
User & Date: mistachkin 2011-07-21 21:46:39
Context
2011-07-21
23:50
Remove unnecessary redundancy in the test for [b4a7ddc83f] and verify that it ran in a non-primary AppDomain. check-in: 7f19f2449d user: mistachkin tags: trunk
21:46
Add comment to warn about the nature of the current fix for [b4a7ddc83f]. check-in: f5c5f581dc user: mistachkin tags: trunk
17:18
Preliminary fix for [b4a7ddc83f], shutdown the SQLite native interface when the AppDomain is being unloaded. check-in: 1d024437e5 user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to System.Data.SQLite/SQLiteLog.cs.

158
159
160
161
162
163
164





165
166
167
168
169
170
171
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void DomainUnload(
            object sender,
            EventArgs e
            )
        {





            if (_sql != null)
            {
                int rc = _sql.Shutdown();

                if (rc != 0)
                    throw new SQLiteException(rc,
                        "Failed to shutdown interface.");







>
>
>
>
>







158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void DomainUnload(
            object sender,
            EventArgs e
            )
        {
            //
            // BUGBUG: This will cause serious problems if other AppDomains
            //         have any open SQLite connections; however, there is
            //         currently no way around this limitation.
            //
            if (_sql != null)
            {
                int rc = _sql.Shutdown();

                if (rc != 0)
                    throw new SQLiteException(rc,
                        "Failed to shutdown interface.");