610:代码报错

问题

问题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)
$
相关推荐
czhc11400756632 天前
6.8 Dispose
mvvm
czhc11400756633 天前
6.7 弱引用
视觉
JohnnyDeng944 天前
【Android】RecyclerView性能优化与缓存机制:从卡顿到丝滑的完整指南
android·性能优化·kotlin·mvvm
故渊at4 天前
系列三:组件化与模块化进阶 | 第11篇 组件化项目规范与问题根治:依赖、资源、Manifest 与混淆的全链路管控
android·架构·mvvm·模块化·组件化
czhc11400756635 天前
6.5 注入
mvvm·运控
小满Autumn6 天前
MVVM Light 架构笔记:定位器、命令、消息与 IoC 实践
笔记·学习·架构·c#·上位机·mvvm
小满Autumn6 天前
CommunityToolkit.Mvvm 架构笔记:现代 MVVM、源生成器与工程化实践
笔记·架构·c#·.net·wpf·mvvm
杊页6 天前
系列二:MVVM 深度实战与项目重构 | 第6篇 DataBinding & ViewBinding 实战落地:告别 findViewById 的“刀耕火种”
架构·mvvm
搞科研的小刘选手6 天前
【高届数计算机方向会议】第七届计算机视觉与数据挖掘国际学术会议(ICCVDM 2026)
人工智能·算法·计算机·数据挖掘·软件工程·视觉·信息