Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'System.AccessViolationException' occurred in FB_965910463.dll on Dataadapter.Update when using threads [DNET360] #365

Closed
firebird-automations opened this issue Dec 22, 2010 · 13 comments

Comments

@firebird-automations
Copy link

Submitted by: Yiannis Bourkelis (yiannis)

Attachments:
EmbeddedMultithreadedProblem.rar
screenshot-1.jpg
EmbeddedMultithreadedProblem.v2.rar

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.

@firebird-automations
Copy link
Author

Commented by: Yiannis Bourkelis (yiannis)

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.

@firebird-automations
Copy link
Author

Modified by: Yiannis Bourkelis (yiannis)

Attachment: EmbeddedMultithreadedProblem.rar [ 11842 ]

@firebird-automations
Copy link
Author

Commented by: Ramsees Rastafa (ramsees79)

When I run your project I get this error:

"System.OutOfMemoryException in System.Drawing.ImageFromFile"

Maybe that's your real problem.

@firebird-automations
Copy link
Author

Modified by: Ramsees Rastafa (ramsees79)

Attachment: screenshot-1.jpg [ 11846 ]

@firebird-automations
Copy link
Author

Commented by: Yiannis Bourkelis (yiannis)

Please remove the "Thumds.db" from the "Images" folder. This file causes the "OutOfMemoryException".

@firebird-automations
Copy link
Author

Commented by: Yiannis Bourkelis (yiannis)

This solves the OutOfMemoryException problem.

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

@firebird-automations
Copy link
Author

Modified by: Yiannis Bourkelis (yiannis)

Attachment: EmbeddedMultithreadedProblem.v2.rar [ 11848 ]

@firebird-automations
Copy link
Author

Commented by: Ramsees Rastafa (ramsees79)

I deleted the "Thumbs.db" and tried again, but I had no errors, the project works fine here, Im using VS2010.

@firebird-automations
Copy link
Author

Commented by: Yiannis Bourkelis (yiannis)

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 .

@firebird-automations
Copy link
Author

Commented by: Ramsees Rastafa (ramsees79)

Now, I'm abble to reproduce the error. Yes, actually the counter stops after the second insert.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Author

Commented by: @cincuranet

I tried now 5.7.0 (currently latest) and 3.1.0 and both are running fine. So it was fixed there with something.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: In Progress [ 3 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 5.7.0.0 [ 10790 ]

Fix Version: 3.1.0.0 [ 10491 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants