Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 10th, 2004, 10:23 AM
huk huk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 huk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Red face fbembed.dll crashed Delphi

Hi,

when I change the property from Active:=True to Active:=False
in the TSQLConnection ( dbExpress Component in Delphi 7 )
Delphi crash.
It's maybe a problem on unload the fbembed.dll by closing the (last/only) connection to the embedded Firebird-Db?!

It happens at the following configuration:

OS: NT4
IDE: Delphi 7

Form definition
===========

object Form1: TForm1
Left = 266
Top = 122
Width = 367
Height = 252
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object SQLConnection1: TSQLConnection
ConnectionName = 'IBConnection'
DriverName = 'Interbase'
GetDriverFunc = 'getSQLDriverINTERBASE'
LibraryName = 'dbexpint.dll'
LoginPrompt = False
Params.Strings = (
'DriverName=Interbase'
'Database=D:\Sources\Delphi\ThdTest\data\default.fdb'
'RoleName=RoleName'
'User_Name=sysdba'
'Password=masterkey'
'ServerCharSet='
'SQLDialect=3'
'ErrorResourceFile='
'LocaleCode=0000'
'BlobSize=-1'
'CommitRetain=False'
'WaitOnLocks=True'
'Interbase TransIsolation=ReadCommited'
'Trim Char=False')
VendorLib = 'fbembed.dll'
Left = 40
Top = 24
end
end

Reply With Quote
  #2  
Old May 10th, 2004, 01:13 PM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 249 upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 8 h 23 m 12 sec
Reputation Power: 13
Hmmm... How about using the Firebird dbExpress driver at www.upscene.com ?
__________________
Martijn Tonies
Database Workbench: developer IDE for Firebird, MySQL, InterBase, MSSQL Server and Oracle
Upscene Productions
http://www.upscene.com

Reply With Quote
  #3  
Old May 11th, 2004, 08:36 AM
huk huk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 huk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks a lot for your quick reply.
The Firebird dbExpress driver from URL do the job perfect!
The only disadvantage ... it's not free ;o(

For the moment I have found an other/dirthy solution ... for the runtime

var
hDLL: THandle;

initialization

//=========================================
// Load the "fbembedi.dll" before "TSQLConnection" can
// do it!
//=========================================
hDLL := LoadLibrary('fbembed.dll');

finalization

//=========================================
// All "TSQLConnection"-Connections to an embedded
// Firebird-DB should be disconnected at this point!
//=========================================
if hDLL <> INVALID_HANDLE_VALUE
then FreeLibrary(hDLL);

Last edited by huk : May 11th, 2004 at 08:46 AM.

Reply With Quote
  #4  
Old May 11th, 2004, 08:47 AM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 249 upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 8 h 23 m 12 sec
Reputation Power: 13
Well, that's the problem. You're using Firebird, with an InterBase dbExpress driver (made by Borland). You cannot expect the InterBase driver to stay compatible with Firebird - they simply won't do that.

If you like programming around problems and thinking of hacks every now and then instead of paying a few $$, then go ahead

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > fbembed.dll crashed Delphi

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap