50405

Can not debug an ActiveX inside a VB6 project with several components inside

Question:

I have to debug a big application done in VB6. The application is comprised of a main EXE, some ActiveX projects and other ActiveX control projects.

The problem I'm facing is that I cannot hit breakpoints inside some ActiveX projects. Looks like the application is using the OCX outside the debugger because the application runs but the breakpoints are simply not there.

The main EXE has a reference set to the OCX generated by that project. If I remove that reference I get a compilation error about unknown classes.

Any help will be great.

Answer1:

Make sure your ActiveX project is using binary compatibility (on the Component tab of the Project Properties). If it isn't, your exe project that references the ActiveX control is pointing to a different class id than your ActiveX project and you won't be able to debug.

Recommend

  • Unable to register DLL using Regsv32 - error “Dll
  • The module “.dll” was loaded but the entry-point was not found
  • VBA compatibility issues: 64-bit Windows7 (MSINET missing) and Trim function compatibility issues
  • Accessing Access Gateway programmatically
  • Debugging DLL Project in Visual Studio 2008 Using Attach to Process
  • How to escalate top-most supervisors in Akka?
  • Custom domains in a Rails App
  • How do I resolve an ImageSource IRandomAccessStream seeking not supported error?
  • angular 2 group validation
  • Custom .ToString() Formats in .rdlc Reports
  • Unable to install breakpoint in Eclipse: Absent Line Number Information
  • Edit assembly language code in Visual Studio while stepping through each statement
  • CUDA Debugging - VS on windows workstation, GPUs on Linux server?
  • Chrome breakpoint on radio doesn't fire
  • How do you keep a running instance for Google App Engine
  • RegistryKey.GetSubKeyNames returns names that are not in that subkey!
  • WordPress > setting permalink option via script buggy?
  • using System.Speech.Synthesis with Windows10 universal app (XAML-C#)
  • GAE: Way to get reference to an HttpSession from its ID?
  • IE11 throwing “SCRIPT1014: invalid character” where all other browsers work
  • Spring boot 2.0.0.M4 required a bean named 'entityManagerFactory' that could not be found
  • What is the purpose of TaskExecutor in spring?
  • WPF ICommand CanExecute(): RaiseCanExecuteChanged() or automatic handling via DispatchTimer?
  • How solve “Qt: Untested Windows version 10.0 detected!”
  • ViewController With Transparent Background Entering Current ViewController With Push Transition
  • Debugging ASP.NET on a built-in web server suddenly stops
  • Nant, Vault & Windows Integrated Authentication
  • C# - Is there a limit to the size of an httpWebRequest stream?
  • Is my CUDA kernel really runs on device or is being mistekenly executed by host in emulation?
  • Bug in WPF DataGrid
  • How to recover from a Spring Social ExpiredAuthorizationException
  • Javascript Callbacks with Object constructor
  • Join two tables and save into third-sql
  • Perl system calls when running as another user using sudo
  • How can I use Kendo UI with Razor?
  • How to model a transition system with SPIN
  • ORA-29908: missing primary invocation for ancillary operator
  • jQuery tmpl and DataLink beta
  • How can I estimate amount of memory left with calling System.gc()?
  • Converting MP3 duration time