Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9234675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:50:44+00:00 2026-06-18T06:50:44+00:00

I have created a visual basic application and it uses an OCX resource for

  • 0

I have created a visual basic application and it uses an OCX resource for office documents. Now, while I use the application everything seems to work fine, but when i exit the application it hangs with an access violation error (most of the time). This happens ONLY when i try to close the entire application.

I have tried to debug it, although it only shows a disassembly window stopped on an instruction mov eax,dword ptr [edi+4] and the call stack pointed on that specific OCX.

As the specific OCX is created by a third party developer, so I cannot modify it, is there a way to at least handle this exception? Or any other thoughts regarding this issue?

Thanks a lot!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:50:45+00:00Added an answer on June 18, 2026 at 6:50 am

    There’s no way to handle the error, which sounds like a bug in the OCX, but you might be able to prevent it. Make sure you’ve got the latest version. Make sure there’s nothing you need to dispose or close. Make sure all of the OCX functions have completed when you exit the application. As a last resort, you can try changing or commenting out some function calls to the OCX to see if anything makes a difference.

    Now would be a good time to start looking for an alternative to the OCX.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an application in VB.NET (using Microsoft Visual Basic 2010 Express) with
In my application I have created I need it to write a visual basic
I have created a Visual Studio 2010 ASP.NET Web Application. With it I have
I have created a Visual Studio 2010 ASP.NET Web Application. I've noticed that if
The Outlook add-ins I have created using Visual Studio 2005 don't use the ClickOnce
I have created a windows mobile application in Visual Studio. I want to templatize
I have a web application that runs perfectly fine when I use the Visual
I have a very basic Visual Basic Program that I created in Visual Studio
I am new to Visual Basic. I have installed Microsoft Visual Studio 2010. Created
We have a Visual Basic application inside of Microsoft Access and we need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.