Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QAxBase Error calling IDispatch member occures only when Debugging without Breakpoints

QAxBase Error calling IDispatch member occures only when Debugging without Breakpoints

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 279 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JohnSRV
    wrote on 8 Jul 2020, 11:08 last edited by
    #1

    Hello Everyone,

    I'm having a weird situation when I run the following Code

    if (ZFsolutionFile.exists())
    {
        {
    	printf("The Solution exists! Opening...\n");
    	pSln->Open(ZFsolutionFile.fileName());
     	printf("Solution is Open\n");
        }
    		
    
    EnvDTE::Projects *projects = pSln->Projects(); //Get Array of all Projects in Solution
    if (projects == NULL)
    {
           printf("ERROR: No project objects could be found.\n");
           return -1;
    }
    		
    pPrj = projects->Item(QVariant(1)); // Choose first Project of Solution
    if (pPrj == NULL)
    {
            printf("ERROR: Project object could not be created.\n");
    	return -1;
    }
    

    When I debug this Code with Breakpoints it works fine! When I run it without Breakpoints i get the following Error

    QAxBase: Error calling IDispatch member Projects: Unknown error

    Why does this occur when not using breakpoints and how to fix it ?

    Thanks in advance

    1 Reply Last reply
    0

    1/1

    8 Jul 2020, 11:08

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved