D
Deng Zhang
Here is my dilemma. I have a subroutine runs every 100mS. At the first, I
found that the system hangs after a few hours when I run this program. I
checked the memory usage under XP Task Manager. I found that memory used by
my program keep growing in a rate of 12KB per second.
Here is what I think the program is doing. The 100mS subroutine could not
complete in 100mS. Then the second comes, then third..... This makes the
stack used by the code keep growing until crashes the system.
I am thinking this is because the code did not get enough CPU time. Is a way
I could increase the priority level of the code within VB so that the system
will assign more CPU time to the process?
BTW, I use VB .NET 2003.
Thanks,
Dave
found that the system hangs after a few hours when I run this program. I
checked the memory usage under XP Task Manager. I found that memory used by
my program keep growing in a rate of 12KB per second.
Here is what I think the program is doing. The 100mS subroutine could not
complete in 100mS. Then the second comes, then third..... This makes the
stack used by the code keep growing until crashes the system.
I am thinking this is because the code did not get enough CPU time. Is a way
I could increase the priority level of the code within VB so that the system
will assign more CPU time to the process?
BTW, I use VB .NET 2003.
Thanks,
Dave