Path: news.cs.au.dk!not-for-mail From: "\[tricos.com\] Sascha Kimmel" Newsgroups: comp.lang.beta Subject: Access violation when using arrays? Date: 9 Nov 1999 09:04:03 -0000 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 93 Approved: mailtonews@cs.au.dk Distribution: world Message-ID: <19991109090403.14988.qmail@noatun.mjolner.dk> Reply-To: "\[tricos.com\] Sascha Kimmel" NNTP-Posting-Host: daimi.cs.au.dk X-Trace: xinwen.cs.au.dk 942138481 9028992 255.255.255.255 (9 Nov 1999 09:08:01 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 9 Nov 1999 09:08:01 GMT Xref: news.cs.au.dk comp.lang.beta:12154 Hi! I get the error >>>>>>>>>> Beta execution aborted: Access violation. Call chain: (nti_ms) item puttext# in ~beta/basiclib/private/betaenvbody item PutText# in ~beta/basiclib/betaenv item putline# in ~beta/basiclib/betaenv comp in H:/development/arraytest basic component in ~beta/basiclib/betaenv <<<<<<<<<< when executing the following program: >>>>>>>>>> ORIGIN '~beta/basiclib/betaenv'; -- program: descriptor -- (# array1:[0]@ (# i:@integer; t:^text; b:@boolean; #); array2:[0]@ (# h:^text; j:@integer; #); do 5->array1.new; 1->array1[1].i; 'Text1'->array1[1].t[]; true->array1[1].b; 2->array1[1].i; 'Text2'->array1[1].t[]; false->array1[1].b; 3->array1[1].i; 'Text3'->array1[1].t[]; true->array1[1].b; 4->array1[1].i; 'Text4'->array1[1].t[]; false->array1[1].b; 5->array1[1].i; 'Text5'->array1[1].t[]; true->array1[1].b; array1->array2; (for i:array2.range repeat array2[i].h[]->putLine; array2[i].j->putInt; newLine; for); 'Ready.'->putLine; #) <<<<<<<<<< Well, the question is why it is allowed to use "array1->array2"? The arrays differ in length and have different types of objects - why can I do that? Why doesn't the compiler abort? Regards, Sascha Kimmel -------------------------------------------------- tricos.com MEDIASERVICE http://www.tricos.com brave new web http://www.bravenewweb.net Lover's Paradise http://www.loversparadise.de orkus.net Internet Center http://www.orkus.net WebFreezer.com http://www.webfreezer.com -------------------------------------------------- Please include a copy of the original message in any replies. Incluez une copie de votre courrier original dans chaque réponse svp. Schicken Sie bitte immer eine Kopie der Original-eMail bei jeder Antwort.