Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: ThinBASIC COM Server

  1. #11
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,779
    Rep Power
    10

    Re: ThinBASIC COM Server

    Roberto,

    I will check in thinCore.dll what happen when the passed script is a not existing file.
    I should have already managed it but I will double check again.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  2. #12
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,779
    Rep Power
    10

    Re: ThinBASIC COM Server

    Ok, I checked inside thinCore.dll

    Problem is there and precisely inside the Dialog Box of the RuntimeError handling function, the dialog used to show runtime error info to the user.

    Now I've fixed GPF but there is no dialog. This because RTE dialog is managed by an external DLL (thinRTE.dll) loaded dynamically when an error occurs. Now the loader of this dll is not able to find it because the main executable is not anymore thinBasic.exe but wScript.exe (in case of VBS) or other executable (in case of Excel files, js, ...)

    What I'm thinking to do is to incorporate thinRTE.dll functionalities inside main thinBasic engine (thinCore.dll). In this way there will be one dll less and no dependancies.

    I will check further in next days.

    Regards
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #13

    Re: ThinBASIC COM Server

    Eros,

    maybe it's better not touch thinRTE.dll and thinCore.dll, the important thing is having eliminated the GPF.
    Instead we can add the script's existence check to the COM server and later fix the dynamic loading of RTE.
    What do you think about?

    Ciao,
    Roberto
    http://www.thinbasic.com

  4. #14

    Re: ThinBASIC COM Server

    Updated the TBCOMServer.zip attachement with a couple of scripts that show how run a script from a string variable.

    Roberto
    http://www.thinbasic.com

  5. #15
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732

    Re: ThinBASIC COM Server

    Thanks Roberto,

    worked well for me!
    Just that different thinBasic install path on my PC forced me to update paths in test scripts manually.
    Not anymore, script slave does the dirty job for me, see attachement


    Petr

    UPDATED
    Attached Files Attached Files
    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

  6. #16

    Re: ThinBASIC COM Server

    Amazing, you are a high automated guy!
    I also like scripting because it can do a lot of otherwise annoying and repetitive works.

    Roberto.
    http://www.thinbasic.com

  7. #17

    Re: ThinBASIC COM Server

    Updated the TBCOMServer.zip attachement with a Power Basic example that show how run a script from a PB executable.

    Regards,
    Roberto
    http://www.thinbasic.com

  8. #18
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732

    Re: ThinBASIC COM Server

    Thanks Roberto,

    worked ok for my PB.
    I think the LET <objVar>, SET <objVar> are optional, at least when I put out those keywords, it worked too.
    According to help file, SET has been replaced with LET ... and LET is optional


    Petr
    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

  9. #19

    Re: ThinBASIC COM Server

    Petr,

    thanks for the info, updated again for reflecting your suggestions.

    Ciao,
    Roberto
    http://www.thinbasic.com

Page 2 of 2 FirstFirst 12

Similar Threads

  1. thinBasic CGI test server
    By ErosOlmi in forum CGI and FastCGI
    Replies: 2
    Last Post: 17-08-2010, 09:19
  2. HW upgrade on thinBasic.com Web Server
    By ErosOlmi in forum Announcements
    Replies: 3
    Last Post: 09-06-2008, 10:31

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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