Microsoft KB Archive/46763

INF: GP Fault After dbclose in PM

PSS ID Number: Q46763 Article last modified on 02-03-1994

1.00 OS/2

Question
Why does my Presentation Manager (PM) application GP fault after dbclose when run on the same machine as the SQL Server, but not when run on a different machine?

Response
This problem is timing related. Under PM, the primary thread is boosted to “INPUT” priority. If the primary thread is used to execute dbclose, the I/O thread spawned by dbopen may not finish executing until after dbclose has released the stack, causing the I/O thread to GP fault. To work around this limitation, spawn a separate thread to execute dbclose in PM if the primary thread has been boosted to “INPUT” priority [after WinCreateStdWindow and before WinDestroyWindow].

= Additional reference words: 1.00 =

Copyright Microsoft Corporation 1994.