Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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 September 28th, 2006, 12:31 PM
mircea_turcu_20 mircea_turcu_20 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 6 mircea_turcu_20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 34 sec
Reputation Power: 0
Indexes in embedded firebird

Hi all.

Using embedded Firebird 1.5 I have created :
- two tables T1, T2
- an index on T1

I have an application that is inserting data in T1 and T2 and in the same time is performing a delete on T1.
Because of this index that I created (I think this is the culprit), the Firebird engine is throwing an exception (access violation) when is trying to insert data in T2. After this, the engine is dead.

Any ideea? Is there a known issue with the indexes in this version of embedded Firebird?

Thank you.

Mircea

Reply With Quote
  #2  
Old September 29th, 2006, 01:29 AM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 223 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: 7 h 14 m 50 sec
Reputation Power: 8
There's no known issues with that.

Are you sure the engine throws the access violation?

What is the exact error message?

Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle & MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com

Reply With Quote
  #3  
Old September 29th, 2006, 10:27 AM
mircea_turcu_20 mircea_turcu_20 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 6 mircea_turcu_20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 34 sec
Reputation Power: 0
The error message:
"Access violation.
The code attempted to access a virtual address without privilege to do so. This exception will cause the Firebird server
to terminate abnormally."

It looks like is a multithread issue. But it should not be that. As I said, I have 2 threads:
- one is inserting, updating values in T1 and T2
- second one is deleting records from T1

I get the error only when I try to update T2.

So, it doesn't make sense to me.

Reply With Quote
  #4  
Old September 29th, 2006, 12:12 PM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 223 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: 7 h 14 m 50 sec
Reputation Power: 8
Are you using separate connections for each thread?
__________________
Martijn Tonies
Database Workbench: developer IDE for Firebird, MySQL, InterBase, MSSQL Server and Oracle
Upscene Productions
http://www.upscene.com

Reply With Quote
  #5  
Old September 29th, 2006, 12:42 PM
mircea_turcu_20 mircea_turcu_20 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 6 mircea_turcu_20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 34 sec
Reputation Power: 0
Quote:
Originally Posted by upscene
Are you using separate connections for each thread?

Yes.

Reply With Quote
  #6  
Old September 30th, 2006, 10:05 AM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 223 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: 7 h 14 m 50 sec
Reputation Power: 8
Hmm, that should be OK then.

If you use a single thread to do your stuff, does it work then?

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Indexes in embedded firebird


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway