Error: Divided By Zero / Array of zero size

A PocketC native palm library offering native forms and assorted utilities

Postby r2k on Mon Feb 07, 2005 6:48 pm

<font face="Trebuchet MS">i have another problem pocketC report me this error "Array of 0 [zero] size" and "division by zero" in the follow line any suggestion?</font id="Trebuchet MS">

Code: Select all
if(limit2>0 && groupID>-1) peopleArr=Array("s,"+limit2);

Posts: 10
Joined: Sat Jan 08, 2005 1:51 am

Postby jstadolnik on Tue Feb 08, 2005 2:30 am

I suspect you have a bug in your code. Maybe limit2 is a string or may peopleArr is not a pointer type?

I tested the following code, and it ran fine for me with PocketC v6.6 & PToolbox 7.6.2beta9.

library "PToolboxLib"

main() {
int value=5;
pointer ptr;
int i;


for(i=0;i<5;i++) {


The PToolboxLib guy.
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Return to Pocket Toolbox

Who is online

Users browsing this forum: No registered users and 1 guest