There are two types of window operations in Halcon:
1. dev_open_window opens the entity’s form and displays the image
2. open_window opens a virtual form, which is actually an image into the cache
-
* See the official routine advanced_visualization_settings.hdev
-
dev_close_window()
-
dev_open_window ( 0, 0, 512, 512, ‘black’, WindowHandle)
-
set_window_param (WindowHandle, ‘graphics_stack’, ‘true’) //default value: ‘false’
-
set_window_param(WindowHandle, ‘flush’, ‘false’) //default value: ‘true’
In my C++ project, I encountered this problem. When the SetWindowParam function is executed, an exception is always reported:
HALCON error #5190: Invalid window parameter
The solution is as follows:
The SetWindowParam function needs to rely on the dynamic library file hcanvas.dll, and copy the library from
C:\Program Files\MVTec\HALCON-xxx\bin\x64-win64
to your own project path.
Read More:
- [Solved] Halcon & C# Error: HalconDotNet.HOperatorException:“HALCON error #5190: Invalid window parameter in op
- [Solved] Error d8021: invalid numeric parameter “/wno CPP” cython_bbox
- [Solved] Loadrunner Error: with parameter delimiters is not a parameter.
- [Android] method of removing title bar and using request window feature (Window.FEATURE_ NO_ Title); why does it fail
- [Solved] Appium Error: InvalidArgumentException: Message: invalid argument: invalid locator
- [Solved] SyntaxError: Invalid regular expression: invalid group specifier name
- Python3: Str.format Keyerror Solution for incoming parameter error
- [Solved] MindSpore Error: Data type conversion of ‘Parameter’ is not supporte
- How to Solve setsupportactionbar parameter Error
- [Solved] C + + compile Error: error: default argument given for parameter 3
- [Solved] ERROR: lib/bridge_generated.dart:837:9: Error: The parameter ‘ptr‘ of the method ‘FlutterRustB
- OpenCV(-206:Bad flag (parameter or structure field)) Unrecognized or unsupported array type [How to Solve]
- TypeException: Error setting non null for parameter #1 with JdbcType null
- Template argument deduction/substitution failed: couldn‘t deduce template parameter [How to Solve]
- [Solved] sending const NSString * to parameter of type NSString * discards qualifiers
- Sending ‘const NSString *’ to parameter of type ‘NSString *’ discards qualifiers [Solved]
- Fetch Error: Failed to execute ‘fetch’ on ‘Window’: Request with GET/HEAD method cannot have body
- JZVideo Error: Attempt to invoke virtual method ‘android.view.Window android.app.Activity.getWindow()’ on a null object reference
- Mybatis Integrate SQLSERER Null Value Error: Error setting null for parameter # with JdbcType OTHER
- C++ BUG: [Error] invalid array assignment