Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Macro running does not end

I have a macro in a QV which does not stop running and the QV document freezes.  How do i end the running of the macro and what could be causing this?

9 Replies
swuehl
MVP
MVP

You can kill the QV.exe process, this should stop everything.

Hard to tell what causes the macro not to stop, without knowing the code, but maybe a loop in your code with a missing / incorrect exit?

Chanty4u
MVP
MVP

go to task manager and do end task of qvw.

Anonymous
Not applicable
Author

Swuehl many thanks, this is what i have been doing, stopping the QV.exe. Attached is the qv app

Anonymous
Not applicable
Author

Thank you for that

sfatoux72
Partner - Specialist
Partner - Specialist

There is not debug mode in macro editor, bur you could add msgbox('xxx')  if VBscript or alert('xxx') if Jscript to identify loop without end (invalid exit condition, ...)  or instruction waiting something, ...

swuehl
MVP
MVP

I wasn't able to spot an easy candidate causing the freeze.

But since you are calling R COM object methods, I would try to check if these method calls could be problematic.

Also there are some FOR .. NEXT loops that depend on returned values from the R object.

So, as suggested before, try to add more e.g. msgbox() statements to get an idea where in the script the freeze occurs, and maybe also to get an idea of the state of your macro code (i.e. the values of variables, return codes, etc.)

You should be able to use similar code (at least for debugging the R calls) in Visual Studio for debugging, if necessary.

HirisH_V7
Master
Master

Hi ,

I cant Open Your App,

Can you post the macro you are using !!

HirisH
“Aspire to Inspire before we Expire!”
Anonymous
Not applicable
Author

Many thanks Swuehl

Anonymous
Not applicable
Author

Herewith macro

Screen Shot 2016-02-15 at 12.17.58.png

Screen Shot 2016-02-15 at 12.18.20.png

Screen Shot 2016-02-15 at 12.19.31.png