I implemented an OCX containing 2 pictureboxes controls.
Then in a simple application (one form, one button), I load at starting this OCX:
Private Sub Form_Load()
dim i as long
for i = 1 to 20000
The OCX loading does not finish well and I get 2 different errors according to the case:
the applicattion crashes with "error 7 out of memory"
and the number of OCXs loaded is 2374.
the application crashes with "Unable to load OCX, OCX might be obsolete" => and this is not the case!
The memory of my computer is 512Mo and the application
use about 32Mo in debug and 15Mo in reslease.
1- Does anyone already had this problem?
2- Is there a limit of loaded controls on a form?
3- Is there a way to control the amount of memory allocated for the application?