Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Windows
 Charting and Real-Time Graphics Tools for Windows
 "Cannot allocate global memory" in WGDefineGroupDa
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

TonyGrayDSI

14 Posts

Posted - 16 Jun 2005 :  17:04:37  Show Profile  Reply with Quote
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.

Edited by - TonyGrayDSI on 16 Jun 2005 19:22:28

quinncurtis

1164 Posts

Posted - 16 Jun 2005 :  19:23:45  Show Profile  Reply with Quote
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.
Go to Top of Page

TonyGrayDSI

14 Posts

Posted - 20 Jun 2005 :  18:41:31  Show Profile  Reply with Quote
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.
Go to Top of Page

quinncurtis

1164 Posts

Posted - 20 Jun 2005 :  23:27:12  Show Profile  Reply with Quote
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.
Go to Top of Page

TonyGrayDSI

14 Posts

Posted - 21 Jun 2005 :  15:34:15  Show Profile  Reply with Quote
Thanks, you're right - and I missed it in the manual. I'll try the multiple datasets approach.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07