>But the form is fairly "heavy" class, right?
Probably. Do you need thousands of them?
Here is a speed test:
StartTime = seconds()
dimension oArray(100)
for i = 1 to 100
oArray(i) = CreateObject("Form")
next
EndTime = seconds()
? "Time to instantiate:", EndTime - StartTime
release oArray
? "Time to release:", seconds() - EndTime
Less than half a second to create all the objects, and less than half a second to release the array.
NOTE: In VFP 6, I tried it with 1000 forms first, but then I got the error message:
Too many windows open. So there does seem to be some limitation in this respect.
In VFP 8, it did work with 1000 forms (array elements), but it took about 16 seconds to create, and 11 seconds to destroy. Since the times for 100 array elements is similar to VFP 6, I suspect the additional delay is due to array access, and not to creating the forms themselves.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)