Issue Details (XML | Word | Printable)

Key: DNET-360
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jiri Cincura
Reporter: Yiannis Bourkelis
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
.NET Data provider

'System.AccessViolationException' occurred in FB_965910463.dll on Dataadapter.Update when using threads

Created: 22/Dec/10 01:12 AM   Updated: 10/Jan/17 01:47 PM
Component/s: ADO.NET Provider
Affects Version/s: 2.6
Fix Version/s: 3.1.0.0, 5.7.0.0

File Attachments: 1. File EmbeddedMultithreadedProblem.rar (5.45 MB)
2. File EmbeddedMultithreadedProblem.v2.rar (5.45 MB)

Image Attachments:

1. screenshot-1.jpg
(38 kB)
Environment: All Windows, NET 2.0


 Description  « Hide
When I use threads to insert some new records, a 'System.AccessViolationException' occurred in FB_965910463.dll exception occurs.

I attach a project to reproduce this issue.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Yiannis Bourkelis added a comment - 22/Dec/10 01:19 AM
Steps to reproduce:

1. Run the project

2. Click on the "Insert image in new thread" button.

Actual results:
One image will be inserted to the database and at the next dataadapter.update the "'System.AccessViolationException' occurred in FB_965910463.dll" will occur in the immediate window of Visual Studio. The application hangs.

Expected results:
New records should be inserted without problem.

If you click on the "Client/Server" option, everything works fine.
The problem occurs only in embedded version of firebird.

Yiannis Bourkelis made changes - 22/Dec/10 01:19 AM
Field Original Value New Value
Attachment EmbeddedMultithreadedProblem.rar [ 11842 ]
Ramsees Rastafa added a comment - 22/Dec/10 04:08 PM
When I run your project I get this error:

"System.OutOfMemoryException in System.Drawing.ImageFromFile"

Maybe that's your real problem.

Ramsees Rastafa made changes - 22/Dec/10 04:08 PM
Attachment screenshot-1.jpg [ 11846 ]
Yiannis Bourkelis added a comment - 22/Dec/10 04:42 PM
Please remove the "Thumds.db" from the "Images" folder. This file causes the "OutOfMemoryException".

Yiannis Bourkelis added a comment - 22/Dec/10 04:47 PM
This solves the OutOfMemoryException problem.

I had accidentaly included the "Thumbs.db" file inside the images foldes.

Yiannis Bourkelis made changes - 22/Dec/10 04:47 PM
Ramsees Rastafa added a comment - 23/Dec/10 02:46 PM
I deleted the "Thumbs.db" and tried again, but I had no errors, the project works fine here, Im using VS2010.

Yiannis Bourkelis added a comment - 23/Dec/10 05:20 PM
Thank you Ramsees for trying to reproduce this issue.

The application does not show any error. However, no images are inserted except the first one.

You can see this in the images inserted counter, near the "Insert image in new thread" button, where it stops in "1".
If you place a breakpoint in "myDataAdapter.Update(ds)", (form1.vb, line 109) you will see that it is called only twice. On the second call, the code never returns from the myDataAdapter.Update(ds).

If you have firebird server started, run the project and click on the "Client/Server" option you will see that the images are inserted to the database and the counter shows 1..2..3...n .

Ramsees Rastafa added a comment - 23/Dec/10 07:46 PM
Now, I'm abble to reproduce the error. Yes, actually the counter stops after the second insert.

Jiri Cincura made changes - 10/Jan/17 01:37 PM
Status Open [ 1 ] In Progress [ 3 ]
Jiri Cincura added a comment - 10/Jan/17 01:47 PM
I tried now 5.7.0 (currently latest) and 3.1.0 and both are running fine. So it was fixed there with something.

Jiri Cincura made changes - 10/Jan/17 01:47 PM
Status In Progress [ 3 ] Resolved [ 5 ]
Fix Version/s 5.7.0.0 [ 10790 ]
Fix Version/s 3.1.0.0 [ 10491 ]
Resolution Fixed [ 1 ]