问题
问题1








Disabled
问题2
问题3




问题4


HalconDotNet.HOperatorException
HResult=0x80131600
Message=HALCON error #1201: Wrong type of control parameter 1 in operator disp_text
Source=halcondotnet
StackTrace:
在 HalconDotNet.HOperatorException.throwOperator(Int32 err, Int32 procIndex)

当前 HALCON 24.05 C# 封装存在严重阉割:
HOperatorSet 无 GenTextRegion 文字生成算子;
HWWindow 窗口实例没有 SetFill()、SetFont()、部分绘图样式方法;
DispText 会报句柄类型 #1201 异常、PutText/gentext 算子不存在;
所有在 Halcon 窗口内绘制文字的方案全部失效,
问题3

问题4
从Master切换到分支,master代码被覆盖
一、底层原理(一句话看懂)
Git 每个分支都保存一套完整的文件快照(存在隐藏文件夹.git里,永久不会丢)。
执行 git checkout 分支名 切换分支时,Git 会重写你电脑磁盘上所有项目文件,把磁盘内容替换成目标分支快照里的代码。
举你的场景举例:
master 分支快照:包含你修改后的 MySqlDetectionRepository.cs(已经 commit 提交,永久存入 master 分支历史)
feature/bug 分支快照:是这套文件的旧版本 / 另一套代码
你执行 git checkout feature/bug
Git 读取feature/bug的快照,覆盖磁盘上全部项目文件
你打开 VS 看到磁盘文件变成旧代码,误以为 master 代码丢了
但.git仓库里 master 的提交、你的修改记录完整保留,一点没改动
csharp
11400@▒▒ MINGW64 ~
$ cd /d/vsprogram/WpfApp6
11400@ MINGW64 /d/vsprogram/WpfApp6 (master)
$ git checkout feature/bug
error: Your local changes to the following files would be overwritten by checkout:
WpfApp6/Data/MySqlDetectionRepository.cs
WpfApp6/WpfApp6.csproj
Please commit your changes or stash them before you switch branches.
Aborting
11400@ MINGW64 /d/vsprogram/WpfApp6 (master)
$ git add .
11400@ MINGW64 /d/vsprogram/WpfApp6 (master)
$ git commit -m "Mysql"
[master e4580cd] Mysql
8 files changed, 158 insertions(+), 8 deletions(-)
create mode 100644 DetectionTable.MySql.sql
create mode 100644 WpfApp6/Data/DbRepositoryFactory.cs
create mode 100644 WpfApp6/Test.cs
11400@ MINGW64 /d/vsprogram/WpfApp6 (master)
$ git checkout feature feature/bug
error: pathspec 'feature' did not match any file(s) known to git
error: pathspec 'feature/bug' did not match any file(s) known to git
11400@ MINGW64 /d/vsprogram/WpfApp6 (master)
$ git checkout feature/bug
Switched to branch 'feature/bug'
11400@ MINGW64 /d/vsprogram/WpfApp6 (feature/bug)
$ git checkout master
Switched to branch 'master'
11400@ MINGW64 /d/vsprogram/WpfApp6 (master)
$ git status
On branch master
nothing to commit, working tree clean
11400@ MINGW64 /d/vsprogram/WpfApp6 (master)
$ git checkout feature/bug
Switched to branch 'feature/bug'
11400@ MINGW64 /d/vsprogram/WpfApp6 (feature/bug)
$ git checkout master
Switched to branch 'master'
11400@ MINGW64 /d/vsprogram/WpfApp6 (master)
$ git checkout -b feature/newbug
Switched to a new branch 'feature/newbug'
11400@ MINGW64 /d/vsprogram/WpfApp6 (feature/newbug)
$ git add .
11400@ MINGW64 /d/vsprogram/WpfApp6 (feature/newbug)
$ git commit -m "halcon加载错误 算子等 冲突问题 继续冲突 "
[feature/newbug f2b815b] halcon加载错误 算子等 冲突问题 继续冲突
1 file changed, 20 insertions(+), 3 deletions(-)
11400@▒▒ MINGW64 /d/vsprogram/WpfApp6 (feature/newbug)
$ git status
On branch feature/newbug
nothing to commit, working tree clean
11400@ MINGW64 /d/vsprogram/WpfApp6 (feature/newbug)
$ git checkout master
Switched to branch 'master'
11400@ MINGW64 /d/vsprogram/WpfApp6 (master)
$ git merge feature/newbug
Updating e4580cd..f2b815b
Fast-forward
WpfApp6/ViewModel/XrayImageVM.cs | 23 ++++++++++++++++++++---
1 file changed, 20 insertions(+), 3 deletions(-)
11400@ MINGW64 /d/vsprogram/WpfApp6 (master)
$
