jhpark 发表于 2023-6-22 17:41:28

[Question]Exception when I want to put the float value

Hi, sorry another issue.

I prepared a sample project again and testing the input of floating value
with Variable input control and Basic touch module(s).

What I want to input(format) is : xxx.xx

- 3 integer
- 2 decimal

But it's crashed with below error message in my Virtual screen.


************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
   at System.String.Insert(Int32 startIndex, String value)
   at BizDraw.Controls.Form_Preview.panel1_MouseDown(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)



Is there any wrong setting in my project ?
Here is my sample project :(fixed a litte)

Please check my project and let me know what's wrong.








DWIN-ARK 发表于 2023-6-22 19:20:15

Dear,
Please use .bmp or .jpg format picture.

jhpark 发表于 2023-6-23 10:17:05

DWIN-ARK 发表于 2023-6-22 19:20
Dear,
Please use .bmp or .jpg format picture.

Thanks for this answer too !

I changed my png picrues to bmp, but the exception is still happened.
Could you try my project with bmp and confirm whether it's OK ?

DWIN-ARK 发表于 2023-6-23 18:50:32

本帖最后由 DWIN-ARK 于 2023-6-23 19:54 编辑

jhpark 发表于 2023-6-23 10:17
Thanks for this answer too !

I changed my png picrues to bmp, but the exception is still happened ...
Dear,
The resolution of the green picture is different from the screen.
Now it has been modified.

The attachment is the normal use of DEMO.
Open with 7.645

jhpark 发表于 2023-6-26 10:52:13

DWIN-ARK 发表于 2023-6-23 18:50
Dear,
The resolution of the green picture is different from the screen.
Now it has been modified.

Thanks for your project and new DGUS2(7645) !!

I tested your project and found it's not crashed with exception,
but I also fount it's <Variable type> is <int>.
As I wrote I want to use Float like -123.45,
so I changed your <Variable type> to <float> and it's crashed as like mine...

Could you change your Variable type and test again for me ?

沃特玛贞帥斯基 发表于 2023-6-26 11:15:57

The simulation function of the configuration software is not yet complete. It is recommended to download it to the screen to see the effect. At present, the latest kernel and software only support the entry of Single-precision floating-point format numbers.

jhpark 发表于 2023-6-26 12:43:58

沃特玛贞帥斯基 发表于 2023-6-26 11:15
The simulation function of the configuration software is not yet complete. It is recommended to down ...

Thanks for your answer !

Then, do I understand it as my project should be work even it's not working in Virtual screen,
is this correct ?
Actullay many developer use Virtual screen to test and show how it work
and this link is one of them : https://youtu.be/hw6ZECVZadQ?t=1485
No problem to show float in Virtual screen...

And, what is the <latest> ? How I can sure whether my dwin screen has latest kernel ?
Is there any version information for each screen (including my DMG10600T101_A5WTR) ??


沃特玛贞帥斯基 发表于 2023-6-26 13:10:23

Yes, it must be downloaded to the screen. The simulation in the software is not accurate. The V63 version in this link is the latest kernel:http://inforum.dwin.com.cn:20080/forum.php?mod=viewthread&tid=142&extra=page%3D1&_dsign=1737455e

jhpark 发表于 2023-6-26 14:21:35

沃特玛贞帥斯基 发表于 2023-6-26 13:10
Yes, it must be downloaded to the screen. The simulation in the software is not accurate. The V63 ve ...

I see but my screen is out of order and I need a new screen device..
Before getting new screen I should try to confirm my project but I think it's not possible anymore...

Ah, I should check my screen's kernnel version,
how do I check the kernel version of my screen device ?
and how to update it if it's lower ?

lijiayan 发表于 2023-6-26 14:43:03

本帖最后由 lijiayan 于 2023-6-26 14:48 编辑

The blue screen interface of the burning project shows the kernel version number, and updating the kernel involves placing the kernel in DWIN_ SET folder, burning with SD card
页: [1] 2
查看完整版本: [Question]Exception when I want to put the float value