Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exception when Exe is run
#1
I have created a macro that runs fine from Quick Macros.
When I run the macro exe I get a window with a red circle with a X and the word "exception."
The window just has an OK button.
I am not getting any output to Quick Macros or the log file.
I have added an Excel spreadsheet to the exe with reshack.
The Excel spreadsheet extracts without problem in Quick Macros.
What could be causing this type of error?
#2
I have found that if I create the exe without any resource listed it runs until it tries to extract the resource.
#3
Like this?
Macro
Code:
Copy      Help
;/exe
_i/0

;BEGIN PROJECT
;flags  0
;END PROJECT
#4
I am using the ExeResourceToFile and ExeLoadDataResource examples given in the forums.
#5
Exceptions usually are result of bugs in macro code or in QM. But I don't know the exact reason if I don't see the macro code.

Newer QM versions have function ExeExtractFile for extracting exe resources. Try it instead of ExeResourceToFile.

Also now you can add files with #exe. Read in QM help.
#6
The exe works with ExeExtractFile.
Thanks


Forum Jump:


Users browsing this thread: 1 Guest(s)