If DataTable.Compute() function works 11,443,338,456. Can it be the root cause of the issue?

Jo Baek 1 Reputation point
2022-11-25T05:31:06.517+00:00

If DataTable.Compute() function works 11,443,338,456. Can it be the root cause of the issue?

In my program..
If the Compute Function 11,443,338,456 works, the Thread stops.

This appeared in my personal PC in 12-14 hours and stopped at 11,443,338,456.

Have you reported this issue?

This is my sample code..

///////////////////////////////////////////
long mcount = 0;

                thWatcher = new Thread(new ThreadStart(SampleFunction));  
                thWatcher.Start();  

                void SampleFunction()  
                {  
                    while (true)  
                    {  
                        Test();  
                        mcount++;  
                    }  
                }  

                void Test()  
                {  
                    string strtemp = "1=0";  

                    DataTable dt = new DataTable();  
                    dt.Compute(strtemp, "").ToString().ToUpper();  
                }  

///////////////////////////////////////////

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,605 questions
{count} votes