Donate Now Goal amount for this month: 100 USD, Received: 0 USD (0%)
Donate to support this site and ThinBASIC project development

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
    6,408
    Rep Power
    650

    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 Thumbnails Attached Thumbnails Click image for larger version. 

Name:	unhandled.png 
Views:	99 
Size:	8.2 KB 
ID:	5318  
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

  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
    6,408
    Rep Power
    650

    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 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

Bookmarks

Posting Permissions

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