Issues with CMACWin

Product Compare Forums Multi-Edit Support Issues with CMACWin

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2967
    MewUser
    Participant

    Hi,

    I have a macro, that when run (after successful compile), generates an error(Capture1)

    I have a .bat file that behaves similar to the Find CMACWin run time error in the compile dialog. If I run this or the MEW cmacwin runtime, I end up with Capture2.

    My macro file consists of individual macros to format a file, then zip that file into a selected file.

    Any suggestions on what this message means, and why is it not returning the expected spot in the macro file?

    GenerateZip is a macro consisting of other macros, which, when run individually, do NOT generate any error messages!

    Here is what the macro is:

    int GenerateZip() // create a zip file from a list of jpg files
    {
    InitImageString();
    PickSurname();
    CombineLines();
    RemoveExtra();
    AddToZip();
    return(1);
    } // GenerateZip

    Thank you
    Capture1.JPG
    Capture2.JPG

    #9574
    Clay Martin
    Keymaster

    Hi,
    Somewhere along the way one of you macros in that chain is creating a runtime error. You should try using Make_Message( message_string) between calls to isolate the bad code. That function will stop execution until you press OK.

    HTH,
    Clay

    #9601
    MewUser
    Participant

    Clay, Thanks for the suggestion.

    It turned out that a function(which basically sets a global variable) was the culprit.

    I replaced the function with setting of the global variable.

    BTW, make_message does not prompt for an OK. MsgDlg does.

    #9602
    Clay Martin
    Keymaster

    Ooops, your right. Glad you found your problem.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.