vector.com|Contact
Search tips

apple banana
Find rows that contain at least one of the two words.

+apple +juice
Find rows that contain both words.

+apple macintosh
Find rows that contain the word 'apple', but rank rows higher if they also contain 'macintosh'.

+apple -macintosh
Find rows that contain the word 'apple' but not 'macintosh'.

+apple ~macintosh
Find rows that contain the word 'apple', but if the row also contains the word 'macintosh', rate it lower than if row does not. This is "softer" than a search for '+apple -macintosh', for which the presence of 'macintosh' causes the row not to be returned at all.

+apple +(>turnover >strudel)
Find rows that contain the words 'apple' and 'turnover', or 'apple' and 'strudel' (in any order), but rank 'apple turnover' higher than 'apple strudel'.

apple*
Find rows that contain words such as 'apple', 'apples', 'applesauce', or 'applet'.

"some words"
Find rows that contain the exact phrase 'some words' (for example, rows that contain 'some words of wisdom' but not "some noise words").

By continuing to use this site you agree to the use of cookies. For more information and to find out how to change this click here. Accept Cookies
Please enable cookies in your browser for this website.
Search:
Advanced search

Error Message: ‘The handle is invalid’

Last updated: 2019-05-06
Issue:

This error message might occur with any of the tools like Updater, Merger, … from the ASAP2 Tool-Set. Here is an example using the Updater:
 

  • Batch file content:

    @echo off
    set path=tools;D:\ProgramFiles\ASAP2Toolset\11.0\Exec
    make Generate_a2l -f makefile 2>&1 | tools\mtee.exe /t/+ buildlog.log

     
  • Makefile content:

    .PHONY: build_a2l
    build_a2l: Generate_a2l

    Generate_a2l:
    ASAP2Updater -I Demo.a2l -A demo.MAP -O test_makefile_v11.a2l -T Updater.ini -L test_makefile_v11.log

     

After executing the batch file, the log file buildlog.log contains the following error:

<ERROR> The handle is invalid.

Without the command 2>&1 | no error is written to the log file.
 

Solution:

The progress view needs to be deactivated. This can be done by adding the following line to the section [options] in your UPDATER.INI file:

[options]
HIDE_PROGRESS_VIEW = 1

 
Background:

The issue is caused by position controlled outputs in the console. These commands are used for the progress view into the console. The ASAP2-Toolset writes the progress view into the console (0%... 100%). To write this progress view the cursor of the console has to be positioned to the beginning every time the progress view is updated. 
 

For example the progress view has the value 50% at the moment. Now, the progress view changes to 56%, but the 56% should be written at the same position as the 50% were written before (and not after the 50%). So the cursor has to be positioned to the beginning of the 50% and then the 50% is overwritten with 56%. The STDOUT is redirected by the command 2>&1| to the Mtee.exe tool and this results into issues in combination with position controlled outputs.
 

This issue might occur for any cases where the standard output (console) is somehow forwarded to other tools/applications. This is for instance the case if MATLAB is used in this context.
 

 
Article Options
2019-05-06
Views: 917
Error(s) occurred processing form.
Please complete all required fields. Fields marked with * are required.