问题描述
大家好,我正在使用C ++ Managed 2010在form.h文件中设计GUI. GUI充当主服务器,查询从属卡中的数据流.
按下一个按钮(在ApplicationIO.cpp文件中)将调用一个函数,其中使用API win32(CREATETHREAD(...))创建2个线程:前者用于处理数据流,后者用于数据解析和在GUI上通过实时grpah进行数据监视.
该项目具有两种不同的行为:如果它以调试模式启动,则能够在数据分层期间将GUI控件更新为文本框(使用invoke)和图形,相反,当它启动而没有调试时,文本框中没有数据,并且数据显示得非常好.慢慢在图表上.
如何在不像启动调试模式那样进行调试的情况下运行项目启动?
Hi everyone, i''m using C++ managed 2010 for designing a GUI in a form.h file. The GUI acts as a master querying data streaming from slave card.
Pressing a button a function (in the ApplicationIO.cpp file) is called in which 2 threads are created by using API win32 (CREATETHREAD(...)): the former is for handling data streaming, and the latter is for data parsing and data monitoring on real time grpah on the GUI.
The project has two different behaviour: if it starts in debugging mode it is able to update GUI controls as textbox (using invoke) and graph during data straming, contrariwise when it starts without debugging no data appears in the textbox, and data are shown very slowly on the chart.
how does it is possible to run project starting without debuging like starting debugging mode?
is the problem about project settings, or is "begininvoke" a solution to use instead invoke?
推荐答案
这篇关于如何在不进行调试(如启动调试模式)的情况下运行项目启动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!