Results 1 to 3 of 3

Thread: Few EXE module issues

  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736

    Few EXE module issues

    Hi Roberto,

    Issue 1
    When I try to run RecurseExeSubsystem.tBasic from SampleScripts, I get run-time error telling me that EXE_PE_GETSUBSYSTEM is not defined. Did it become obsolete?

    Issue 2(?)
    When I use EXE_PE_Is32, EXE_PE_Is64 or EXE_PE_IsUPX for "c:\windows\system32\append.exe", it produces messagebox on attached picture.

    Do you think it would be possible to handle incorrect input in other way than with msgbox? When I run script which tries to analyze whole drive, I don't want my script to "hang" on msgbox which I must confirm.

    Maybe those functions should simply return %FALSE in such a cases - I think it would not mean problem, corrupted/wrong EXE really is not 32bit/64bit/UPX one.

    I know Xmas are approaching, so I don't want you to fix this right now, just wanted to let you know.


    Petr
    Attached Images Attached Images
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  2. #2

    Re: Few EXE module issues

    Hi Petr,

    Issue 1 Sorry I forgot it.

    Issue 2 Added EXE_EnableException() and EXE_DisableException() for change the behaviour, both two function return the new state for exception.

    Please find the attached file that holds fixes for both issues.

    Thank you very much and best regards,
    Roberto
    Attached Files Attached Files
    http://www.thinbasic.com

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736

    Re: Few EXE module issues

    Hi Roberto,

    thanks a lot for such a fast correction!
    Exceptions are interesting way to handle incorrect input.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Members who have read this thread: 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •