Jump to content

Problem with large const arrays


Go to solution Solved by Luke94,

Recommended Posts

so i have come across a problem declaring a large const array.

I have a ~500 index big array which i want to be a const, bcs of not changing the contents obviously.
I did that before without a problem like this
 

Global Const $LARGE_ARRAY = [ _
    0, _ ;~ Index 0
    5, _ ;~ Index 1
    12, _ ;~ Index 2
    ;~ <...>
    7, _  ;~ Index 511
    25 _ ;~ Index 512
]

this works fine until a certain point, bcs the autoit stripper is turning the '_' into one line again and it is exceeding the autoit line limit, which causes the script not to start.
I have to remove the Const identifier, so i can solve it this way:
 

Global $LARGE_ARRAY[513]
$LARGE_ARRAY[0] = 0
$LARGE_ARRAY[1] = 5
$LARGE_ARRAY[2] = 12
;~ <...>
$LARGE_ARRAY[511] = 7
$LARGE_ARRAY[512] = 25

which solves the problem.
but now it is not a const anymore which I really want.
I came onto the idea declaring a local variable inside a function this way and save the result into a global const on startup but
it does not feel correct to me.

Can anybody enlighten me on a feature i havent found in the helpfile yet?

Link to post
Share on other sites
5 minutes ago, Zvend said:

but now it is not a const anymore which I really want.

so..., a constant declaration. What for ?!, is your code !, unless you don't trust yourself and are afraid of ... something ?
This is scripted language and me as a non-coder, could not care less about constants.
Then again, why declare an array as constant ?.
In any case, 512 entries in an array is not a large array. It should work fine. ( read the help file about constrains and limits )

As far as a constant array: 

Func MyArray()
    Local Static $aArray[513] = [512] 
    Return $aArray
EndFunc

would this work ?

Link to post
Share on other sites
2 minutes ago, argumentum said:

so..., a constant declaration. What for ?!, is your code !, unless you don't trust yourself and are afraid of ... something ?
This is scripted language and me as a non-coder, could not care less about constants.
Then again, why declare an array as constant ?.
In any case, 512 entries in an array is not a large array. It should work fine. ( read the help file about constrains and limits )

As far as a constant array: 

Func MyArray()
    Local Static $aArray[513] = [512] 
    Return $aArray
EndFunc

would this work ?

I dont think you read my post correctly. Its not about the size of the array.
It is about the line limit permitted by autoit, which is 4095. (Ref: Here, line 3: MAX_LINESIZE)

It is a predefined infrastructure from my company in c++. So it must be constant.
And even tho 512 is not "large", it is big enough to be bigger than 4095 bytes to fit in one line and make the script not executable.

Link to post
Share on other sites

ok, this is the new sample array:

#include <Array.au3>
Global Const $LARGE_ARRAY = [ _
00000000000, _ ;~ Index 0
10000000000, _ ;~ Index 1
20000000000, _ ;~ Index 2
30000000000, _ ;~ Index 3
40000000000, _ ;~ Index 4
50000000000, _ ;~ Index 5
60000000000, _ ;~ Index 6
70000000000, _ ;~ Index 7
80000000000, _ ;~ Index 8
90000000000, _ ;~ Index 9
100000000000, _ ;~ Index 10
110000000000, _ ;~ Index 11
120000000000, _ ;~ Index 12
130000000000, _ ;~ Index 13
140000000000, _ ;~ Index 14
150000000000, _ ;~ Index 15
160000000000, _ ;~ Index 16
170000000000, _ ;~ Index 17
180000000000, _ ;~ Index 18
190000000000, _ ;~ Index 19
200000000000, _ ;~ Index 20
210000000000, _ ;~ Index 21
220000000000, _ ;~ Index 22
230000000000, _ ;~ Index 23
240000000000, _ ;~ Index 24
250000000000, _ ;~ Index 25
260000000000, _ ;~ Index 26
270000000000, _ ;~ Index 27
280000000000, _ ;~ Index 28
290000000000, _ ;~ Index 29
300000000000, _ ;~ Index 30
310000000000, _ ;~ Index 31
320000000000, _ ;~ Index 32
330000000000, _ ;~ Index 33
340000000000, _ ;~ Index 34
350000000000, _ ;~ Index 35
360000000000, _ ;~ Index 36
370000000000, _ ;~ Index 37
380000000000, _ ;~ Index 38
390000000000, _ ;~ Index 39
400000000000, _ ;~ Index 40
410000000000, _ ;~ Index 41
420000000000, _ ;~ Index 42
430000000000, _ ;~ Index 43
440000000000, _ ;~ Index 44
450000000000, _ ;~ Index 45
460000000000, _ ;~ Index 46
470000000000, _ ;~ Index 47
480000000000, _ ;~ Index 48
490000000000, _ ;~ Index 49
500000000000, _ ;~ Index 50
510000000000, _ ;~ Index 51
520000000000, _ ;~ Index 52
530000000000, _ ;~ Index 53
540000000000, _ ;~ Index 54
550000000000, _ ;~ Index 55
560000000000, _ ;~ Index 56
570000000000, _ ;~ Index 57
580000000000, _ ;~ Index 58
590000000000, _ ;~ Index 59
600000000000, _ ;~ Index 60
610000000000, _ ;~ Index 61
620000000000, _ ;~ Index 62
630000000000, _ ;~ Index 63
640000000000, _ ;~ Index 64
650000000000, _ ;~ Index 65
660000000000, _ ;~ Index 66
670000000000, _ ;~ Index 67
680000000000, _ ;~ Index 68
690000000000, _ ;~ Index 69
700000000000, _ ;~ Index 70
710000000000, _ ;~ Index 71
720000000000, _ ;~ Index 72
730000000000, _ ;~ Index 73
740000000000, _ ;~ Index 74
750000000000, _ ;~ Index 75
760000000000, _ ;~ Index 76
770000000000, _ ;~ Index 77
780000000000, _ ;~ Index 78
790000000000, _ ;~ Index 79
800000000000, _ ;~ Index 80
810000000000, _ ;~ Index 81
820000000000, _ ;~ Index 82
830000000000, _ ;~ Index 83
840000000000, _ ;~ Index 84
850000000000, _ ;~ Index 85
860000000000, _ ;~ Index 86
870000000000, _ ;~ Index 87
880000000000, _ ;~ Index 88
890000000000, _ ;~ Index 89
900000000000, _ ;~ Index 90
910000000000, _ ;~ Index 91
920000000000, _ ;~ Index 92
930000000000, _ ;~ Index 93
940000000000, _ ;~ Index 94
950000000000, _ ;~ Index 95
960000000000, _ ;~ Index 96
970000000000, _ ;~ Index 97
980000000000, _ ;~ Index 98
990000000000, _ ;~ Index 99
1000000000000, _ ;~ Index 100
1010000000000, _ ;~ Index 101
1020000000000, _ ;~ Index 102
1030000000000, _ ;~ Index 103
1040000000000, _ ;~ Index 104
1050000000000, _ ;~ Index 105
1060000000000, _ ;~ Index 106
1070000000000, _ ;~ Index 107
1080000000000, _ ;~ Index 108
1090000000000, _ ;~ Index 109
1100000000000, _ ;~ Index 110
1110000000000, _ ;~ Index 111
1120000000000, _ ;~ Index 112
1130000000000, _ ;~ Index 113
1140000000000, _ ;~ Index 114
1150000000000, _ ;~ Index 115
1160000000000, _ ;~ Index 116
1170000000000, _ ;~ Index 117
1180000000000, _ ;~ Index 118
1190000000000, _ ;~ Index 119
1200000000000, _ ;~ Index 120
1210000000000, _ ;~ Index 121
1220000000000, _ ;~ Index 122
1230000000000, _ ;~ Index 123
1240000000000, _ ;~ Index 124
1250000000000, _ ;~ Index 125
1260000000000, _ ;~ Index 126
1270000000000, _ ;~ Index 127
1280000000000, _ ;~ Index 128
1290000000000, _ ;~ Index 129
1300000000000, _ ;~ Index 130
1310000000000, _ ;~ Index 131
1320000000000, _ ;~ Index 132
1330000000000, _ ;~ Index 133
1340000000000, _ ;~ Index 134
1350000000000, _ ;~ Index 135
1360000000000, _ ;~ Index 136
1370000000000, _ ;~ Index 137
1380000000000, _ ;~ Index 138
1390000000000, _ ;~ Index 139
1400000000000, _ ;~ Index 140
1410000000000, _ ;~ Index 141
1420000000000, _ ;~ Index 142
1430000000000, _ ;~ Index 143
1440000000000, _ ;~ Index 144
1450000000000, _ ;~ Index 145
1460000000000, _ ;~ Index 146
1470000000000, _ ;~ Index 147
1480000000000, _ ;~ Index 148
1490000000000, _ ;~ Index 149
1500000000000, _ ;~ Index 150
1510000000000, _ ;~ Index 151
1520000000000, _ ;~ Index 152
1530000000000, _ ;~ Index 153
1540000000000, _ ;~ Index 154
1550000000000, _ ;~ Index 155
1560000000000, _ ;~ Index 156
1570000000000, _ ;~ Index 157
1580000000000, _ ;~ Index 158
1590000000000, _ ;~ Index 159
1600000000000, _ ;~ Index 160
1610000000000, _ ;~ Index 161
1620000000000, _ ;~ Index 162
1630000000000, _ ;~ Index 163
1640000000000, _ ;~ Index 164
1650000000000, _ ;~ Index 165
1660000000000, _ ;~ Index 166
1670000000000, _ ;~ Index 167
1680000000000, _ ;~ Index 168
1690000000000, _ ;~ Index 169
1700000000000, _ ;~ Index 170
1710000000000, _ ;~ Index 171
1720000000000, _ ;~ Index 172
1730000000000, _ ;~ Index 173
1740000000000, _ ;~ Index 174
1750000000000, _ ;~ Index 175
1760000000000, _ ;~ Index 176
1770000000000, _ ;~ Index 177
1780000000000, _ ;~ Index 178
1790000000000, _ ;~ Index 179
1800000000000, _ ;~ Index 180
1810000000000, _ ;~ Index 181
1820000000000, _ ;~ Index 182
1830000000000, _ ;~ Index 183
1840000000000, _ ;~ Index 184
1850000000000, _ ;~ Index 185
1860000000000, _ ;~ Index 186
1870000000000, _ ;~ Index 187
1880000000000, _ ;~ Index 188
1890000000000, _ ;~ Index 189
1900000000000, _ ;~ Index 190
1910000000000, _ ;~ Index 191
1920000000000, _ ;~ Index 192
1930000000000, _ ;~ Index 193
1940000000000, _ ;~ Index 194
1950000000000, _ ;~ Index 195
1960000000000, _ ;~ Index 196
1970000000000, _ ;~ Index 197
1980000000000, _ ;~ Index 198
1990000000000, _ ;~ Index 199
2000000000000, _ ;~ Index 200
2010000000000, _ ;~ Index 201
2020000000000, _ ;~ Index 202
2030000000000, _ ;~ Index 203
2040000000000, _ ;~ Index 204
2050000000000, _ ;~ Index 205
2060000000000, _ ;~ Index 206
2070000000000, _ ;~ Index 207
2080000000000, _ ;~ Index 208
2090000000000, _ ;~ Index 209
2100000000000, _ ;~ Index 210
2110000000000, _ ;~ Index 211
2120000000000, _ ;~ Index 212
2130000000000, _ ;~ Index 213
2140000000000, _ ;~ Index 214
2150000000000, _ ;~ Index 215
2160000000000, _ ;~ Index 216
2170000000000, _ ;~ Index 217
2180000000000, _ ;~ Index 218
2190000000000, _ ;~ Index 219
2200000000000, _ ;~ Index 220
2210000000000, _ ;~ Index 221
2220000000000, _ ;~ Index 222
2230000000000, _ ;~ Index 223
2240000000000, _ ;~ Index 224
2250000000000, _ ;~ Index 225
2260000000000, _ ;~ Index 226
2270000000000, _ ;~ Index 227
2280000000000, _ ;~ Index 228
2290000000000, _ ;~ Index 229
2300000000000, _ ;~ Index 230
2310000000000, _ ;~ Index 231
2320000000000, _ ;~ Index 232
2330000000000, _ ;~ Index 233
2340000000000, _ ;~ Index 234
2350000000000, _ ;~ Index 235
2360000000000, _ ;~ Index 236
2370000000000, _ ;~ Index 237
2380000000000, _ ;~ Index 238
2390000000000, _ ;~ Index 239
2400000000000, _ ;~ Index 240
2410000000000, _ ;~ Index 241
2420000000000, _ ;~ Index 242
2430000000000, _ ;~ Index 243
2440000000000, _ ;~ Index 244
2450000000000, _ ;~ Index 245
2460000000000, _ ;~ Index 246
2470000000000, _ ;~ Index 247
2480000000000, _ ;~ Index 248
2490000000000, _ ;~ Index 249
2500000000000, _ ;~ Index 250
2510000000000, _ ;~ Index 251
2520000000000, _ ;~ Index 252
2530000000000, _ ;~ Index 253
2540000000000, _ ;~ Index 254
2550000000000, _ ;~ Index 255
2560000000000, _ ;~ Index 256
2570000000000, _ ;~ Index 257
2580000000000, _ ;~ Index 258
2590000000000, _ ;~ Index 259
2600000000000, _ ;~ Index 260
2610000000000, _ ;~ Index 261
2620000000000, _ ;~ Index 262
2630000000000, _ ;~ Index 263
2640000000000, _ ;~ Index 264
2650000000000, _ ;~ Index 265
2660000000000, _ ;~ Index 266
2670000000000, _ ;~ Index 267
2680000000000, _ ;~ Index 268
2690000000000, _ ;~ Index 269
2700000000000, _ ;~ Index 270
2710000000000, _ ;~ Index 271
2720000000000, _ ;~ Index 272
2730000000000, _ ;~ Index 273
2740000000000, _ ;~ Index 274
2750000000000, _ ;~ Index 275
2760000000000, _ ;~ Index 276
2770000000000, _ ;~ Index 277
2780000000000, _ ;~ Index 278
2790000000000, _ ;~ Index 279
2800000000000, _ ;~ Index 280
2810000000000, _ ;~ Index 281
2820000000000, _ ;~ Index 282
2830000000000, _ ;~ Index 283
2840000000000, _ ;~ Index 284
2850000000000, _ ;~ Index 285
2860000000000, _ ;~ Index 286
2870000000000, _ ;~ Index 287
2880000000000, _ ;~ Index 288
2890000000000, _ ;~ Index 289
2900000000000, _ ;~ Index 290
2910000000000, _ ;~ Index 291
2920000000000, _ ;~ Index 292
2930000000000, _ ;~ Index 293
2940000000000, _ ;~ Index 294
2950000000000, _ ;~ Index 295
2960000000000, _ ;~ Index 296
2970000000000, _ ;~ Index 297
2980000000000, _ ;~ Index 298
2990000000000, _ ;~ Index 299
3000000000000, _ ;~ Index 300
3010000000000, _ ;~ Index 301
3020000000000, _ ;~ Index 302
3030000000000, _ ;~ Index 303
3040000000000, _ ;~ Index 304
3050000000000, _ ;~ Index 305
3060000000000, _ ;~ Index 306
3070000000000, _ ;~ Index 307
3080000000000, _ ;~ Index 308
3090000000000, _ ;~ Index 309
3100000000000, _ ;~ Index 310
3110000000000, _ ;~ Index 311
3120000000000, _ ;~ Index 312
3130000000000, _ ;~ Index 313
3140000000000, _ ;~ Index 314
3150000000000, _ ;~ Index 315
3160000000000, _ ;~ Index 316
3170000000000, _ ;~ Index 317
3180000000000, _ ;~ Index 318
3190000000000, _ ;~ Index 319
3200000000000, _ ;~ Index 320
3210000000000, _ ;~ Index 321
3220000000000, _ ;~ Index 322
3230000000000, _ ;~ Index 323
3240000000000, _ ;~ Index 324
3250000000000, _ ;~ Index 325
3260000000000, _ ;~ Index 326
3270000000000, _ ;~ Index 327
3280000000000, _ ;~ Index 328
3290000000000, _ ;~ Index 329
3300000000000, _ ;~ Index 330
3310000000000, _ ;~ Index 331
3320000000000, _ ;~ Index 332
3330000000000, _ ;~ Index 333
3340000000000, _ ;~ Index 334
3350000000000, _ ;~ Index 335
3360000000000, _ ;~ Index 336
3370000000000, _ ;~ Index 337
3380000000000, _ ;~ Index 338
3390000000000, _ ;~ Index 339
3400000000000, _ ;~ Index 340
3410000000000, _ ;~ Index 341
3420000000000, _ ;~ Index 342
3430000000000, _ ;~ Index 343
3440000000000, _ ;~ Index 344
3450000000000, _ ;~ Index 345
3460000000000, _ ;~ Index 346
3470000000000, _ ;~ Index 347
3480000000000, _ ;~ Index 348
3490000000000, _ ;~ Index 349
3500000000000, _ ;~ Index 350
3510000000000, _ ;~ Index 351
3520000000000, _ ;~ Index 352
3530000000000, _ ;~ Index 353
3540000000000, _ ;~ Index 354
3550000000000, _ ;~ Index 355
3560000000000, _ ;~ Index 356
3570000000000, _ ;~ Index 357
3580000000000, _ ;~ Index 358
3590000000000, _ ;~ Index 359
3600000000000, _ ;~ Index 360
3610000000000, _ ;~ Index 361
3620000000000, _ ;~ Index 362
3630000000000, _ ;~ Index 363
3640000000000, _ ;~ Index 364
3650000000000, _ ;~ Index 365
3660000000000, _ ;~ Index 366
3670000000000, _ ;~ Index 367
3680000000000, _ ;~ Index 368
3690000000000, _ ;~ Index 369
3700000000000, _ ;~ Index 370
3710000000000, _ ;~ Index 371
3720000000000, _ ;~ Index 372
3730000000000, _ ;~ Index 373
3740000000000, _ ;~ Index 374
3750000000000, _ ;~ Index 375
3760000000000, _ ;~ Index 376
3770000000000, _ ;~ Index 377
3780000000000, _ ;~ Index 378
3790000000000, _ ;~ Index 379
3800000000000, _ ;~ Index 380
3810000000000, _ ;~ Index 381
3820000000000, _ ;~ Index 382
3830000000000, _ ;~ Index 383
3840000000000, _ ;~ Index 384
3850000000000, _ ;~ Index 385
3860000000000, _ ;~ Index 386
3870000000000, _ ;~ Index 387
3880000000000, _ ;~ Index 388
3890000000000, _ ;~ Index 389
3900000000000, _ ;~ Index 390
3910000000000, _ ;~ Index 391
3920000000000, _ ;~ Index 392
3930000000000, _ ;~ Index 393
3940000000000, _ ;~ Index 394
3950000000000, _ ;~ Index 395
3960000000000, _ ;~ Index 396
3970000000000, _ ;~ Index 397
3980000000000, _ ;~ Index 398
3990000000000, _ ;~ Index 399
4000000000000, _ ;~ Index 400
4010000000000, _ ;~ Index 401
4020000000000, _ ;~ Index 402
4030000000000, _ ;~ Index 403
4040000000000, _ ;~ Index 404
4050000000000, _ ;~ Index 405
4060000000000, _ ;~ Index 406
4070000000000, _ ;~ Index 407
4080000000000, _ ;~ Index 408
4090000000000, _ ;~ Index 409
4100000000000, _ ;~ Index 410
4110000000000, _ ;~ Index 411
4120000000000, _ ;~ Index 412
4130000000000, _ ;~ Index 413
4140000000000, _ ;~ Index 414
4150000000000, _ ;~ Index 415
4160000000000, _ ;~ Index 416
4170000000000, _ ;~ Index 417
4180000000000, _ ;~ Index 418
4190000000000, _ ;~ Index 419
4200000000000, _ ;~ Index 420
4210000000000, _ ;~ Index 421
4220000000000, _ ;~ Index 422
4230000000000, _ ;~ Index 423
4240000000000, _ ;~ Index 424
4250000000000, _ ;~ Index 425
4260000000000, _ ;~ Index 426
4270000000000, _ ;~ Index 427
4280000000000, _ ;~ Index 428
4290000000000, _ ;~ Index 429
4300000000000, _ ;~ Index 430
4310000000000, _ ;~ Index 431
4320000000000, _ ;~ Index 432
4330000000000, _ ;~ Index 433
4340000000000, _ ;~ Index 434
4350000000000, _ ;~ Index 435
4360000000000, _ ;~ Index 436
4370000000000, _ ;~ Index 437
4380000000000, _ ;~ Index 438
4390000000000, _ ;~ Index 439
4400000000000, _ ;~ Index 440
4410000000000, _ ;~ Index 441
4420000000000, _ ;~ Index 442
4430000000000, _ ;~ Index 443
4440000000000, _ ;~ Index 444
4450000000000, _ ;~ Index 445
4460000000000, _ ;~ Index 446
4470000000000, _ ;~ Index 447
4480000000000, _ ;~ Index 448
4490000000000, _ ;~ Index 449
4500000000000, _ ;~ Index 450
4510000000000, _ ;~ Index 451
4520000000000, _ ;~ Index 452
4530000000000, _ ;~ Index 453
4540000000000, _ ;~ Index 454
4550000000000, _ ;~ Index 455
4560000000000, _ ;~ Index 456
4570000000000, _ ;~ Index 457
4580000000000, _ ;~ Index 458
4590000000000, _ ;~ Index 459
4600000000000, _ ;~ Index 460
4610000000000, _ ;~ Index 461
4620000000000, _ ;~ Index 462
4630000000000, _ ;~ Index 463
4640000000000, _ ;~ Index 464
4650000000000, _ ;~ Index 465
4660000000000, _ ;~ Index 466
4670000000000, _ ;~ Index 467
4680000000000, _ ;~ Index 468
4690000000000, _ ;~ Index 469
4700000000000, _ ;~ Index 470
4710000000000, _ ;~ Index 471
4720000000000, _ ;~ Index 472
4730000000000, _ ;~ Index 473
4740000000000, _ ;~ Index 474
4750000000000, _ ;~ Index 475
4760000000000, _ ;~ Index 476
4770000000000, _ ;~ Index 477
4780000000000, _ ;~ Index 478
4790000000000, _ ;~ Index 479
4800000000000, _ ;~ Index 480
4810000000000, _ ;~ Index 481
4820000000000, _ ;~ Index 482
4830000000000, _ ;~ Index 483
4840000000000, _ ;~ Index 484
4850000000000, _ ;~ Index 485
4860000000000, _ ;~ Index 486
4870000000000, _ ;~ Index 487
4880000000000, _ ;~ Index 488
4890000000000, _ ;~ Index 489
4900000000000, _ ;~ Index 490
4910000000000, _ ;~ Index 491
4920000000000, _ ;~ Index 492
4930000000000, _ ;~ Index 493
4940000000000, _ ;~ Index 494
4950000000000, _ ;~ Index 495
4960000000000, _ ;~ Index 496
4970000000000, _ ;~ Index 497
4980000000000, _ ;~ Index 498
4990000000000, _ ;~ Index 499
5000000000000, _ ;~ Index 500
5010000000000, _ ;~ Index 501
5020000000000, _ ;~ Index 502
5030000000000, _ ;~ Index 503
5040000000000, _ ;~ Index 504
5050000000000, _ ;~ Index 505
5060000000000, _ ;~ Index 506
5070000000000, _ ;~ Index 507
5080000000000, _ ;~ Index 508
5090000000000, _ ;~ Index 509
5100000000000, _ ;~ Index 510
5110000000000, _ ;~ Index 511
5120000000000 _ ;~ Index 512
        ]

_ArrayDisplay($LARGE_ARRAY, @ScriptName)

and this is the offending part in the stripped code:

....
Global Const $LARGE_ARRAY = [ 00000000000, 10000000000, 20000000000, 30000000000, 40000000000, 50000000000, 60000000000, 70000000000, 80000000000, 90000000000, 100000000000, 110000000000, 120000000000, 130000000000, 140000000000, 150000000000, 160000000000, 170000000000, 180000000000, 190000000000, 200000000000, 210000000000, 220000000000, 230000000000, 240000000000, 250000000000, 260000000000, 270000000000, 280000000000, 290000000000, 300000000000, 310000000000, 320000000000, 330000000000, 340000000000, 350000000000, 360000000000, 370000000000, 380000000000, 390000000000, 400000000000, 410000000000, 420000000000, 430000000000, 440000000000, 450000000000, 460000000000, 470000000000, 480000000000, 490000000000, 500000000000, 510000000000, 520000000000, 530000000000, 540000000000, 550000000000, 560000000000, 570000000000, 580000000000, 590000000000, 600000000000, 610000000000, 620000000000, 630000000000, 640000000000, 650000000000, 660000000000, 670000000000, 680000000000, 690000000000, 700000000000, 710000000000, 720000000000, 730000000000, 740000000000, 750000000000, 760000000000, 770000000000, 780000000000, 790000000000, 800000000000, 810000000000, 820000000000, 830000000000, 840000000000, 850000000000, 860000000000, 870000000000, 880000000000, 890000000000, 900000000000, 910000000000, 920000000000, 930000000000, 940000000000, 950000000000, 960000000000, 970000000000, 980000000000, 990000000000, 1000000000000, 1010000000000, 1020000000000, 1030000000000, 1040000000000, 1050000000000, 1060000000000, 1070000000000, 1080000000000, 1090000000000, 1100000000000, 1110000000000, 1120000000000, 1130000000000, 1140000000000, 1150000000000, 1160000000000, 1170000000000, 1180000000000, 1190000000000, 1200000000000, 1210000000000, 1220000000000, 1230000000000, 1240000000000, 1250000000000, 1260000000000, 1270000000000, 1280000000000, 1290000000000, 1300000000000, 1310000000000, 1320000000000, 1330000000000, 1340000000000, 1350000000000, 1360000000000, 1370000000000, 1380000000000, 1390000000000, 1400000000000, 1410000000000, 1420000000000, 1430000000000, 1440000000000, 1450000000000, 1460000000000, 1470000000000, 1480000000000, 1490000000000, 1500000000000, 1510000000000, 1520000000000, 1530000000000, 1540000000000, 1550000000000, 1560000000000, 1570000000000, 1580000000000, 1590000000000, 1600000000000, 1610000000000, 1620000000000, 1630000000000, 1640000000000, 1650000000000, 1660000000000, 1670000000000, 1680000000000, 1690000000000, 1700000000000, 1710000000000, 1720000000000, 1730000000000, 1740000000000, 1750000000000, 1760000000000, 1770000000000, 1780000000000, 1790000000000, 1800000000000, 1810000000000, 1820000000000, 1830000000000, 1840000000000, 1850000000000, 1860000000000, 1870000000000, 1880000000000, 1890000000000, 1900000000000, 1910000000000, 1920000000000, 1930000000000, 1940000000000, 1950000000000, 1960000000000, 1970000000000, 1980000000000, 1990000000000, 2000000000000, 2010000000000, 2020000000000, 2030000000000, 2040000000000, 2050000000000, 2060000000000, 2070000000000, 2080000000000, 2090000000000, 2100000000000, 2110000000000, 2120000000000, 2130000000000, 2140000000000, 2150000000000, 2160000000000, 2170000000000, 2180000000000, 2190000000000, 2200000000000, 2210000000000, 2220000000000, 2230000000000, 2240000000000, 2250000000000, 2260000000000, 2270000000000, 2280000000000, 2290000000000, 2300000000000, 2310000000000, 2320000000000, 2330000000000, 2340000000000, 2350000000000, 2360000000000, 2370000000000, 2380000000000, 2390000000000, 2400000000000, 2410000000000, 2420000000000, 2430000000000, 2440000000000, 2450000000000, 2460000000000, 2470000000000, 2480000000000, 2490000000000, 2500000000000, 2510000000000, 2520000000000, 2530000000000, 2540000000000, 2550000000000, 2560000000000, 2570000000000, 2580000000000, 2590000000000, 2600000000000, 2610000000000, 2620000000000, 2630000000000, 2640000000000, 2650000000000, 2660000000000, 2670000000000, 2680000000000, 2690000000000, 2700000000000, 2710000000000, 2720000000000, 2730000000000, 2740000000000, 2750000000000, 2760000000000, 2770000000000, _
2780000000000, 2790000000000, 2800000000000, 2810000000000, 2820000000000, 2830000000000, 2840000000000, 2850000000000, 2860000000000, 2870000000000, 2880000000000, 2890000000000, 2900000000000, 2910000000000, 2920000000000, 2930000000000, 2940000000000, 2950000000000, 2960000000000, 2970000000000, 2980000000000, 2990000000000, 3000000000000, 3010000000000, 3020000000000, 3030000000000, 3040000000000, 3050000000000, 3060000000000, 3070000000000, 3080000000000, 3090000000000, 3100000000000, 3110000000000, 3120000000000, 3130000000000, 3140000000000, 3150000000000, 3160000000000, 3170000000000, 3180000000000, 3190000000000, 3200000000000, 3210000000000, 3220000000000, 3230000000000, 3240000000000, 3250000000000, 3260000000000, 3270000000000, 3280000000000, 3290000000000, 3300000000000, 3310000000000, 3320000000000, 3330000000000, 3340000000000, 3350000000000, 3360000000000, 3370000000000, 3380000000000, 3390000000000, 3400000000000, 3410000000000, 3420000000000, 3430000000000, 3440000000000, 3450000000000, 3460000000000, 3470000000000, 3480000000000, 3490000000000, 3500000000000, 3510000000000, 3520000000000, 3530000000000, 3540000000000, 3550000000000, 3560000000000, 3570000000000, 3580000000000, 3590000000000, 3600000000000, 3610000000000, 3620000000000, 3630000000000, 3640000000000, 3650000000000, 3660000000000, 3670000000000, 3680000000000, 3690000000000, 3700000000000, 3710000000000, 3720000000000, 3730000000000, 3740000000000, 3750000000000, 3760000000000, 3770000000000, 3780000000000, 3790000000000, 3800000000000, 3810000000000, 3820000000000, 3830000000000, 3840000000000, 3850000000000, 3860000000000, 3870000000000, 3880000000000, 3890000000000, 3900000000000, 3910000000000, 3920000000000, 3930000000000, 3940000000000, 3950000000000, 3960000000000, 3970000000000, 3980000000000, 3990000000000, 4000000000000, 4010000000000, 4020000000000, 4030000000000, 4040000000000, 4050000000000, 4060000000000, 4070000000000, 4080000000000, 4090000000000, 4100000000000, 4110000000000, 4120000000000, 4130000000000, 4140000000000, 4150000000000, 4160000000000, 4170000000000, 4180000000000, 4190000000000, 4200000000000, 4210000000000, 4220000000000, 4230000000000, 4240000000000, 4250000000000, 4260000000000, 4270000000000, 4280000000000, 4290000000000, 4300000000000, 4310000000000, 4320000000000, 4330000000000, 4340000000000, 4350000000000, 4360000000000, 4370000000000, 4380000000000, 4390000000000, 4400000000000, 4410000000000, 4420000000000, 4430000000000, 4440000000000, 4450000000000, 4460000000000, 4470000000000, 4480000000000, 4490000000000, 4500000000000, 4510000000000, 4520000000000, 4530000000000, 4540000000000, 4550000000000, 4560000000000, 4570000000000, 4580000000000, 4590000000000, 4600000000000, 4610000000000, 4620000000000, 4630000000000, 4640000000000, 4650000000000, 4660000000000, 4670000000000, 4680000000000, 4690000000000, 4700000000000, 4710000000000, 4720000000000, 4730000000000, 4740000000000, 4750000000000, 4760000000000, 4770000000000, 4780000000000, 4790000000000, 4800000000000, 4810000000000, 4820000000000, 4830000000000, 4840000000000, 4850000000000, 4860000000000, 4870000000000, 4880000000000, 4890000000000, 4900000000000, 4910000000000, 4920000000000, 4930000000000, 4940000000000, 4950000000000, 4960000000000, 4970000000000, 4980000000000, 4990000000000, 5000000000000, 5010000000000, 5020000000000, 5030000000000, 5040000000000, 5050000000000, 5060000000000, 5070000000000, 5080000000000, 5090000000000, 5100000000000, 5110000000000, 5120000000000 ]
_ArrayDisplay($LARGE_ARRAY, @ScriptName)

