I get a memormy violation when i use the following code in a program.
Set screen (Say 640,480)
Set backbuffer (First part goes ok. Nothing wrong)
repeat
Draw something on the screen
check for something
Repeat
Draw something else on the screen ( Here the swapfile filled up And eventualy give the error)
flip
Cls
until Situation demand it
flip
cls
untile first situation demand it
The outer loop works ok. Nothin happens. But when the inner loop starts the swapfile slowly filled up. Its take about 5 minutes when the wornig is comming.
Why is it working on the outer loop and the program can run unlimmeted.
This error goes on all versions.
Set screen (Say 640,480)
Set backbuffer (First part goes ok. Nothing wrong)
repeat
Draw something on the screen
check for something
Repeat
Draw something else on the screen ( Here the swapfile filled up And eventualy give the error)
flip
Cls
until Situation demand it
flip
cls
untile first situation demand it
The outer loop works ok. Nothin happens. But when the inner loop starts the swapfile slowly filled up. Its take about 5 minutes when the wornig is comming.
Why is it working on the outer loop and the program can run unlimmeted.
This error goes on all versions.