Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 3 of 3 total |
AV occur when several threads is initializing a session. |
Sat, Jul 16 2011 3:00 AM | Permanent Link |
Sergey A. Kolotov | TDBISAMEngine is not thread-safe!
Initializing a Engine (Engine.Active:=True) occur when session is initializing. // DBISAM 4.29 Build 4 procedure TDataEngine.Initialize(...); begin Randomize; FIsWindows95:=(OSGetVersion=4.00) and (OSGetPlatform=VER_PLATFORM_WIN32_WINDOWS); FLockFileName:=LockFile; // DBISAM 4.30 Build 6 procedure TDataEngine.Initialize(...); begin PopulateLocales; // <--- AV occur here Randomize; FIsWindows95:=(OSGetVersion=4.00) and (OSGetPlatform=VER_PLATFORM_WIN32_WINDOWS); FLockFileName:=LockFile; |
Fri, Jul 22 2011 5:03 AM | Permanent Link |
Matthew Jones | Did this get resolved? I'm worried about upgrading with this present as I'm a heavy
user of threading and DBISAM. /Matthew Jones/ |
Mon, Jul 25 2011 2:51 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Sergey,
<< TDBISAMEngine is not thread-safe! Initializing a Engine (Engine.Active:=True) occur when session is initializing. >> In general, you do not want the auto-activation of the engine to occur from within a threaded session instance. Just set the engine to active before starting any threads, and you'll be fine. I'll put a critical section around the engine activation in the next DBISAM build. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Tuesday, April 23, 2024 at 08:10 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |