473,385 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Application crashes upon trying to commit a transaction

Hi,

I have a VC++ application which uses a MS Access DB. I use DAO classes
to carry out operations on the database. Off-late I have been
experiencing a crash (of the application) after trying to execute a
delete query. This happens only when the size of the DB reaches around
80MB to 1GB.

Any idea as to why this could happen? I have checked the code
thoroughly and it seems to be fine. Upon attaching a debugger, it shows
an 'Access Violation Error'. Does Access cause problems when the size
of the DB grows large?

Please let me know your suggestions/ideas.

Thanks a lot in advance.
Ankit

Nov 13 '05 #1
5 1576
Ankit wrote:
Hi,

I have a VC++ application which uses a MS Access DB. I use DAO classes
to carry out operations on the database. Off-late I have been
experiencing a crash (of the application) after trying to execute a
delete query. This happens only when the size of the DB reaches around

Any idea as to why this could happen? I have checked the code
thoroughly and it seems to be fine. Upon attaching a debugger, it shows
an 'Access Violation Error'. Does Access cause problems when the size
of the DB grows large?

Please let me know your suggestions/ideas.

Thanks a lot in advance.
Ankit
I hope you mean 80-100MB here:
80MB to 1GB


because otherwise that's a pretty huge size variation.

Approximately how many records are you trying to delete in the
transaction? Have you checked the MaxLocksPerFile setting in the
registry?

http://office.microsoft.com/en-us/as...321611033.aspx

Nov 13 '05 #2
On 22 Jul 2005 03:19:25 -0700, "Ankit" <an**********@gmail.com> wrote:
Hi,

I have a VC++ application which uses a MS Access DB. I use DAO classes
to carry out operations on the database. Off-late I have been
experiencing a crash (of the application) after trying to execute a
delete query. This happens only when the size of the DB reaches around
80MB to 1GB.

Any idea as to why this could happen? I have checked the code
thoroughly and it seems to be fine. Upon attaching a debugger, it shows
an 'Access Violation Error'. Does Access cause problems when the size
of the DB grows large?

Please let me know your suggestions/ideas.

Thanks a lot in advance.
Ankit

1. I think the Access (JET) limit is 2 Gbytes
2. the word "access" in your error message isn't Microsoft Access, this is a memory error
in your program but perhaps you knew this.

Nov 13 '05 #3
Hey sorry for the typo, I indeed meant 80MB - 100 MB. The query usually
tries to delete approx 200 - 250 records.

Nov 13 '05 #4
Oh right. Polite person is right, by the way, his #2 is very important
to understand--that's a Windows error.

And what I said doesn't apply for 200-250 records. The "access
violation" errors I was getting on my machine recently were indeed
caused by bad (hardware) memory, so I'd have another look at that
machine if I were you.

Nov 13 '05 #5
Thanks for the advices.

I did know that the "Access Violation" were Windows errors and were not
related to MS Access DB in any way.

I have not been able to figure out a solution yet. Nevertheless, thanks
for all the help :)

Regards,
Ankit

Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: DP | last post by:
Is there any command exists as "commit transaction" ? begin transaction < DML1 stmts > begin transaction < DML2 stmts > rollback transaction commit transaction which set of DML will be...
11
by: Markus Breuer | last post by:
I have a question about oracle commit and transactions. Following scenario: Process A performs a single sql-INSERT into a table and commits the transaction. Then he informs process B (ipc) to...
4
by: Itai | last post by:
I need to develop an internal messaging sub-system that is similar to a web mail application but without SMTP support (e.g message routes are confined to the webapp domain). The requirements are...
9
by: heruti | last post by:
Hi all... I've been stumped by this for days. Bit of ASP code: (IIS) Set LocalConn = CreateObject("ADODB.Connection") LocalConn.CursorLocation = adUseClient LocalConn.CommandTimeout = 0...
1
by: Vidyaranya | last post by:
I am facing one problem w.r.t DB2, When i launch my first instance of my client exe. (written using Delphi 7) and perform an action on Table A. (one of the row is in Transaction mode) waits for...
3
by: Mark | last post by:
If a java applicaiton using the type 4 driver calls a DB2 stored procedure, does the stored procedure need to do its own commit when updates are completed? If the stored procedure does a commit or...
3
by: Peter Kirk | last post by:
Hi there when working with database connections in C# is there a concept of "auto commit"? For instance, if I obtain a database connection in java I can set the auto-commit state to true or...
2
by: RAM | last post by:
Hello, (Sorry for my English...) I am learning .NET 2.0 (C#, ASP.NET, ADO.NET etc.). I need to write a database application (SQL Server) consisting of a number of database transactions (like...
0
by: Tifer | last post by:
Hello, I am building my first .Net Application. The first couple of Publish and Installs I did went fine. But after a couple of builds, I get a modal dialogue box error every time upon trying...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.