hmm, looks messy here but, it chopped it at just shy of the 4095 char. long.
So try updating the stripper with the one from beta files and tell me if that did it.

Link to post
Share on other sites
1 minute ago, Luke94 said:

Seems like a lot of effort?

actually is not. The code is an import  from another file ( a C++ declaration file ) so that's the reason to make it work as desired.
But the issue is that the stripper is not behaving as expected, so I bet an update will fix it.

Link to post
Share on other sites
Just now, Luke94 said:

Seems like a lot of effort?

What about:

Global $TEMP_ARRAY[513]
$TEMP_ARRAY[0] = 0
$TEMP_ARRAY[1] = 5
$TEMP_ARRAY[2] = 12
;~ <...>
$TEMP_ARRAY[511] = 7
$TEMP_ARRAY[512] = 25

Global Const $LARGE_ARRAY = $TEMP_ARRAY

ReDim $TEMP_ARRAY[0]

 

Intresting approach, this makes it for sure. I was just hoping for an more official way from autoit. :)

I need a bit of backwards compatibility and to correct myself, i forgot to mention that the script is not executable after compiling it
and some values of the array are 2048 bytes long :] 

So the Temp Array solved this. thank you!
Unless somebody wanna share a different approach how to handle such situations, this topic is done

Link to post
Share on other sites
1 minute ago, Zvend said:

and some values of the array are 2048 bytes long :] 

that should not the the cause unless there's a bug in the stripper but even then, you can declare  #Au3Stripper_Off and #Au3Stripper_On to exclude an area of your code from processing.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...