GithubHelp home page GithubHelp logo

Comments (9)

AllenDang avatar AllenDang commented on May 17, 2024

我下载了预编译的 MacOS 64bit的库也是一样的结果

from govcl.

AllenDang avatar AllenDang commented on May 17, 2024
f.EdtName.SetText("你好")
fmt.Println([]rune(f.EdtName.Text()))

打印出来的结果是 [65533 65533]

from govcl.

ying32 avatar ying32 commented on May 17, 2024

1、第一个错误看日志像是TStaticText控件有问题,一般用于标签显示的话用TLabel控件。
2、你直接fmt.Println(f.EdtName.Text()) 出来的结果是什么,是中文还是?

from govcl.

AllenDang avatar AllenDang commented on May 17, 2024

@ying32 直接打印的结果是乱码,看rune打印的结果可知,65533这已经超过正常字符的范围了。
这倒不是TStaticText的问题,是Text()方法获取的字符串存在问题,传过去的时候导致崩溃

from govcl.

ying32 avatar ying32 commented on May 17, 2024

最近mac不在身边,有得调试环境,你这个问题暂时没办法解决😳

from govcl.

ying32 avatar ying32 commented on May 17, 2024

你是用的主分支的代码么?还有1.2.6.4的liblcl.dylib

from govcl.

AllenDang avatar AllenDang commented on May 17, 2024

@ying32 我用的是主分支的代码。liblcl.dylib 分别使用了我自己编译的和你预编译的版本,结果都一样。

from govcl.

ying32 avatar ying32 commented on May 17, 2024

我看你用的是 go1.13.4,你可以尝试下go 1.13版本以下的,这次因为go1.13版本开始GC上出现了收回问题,或许跟这个有关。前几天就是因为传入的字符串遇到了这个问题,我想你这个有可能是同一个问题。

from govcl.

ying32 avatar ying32 commented on May 17, 2024

已经修复了,在MacOS下测试正常了。

from govcl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.