I need to plot a large number of straight lines. I'm using WGGroupLines and preparing an array of two-point groups.
Whenever the number of lines gets over about 125 or so (128 maybe?) I get the "Cannot allocate global memory." error messagebox when I call WGDefineGroupData.
I have looked through the PDF of the manual and can't see any explicit mention of a limit on the number of groups. Though a limit of 64k points is documented, I'm nowhere near this since each of my lines only has two points in it.
Is there a limit on the number of groups, and if so is it documented? Tony.
The maximum number of groups that you can have in a group dataset is 32, regardless of the number of points per group. See page 19 of the manual. You can have an unlimited number of data points per group, up to the limit of available memory.
I must be looking at a different manual. WINVB100.pdf which came with my software makes no mention of this on page 19. When I searched the whole document for "32" I did find "MAXGROUPLEN 32 Maximal group length" in the listing of constants which certainly implies this maximum, though it is not mentioned other than in this list.
You didn't say VB. In the VB manual it says that the maximum number of groups is 16 on page 18.
" The number of rows in this array must be equal to the number of data points, and the number of columns - to the number of dependent variables. We call data sets based on multiple dependent variables "group" data sets. A group size is equal to the number of dependent variables and cannot exceed 16.
This was changed to 32 several years ago and that number in the manual didn't get updated.
If you need more than 32 groups just create multiple group datasets and plot each with separate calls to the WGGroupLines you were using.