Search

Access 2007 & FileDialog by Esquisse

Closed
as External Help for as External

1
0
Sign in
to vote
Type: Bug
ID: 661382
Opened: 4/14/2011 9:51:27 AM
Access Restriction: Public
1
Workaround(s)
0
User(s) can reproduce this bug
Si on ouvre une connection 3 fois de suite en OLEDB (ou ODBC) sur un base Access 2007 (accdb) puis ouvre un FileDialog (Save ou Open) en VB.Net 4.0 (processeur x64 et compilation en x86 pour que OLEDB fonctionne). Alors le message d'erreur suivant apparait :

Tentative de lecture ou d'écriture de mémoire protégée. Cela indique souvent qu'une autre mémoire est endommagée.

Si on ne mets pas dbConn.Close() & dbConn.Dispose() alors ca fonctionne.
Details (expand)

Visual Studio/Silverlight/Tooling version

.NET Framework 4

What category (if any) best represents this feedback?

Compatibility

Steps to reproduce

Créer un projet, mettre un bouton "Button1" et lui associer ce code :

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        Dim dbConn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=d:\temp\test.accdb;")
        dbConn.Open()
        dbConn.Close()
        dbConn.Dispose()
        dbConn = Nothing

        Dim Dialogue As New SaveFileDialog
        Dialogue.ShowDialog()

        Dialogue.Dispose()
        Dialogue = Nothing
    End Sub

Puis cliquer 3 fois dessus.

Product Language

French

Operating System

Windows 7

Operating System Language

French

Actual results

Tentative de lecture ou d'écriture de mémoire protégée. Cela indique souvent qu'une autre mémoire est endommagée.

Expected results

Pas d'erreur
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 4/14/2011 at 11:24 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. At this time, we only provide support in the English language.

- For urgent issues , please contact support directly at http://support.microsoft.com or call 1-800-MICROSOFT for assistance.
Posted by Microsoft on 4/14/2011 at 10:14 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by Esquisse on 4/14/2011 at 11:10 PM
Bonjour,

J'ai trouvé une solution de contournement, il faut mettre la propriété "AutoUpgradeEnabled" du Filedialog à false.

En attendant mieux...

Cordialement.