a exception at writeline: ArgumentOutofRangeException:specified argument was out of range of valid values.

小姐 董 0 Reputation points
2025-01-12T12:51:43.3533333+00:00

User's image

Write line to a file by file stream "streamwriter". Whenever the variable data changes, write a line.It may run abnormally after running for several hours.It may run whole a day without abnomal. The code is as follows:

User's image

RecordRow dataRow = new RecordRow();

User's image

I can't find the cause of the abnormal. What could be the cause,Thank you

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.
11,185 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.