Direct dao first chance exception

Hi, I recently upgraded from access 2007 to access 2013 and my application which uses dao and ado started to throw first chance exceptions.  These exceptions are handled and the intended outcome does happen.  The exceptions happen on the first
change of a record in a recordset....for example an update, delete or move.
I also noticed that a bunch are created when I compact and repair the database via code.
typical exception string looks like this:
First-chance exception at 0x7547C42D in zzzzzz.exe: Microsoft C++ exception: int at memory location 0x0142ADD0.

I recently upgraded from access 2007 to access 2013 and now my application is receiving first chance exceptions.  i use both ado and dao to connect to this database.  i am using the ace engine.
a few notes:
These first chance exceptions are handled and the operations complete as intended. 
They only occur the first time an action is taken such as a delete or an update or a move.
I also saw a bunch of first chance exceptions when I compact and repair the database through code.
This is what the exception debug output says :
First-chance exception at 0x768FC42D in myapp.exe: Microsoft C++ exception: int at memory location 0x09EEACE4.
Thanks for any help with this.

Similar Messages

  • A first chance exception of type 'System.InvalidOperationException' occurred in Silverlight.Media.Phone.DLL.

    Hi,
    I was running Shoutcast.Sample.Phone.Background in windows phone 8 device.I have got this example from codeplex  http://shoutcastmss.codeplex.com/workitem/826.
    I have used the code present in above and started running the app.But the stream was not playing continuosly in Background.
    It was stopping rising the below exception 
    A first chance exception of type 'System.InvalidOperationException' occurred in Silverlight.Media.Phone.DLL.
    An exception of type 'System.InvalidOperationException' occurred in Silverlight.Media.Phone.DLL but was not handled in user code.
    Can anybody please help me how can I overcome this exception.And play stream continuosly in background until I stop it.
    ManyThanks in advance..

    You should ask in the discussion for that code sample.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • First Chance exception in build.exe(NTDLL.DLL);0xC0000008:Invalid Handle

    Hi Michael,
                               I am using WINDOWS XP with SP2 ; I am facing a problem after installing Sp6 for VC++
                 First Chance exception in build.exe(NTDLL.DLL);0xC0000008:Invalid Handle
         Please Help me out for this Michael.
    Thanks & Regards,
    Rakesh
    Rakesh

    Howdy Rakesh,
    I'm not sure who Michael is, but you might want to try the MSDN or the MSDN forum for general VC++ help.
    Warm regards,
    pBerg

  • First-chance exception on load and calls

    When loading our application we see quite a few "first chance exception" error messages being reported from the berkeley db xml library. The same first chance exceptions are thrown on each call to the berkeley db xml library - about 30 or so result from each call.
    Is this normal or is it indicative of a problem/misconfiguration?
    The following 2 errors (set) are thrown together numerous times:
    First-chance exception at 0x7c812a5b in app.exe: Microsoft C++ exception: DbException at memory location 0x0012cf48..
    First-chance exception at 0x7c812a5b in app.exe: Microsoft C++ exception: DbXml::XmlException at memory location 0x0012d210..
    Message was edited by:
    taka

    Hi,
    Those exceptions are expected during container open. When debugging under Visual Studio I tend to set a breakpoint after container open, then enable first-chance exceptions.
    Regards,
    George

  • A first chance exception of type 'System.IO.FileLoadException' occurred in Unknown Module.

    Hiii...
    I was doing FacebookIntegration App.Trying it from many dayss...Can anybody please help me with the below error.It was raising in FacebookLoginPage....
    A first chance exception of type 'System.IO.FileLoadException' occurred in Unknown Module.
    My code is
    namespace tori.Pages
        public partial class FacebookLoginPage : PhoneApplicationPage
               public FacebookLoginPage()
                InitializeComponent();
                this.Loaded += FacebookLoginPage_Loaded;
            async void FacebookLoginPage_Loaded(object sender, RoutedEventArgs e)
                if (!App.isAuthenticated)
                    App.isAuthenticated = true;
                    await Authenticate();
            private FacebookSession session;
            private async Task Authenticate()
                string message = String.Empty;
                try
                    session = await App.FacebookSessionClient.LoginAsync("user_about_me,read_stream,publish_stream,publish_actions");
                    App.AccessToken = session.AccessToken;
                    App.FacebookId = session.FacebookId;
                    Dispatcher.BeginInvoke(() => NavigationService.Navigate(new Uri("/Pages/LandingPage.xaml", UriKind.Relative)));
                catch (InvalidOperationException e)
                    message = "Login failed! Exception details: " + e.Message;
                    MessageBox.Show(message);
        While I was debugging error was raising in this line 
    App.FacebookSessionClient.LoginAsync("user_about_me,read_stream,publish_stream,publish_actions");
    While running the App in device I was getting the above error.
    And while running the app in emulator I was facing the below error
    A first chance exception of type 'System.TypeLoadException' occurred in System.Windows.dll
    Additional information: File or assembly name 'System.Threading.Tasks, Version=1.5.10.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A', or one of its dependencies, was not found.
    I am unable to understand what to solve and which is the reason also.
    Can anybody please help me in rectifying it...
    Many Thanks in advance..

    Hi venukoti,
    Are you using Facebook SDK for helping with feature implementation?
    Looks like your app does not have dependencies installed. Please try to re-install the Facebook SDK to see if the same thing happens.
    I would recommend you ask Facebook:
    http://facebooksdk.net/docs/windows/ also
    https://developers.facebook.com/tools-and-support/ for more sufficient suggestions.
    Thanks for your understanding.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • First-chance exception at 0x7c812a5b in Photoshop.exe: Microsoft C++ exception: [rethrow] at memory

    When I compile the Dissolve filter example code and run it while debugging it (Windows platform), I get the following error code in the Output window:
    First-chance exception at 0x7c812a5b in Photoshop.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    Is this normal? Is it ok to have this?
    This happens when I change the image to a smart object, apply the filter but hit cancel.

    StefanE wrote:
    I think the problem is, that the C program ends before the runtime has closed. So the error comes with static and dynamic linking of the dll. But not with dynamical linking if I unload the dll in my C program, wait manually (getchar) until the Labview runtime has closed and return then from the main function.
    That might be a possibility. Although a DLL is always linked dynamically
    I did check about the LabVIEW DLL itself. For LabVIEW 8.5 DLLs at least its DLLMain() function seems to do something that is considered rather bad by Microsoft. When it is called with DLL_PROCESS_DEATTACH it does always do a FreeLibrary() for lvrt.dll independant of the value of the third parameter "lpvReserved" to DLLMain(). This parameter is not very well documented on MSDN but there do exist some MSDN articles that warn explicitedly to do anything involved, and especially call FreeLibrary() for the DLL_PROCESS_DETACH case if this third parameter is not NULL. In that case the process that loaded the DLL is itself terminating and a lot of Windows APIs especially dealing with resource management are anything but safe to call at that time.
    Also trying to unload DLLs and deallocate Windows resources in process termination is although a noble idea not really necessary since Windows will do that on behalve of the process, (and probably has done so already for some resources before some deallocation routine executes that got triggered by the FreeLibrary() call).
    I would think this to be a clear case for a CAR.
    Rolf Kalbermatter
    Message Edited by rolfk on 01-20-2009 10:17 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • CreateObjectFromURL First-chance exception

    I am creating a test application that uses the href="https://msdn.microsoft.com/en-us/library/ms698996(v=vs.85).aspx SequencerSource similar to href="https://msdn.microsoft.com/en-us/library/ms697285(v=vs.85).aspx this .
    I load files into the SequencerSource one at a time, but every time I get to the second file I get an error.
    First-chance exception at 0x76B84598 in MFTest.exe: Microsoft C++ exception: bad_hresult at memory location 0x06CBF1D4
    HRESULT
    IPlayerN::CreateMediaSource(IMFMediaSource**
    ppSource,
    PCWSTRwszUrl,
    constDWORDdwFlags){
    TRACE_PLAYER((L"Player::CreateMediaSource"));
    HRESULThr =
    S_OK;
    MF_OBJECT_TYPEobjectType =
    MF_OBJECT_INVALID;
    IMFSourceResolver* pSourceResolver =
    NULL;
    IUnknown* pSource =
    NULL;
    try{
    IF_FAILED_THROW(hr = MFCreateSourceResolver(&pSourceResolver));
    IF_FAILED_THROW(hr = pSourceResolver->CreateObjectFromURL(
    wszUrl,
    MF_RESOLUTION_MEDIASOURCE,
    NULL,
    &objectType,
    &pSource
    ));  // I get error here
    IF_FAILED_THROW(hr = pSource->QueryInterface(IID_IMFMediaSource,
    reinterpret_cast<void**>(ppSource)));
    catch(HRESULT){}
    SAFE_RELEASE(pSource);
    SAFE_RELEASE(pSourceResolver);
    returnhr;
    I only get the error on the second file, the third, fourth, and so on get no error.
    If I turn off the notification for fist chance it seems to be handled and gets an hr = S_OK.
    Any Idea why I am getting this.
    Thanks in advance

    Hi,
    Those exceptions are expected during container open. When debugging under Visual Studio I tend to set a breakpoint after container open, then enable first-chance exceptions.
    Regards,
    George

  • Can I open directly to first page, and not the title/TOC?

    Can I open directly to first page, and not the title/TOC? We're using HTML5 content for multiple platforms. It works fine, but takes three steps to get to it. We'd like for the book to start immediately with our imported widget. The current process is clunky for the user. Thank you.

    Coincidentally i use Google also ..but i wouldn't like to change it...thanks.. your answer it's being helpful. I solved the problem by changing my Firefox preferences : 1.-PRIVACY 2.- Remember history mode.
    Anyway i still think that shouldn't work this way when you are in "Never remember history " mode.

  • After I upgraded to Firefox 4 on Windows XP, I was no longer able to print anything directly from a website except PDF files. I can print documents from any installed program on my hard drive. My printer is an HP LaserJet 1220

    I edited my original question above to provide all the info that I can think of. It is very frustrating to no longer be able to directly print from a website except for PDF files. I can do a work around by copying a web page to Microsoft Word and then printing it but I don't understand why I lost a basic function. David Pollock

    See this: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages

  • Switching back to DirectTV first chance I get.

    DVR cuts 3-5 mins off the tail of recordings. LIVE shows are cut short if games run long. When told to record "first run", DVR records everything filling up with 80 episodes of Top Gear, many of them repeats. Remotes are unresponsive, slow, GUI is a soggy mess, recordings are listed by date, not show title like DirectTV.... Overall much less pleasant viewing experience. Oh yeah, and On Demand can't fast forward... So I have to re-watch the first half hour of the new Blacklist as the first half of my recording was the Super Bowl.
    Fed up.

    Can't say that I have heard anyone else claim that DVR is cutting off the end of a non-live show that runs long.
    Pretty sure no DVR can extend the recording of a live show that runs long (ie a football game).
    On Demand FF is controlled by the content provider. I belive people have stated they see similar on other providers.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • Why do I use my ipod as a camera when I lose precious photos even when I try to back up before an update! Selling my ipod at the first chance I get

    Why do I use my Ipod tiuch as a camera when lose precious photos of my granddaughter every time there is an operating system update? Even when I try to back up the ipod, I can't find the pics etc on my pc. It is very annoying and I am seriously considering selling my ipod because of this. No warning is given that photos will be lost. So very disappointed in aple, lost all my music last time, as well as my pics.

    Yes, using the windows photo capture application is how you get photos taken with the iPod onto your pc. You should store them there, and organize them in folders.
    Create one main photo folder. Inside that folder create additional folders to hold photos. Each folder will become an album on an iPod, iPad, or iPhone. Do not next any other folders inside the first album folder.
    Then start iTunes on your pc and connect your iPod. Select your iPod in itunes and select the Photos tab that will be ps enter. You will most likely have first find your main photos folder. Ten select to sync all photos from your pc or select only those albums you want to have on your iPod. The click on Apply or Sync. That will copy the photos to your iPod.
    If you should do something later to cause these albums to disappear from your iPod you can quickly copy them back by doing another sync.

  • Since updating to ios 6 my ebooks won't work properly on my iPad. Skips from first page of a chapter directly to first page of next chapter. I'm very unimpressed

    Since updating to ios 6 yesterday, my ebooks won't work properly. They jump from first page of one chapter onto first page of next chapter. Obviously missing all the pages in between. Anyone else having this problem? Help please....

    I have a similar problem with Microsoft Visual C# 2010 Step by Step.  This ebook worked fine until I upgraded to ios 6.

  • NiSE_OpenS​ession Generates First-Chan​ce exception

    I am writing application code using Visual C++ 6.0 and am getting several of the following message in my debug output:
    First-chance exception in Application.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
    Using the debugger, I was able to track this exception down to a
    niSE_OpenSession call that I am making. The call is pretty
    straightforward, so I was wondering if this is a problem that should be
    addressed or if this is normal behavior.
    I am using:
    SwitchExecutive 2.10.49161.
    NI-SWITCH 3.00.49161
    Thanks,
    John

    This is normal. The exception comes (continue to read if you are interested) from the IVI layers that are used to access the IVI configuration store. These exceptions are expected and handled within the IVI components and the underlying COM libraries they use.
    NISE is not seeing these exceptions, and they are definitively not passed on to the client code such as yours. The bottom line is - ignore them. I hope this helps!
    -Serge
    Srdan Zirojevic

  • Creating an Oracle connection in Net WCF using ODAC causes Exception

    Why am I getting a 'System.TypeInitializationException' when I create an Oracle connection in my .Net WCF web service?
    =========================================================================
    I'm currently working on implementing a WCF service which talks to an Oracle 10g database on the backend. When I attempt to connect to the database from within my service, I get the following exception: System.TypeInitializationException.
    •I'm running on a windows 7 (64 bit machine).
    •I'm using VS 2010.
    •I'm using Oracle 10g on the backend.
    I'm the Oracle.DataAccess.dll (ODP.Net) from the following installed instance
    c:\oracle\product\10.2.0\.....\ODP.NET\bin\1.x\Oracle.DataAccess.dll
    •I've included this DLL in the references for my WCF service.
    •I've included this service as a project within my VS WPF solution.
    •The service starts up automatically when I start my WPF application in VS 2010.
    At runtime I see the following output in my debug output window:
    'WcfSvcHost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC\Oracle.DataAccess\1.102.2.20__89b483f429c47342\Oracle.DataAccess.dll' A first chance exception of type 'System.TypeInitializationException' occurred in Oracle.DataAccess.dll
    Sure enough, I look at the exception details in the debugger and I see the following information (this occurs when I attempt to create a new ORACLE connection):
    "The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception." InnerException {"The provider is not compatible with the version of Oracle client"} System.Exception {Oracle.DataAccess.Client.OracleException}
    A Little Background:
    I'm basically migrating my data layer to a WCF service. The same service layer previously existed in a WinForm application. Everything works fine in my WinForm application. I include the same reference to the Oracle.DataAccess.dll and all my reads/writes with the database work fine.
    Is there something obviously different between the WCF and WinForm access/use of the DLL? Is there some limitation I'm unaware of? Is there an issue running this through VS2010 in the debugger?
    I have absolutely no idea what is going on here. Any hints/direction would be greatly appreciated.

    It's certainly possible to install .NET 1.x on the machine while still using VS 2010, but MS does not support and most likely never tested this combination. Running .NET Framework 1.x on Windows 7 also is not supported. I didn't know you had successfully used this combination previously. Nonetheless, it's good to be on a supported combination that has been certified by MS and Oracle if you run into a problem.
    I had another reason to ask you to upgrade to ODP.NET 11.2 As it will be the last version installed, ODP.NET's unmanaged DLLs will appear in your PATH first. The error you see is typical when ODP.NET from one version tries to use DLLs from another Oracle instance installed on your machine.
    If that doesn't work, set the DllPath setting in your web.config file to the BIN directory of your newly installed Oracle Client. Here's an example of that:
    http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/featConfig.htm#sthref109

  • Error-System Type Initialization Exception occured in system data dll

     hello sir,
                 because of transferring my project from one pc to another pc i am getting following error:
    error massage:
    first chance exception of type 'System.TypeInitializationException' occurred in System.Data.dll
    Additional information: The type initializer for 'System.Data.Common.DbConnectionOptions' threw an exception.
    If there is a handler for this exception, the program may be safely continued.
    also attached image of error massage
    so how to by pass this error
    please help,
    regards,
    kavi-kalash

    Hello,
    >>because of transferring my project from one pc to another pc i am getting following error:
    This seems to be related with an environment issue, please have a check the worked machine and the non-worked one, to compare if there are some difference.
    >>If there is a handler for this exception, the program may be safely continued.
    This could be due to missing references. Or it could be due to an error in the app config file. Is it possible for you to post your code about the connect part and the connection string? And here is an article describes how to process the first chance exception:
    https://msdn.microsoft.com/en-us/library/dd997368(v=vs.110).aspx
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • PO Release status with date

    Hi Guys,              I have a requirement where in I need to list out the POs with the Release status based on              date range. Any pointers on this is appreciated. Thanks. Rgds, Senthil GR

  • PC-MAC migration Passwords?

    Hi, I recently bought a new MacBook Pro. I transferred all my data from my old PC to the MacBook using the Migration assistant. After that I signed in with my AppleID. Beneath that it had a box saying "Allow this AppleID to change the password of thi

  • Interactive Booklet Does Nothing

    Hi, I purchased Paul Oakenfold's new release called A Lively Mind last night. It comes with the bonus "Interactive Booklet - A Lively Mind.mov" which seems to do nothing in iTunes; I copied it out of iTunes and tried to open it with half-a-dozen apps

  • Embedded SWF flashes white before it loads.

    I have an SWF embedded in a table. When it loads in the browser the SWF briefly flashes white before the preloader begins to load. I have set the color properties in both the SWF file and in the table cell. Is there a way to change the color from whi

  • Performing arthmetic on generics

    Hi all, is it possible to do arithmetic operations in generic types? public <T,U,V> V add(T x, U y)  {        return x+y; }Edited by: jsunsnx on May 6, 2009 1:49 PM Edited by: jsunsnx on May 6, 2009 1:50 PM