Results 1 to 3 of 3

Thread: WMIc deprecated

  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174

    WMIc deprecated

    It's already like that (displayed if input "WMI" to commandline) WMI/WMIC is deprecated.

    Anyway WMI module depends on it but since iDispatch is part of the core-module i would consider to drop the "experimental WMI-module" and its sample-file out of the shipped Installer-package.
    Maintain it maybe as an optional additional module, available in forum somewhere together with some note that WMI.dll is required etc.


    Also OnlineScores-module could be migrated as an optional additional download since it will not function without any preparation of the forum-software. That still can be done as soon as someone asks for it
    And if someone reallly uses it, it will be no big deal to have thinbasic downloading the required module ´(It's ONLINE-scores so if anyone wants to use it he will be connected to the internet anyway...)
    Just mention in Help where to obtain it ("additional modules in forum") and just start a slight cleanout of things that will be deprecated soon or that were never used by anyone.
    I think there are missing some Forum-sections as beta-testing and support

  2. #2
    Member DirectuX's Avatar
    Join Date
    Oct 2018
    Location
    France
    Posts
    417
    Rep Power
    55
    about wmi there is some nuance :
    As mentioned in comments, WMIC is utility that acts as interface to communication with WMI. It's not WMI itself that is being deprecated, but "just" the interface.
    source: https://stackoverflow.com/questions/...-is-deprecated
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

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

    thanks for the information. I think it would be good to add information to help file, that WMI[C] might be in danger on Windows 10. I did not know it and I thank you for letting us know

    However, as we have users of older Windows in thinBASIC users base, for these it is perfectly valid tool.

    If we find feature which has no future (may be the case of WMI), I think we should:
    - state it clearly in release notes/forum/social media
    - state it clearly in help file
    - remove it in next Major release (thinBasic 2.x)

    I have features in TBGL marked as deprecated since 2006, but I will remove them completely not sooner than in ThinBASIC 2.x.

    I would personally perform removal/breaking changes only in case:
    - of major version number change (thinBasic 1.x -> 2.x)
    - in Beta versions - Beta version are experimental, to get feedback on shaping of new features, and change is possible/expected, as nobody responsible uses Beta version on critical projects

    This way users can update their thinBASIC 1.x stable on production with confidence their older code runs without any change.

    I am sure there will be well justified exceptions from these rules, but not everyone has time to monitor release notes to find one of the 1000 changes contains something which will break his code.

    What would be ideal for sure is some kind of tool to analyze scripts and warn you about usage of deprecated functions.


    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

Similar Threads

  1. Replies: 2
    Last Post: 20-11-2014, 15:40
  2. MOD operator deprecated
    By ErosOlmi in forum Suggestions/Ideas discussions
    Replies: 3
    Last Post: 03-03-2008, 13:55

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
  •