DIV ARENA FORUMS

Error118, Write() function.

Vortigano - 15-7-2017 at 09:28 PM

Hola amigos, quisiera sacarme una duda, estoy recibiendo el error(118) cuando intento compilar unos ejercicios, ¿cuantas veces puede llamarse a la función Write() o Write_int() simultáneamente en un programa?
En otros similares como Gemix o DivGo no he tenido problemas, pero en Div-dx creo que 255 veces es el límite. Tal vez yo estoy haciendo algo mal. Saludos, espero con ansias por la siguiente nightly build. ^_^)/


Code:
Program id_label_272; global id_label[271]; struct matriz[271]; string texto; end i; begin from i=0 to 271; matriz[i].texto=itoa(i); id_label[i]=write(0,(i%16)*20, (i/16)*12,0,matriz[i].texto); end loop if(key(_esc))exit("Salida",0);end frame; end end


CicTec - 16-7-2017 at 03:11 AM

Hola Vortigano,

En el DIV2 original (y tambien en el actual DIVDX, siendo basado en el codigo original de DIV2) el limite es de 256 textos simultaneos, Gemix tiene un limite superior y DivGo (supongo) tambien, por eso no te salta el error.

-----------------------------------------------------------------------------------------------------------------------------------------------------

Hi Vortigano,

In the original DIV2 (and also in the current DIVDX being based on the original DIV2 code) the limit is 256 simultaneous texts, Gemix has a higher limit and DivGO (I suppose) also, so you do not see the error.

[Edited on 16-7-2017 by CicTec]

Vortigano - 16-7-2017 at 07:54 AM

Muchas gracias Cictec!!!, un gran saludo. Buen fin de semana.

CicTec - 16-7-2017 at 09:09 AM

De nada, buen fin de semana tambien a ti.

-----------------------------------------------------

You are welcome, good week end also to you