ROOT for Windows - Problem with arrays


I’m new to this forum (and to ROOT) and, after successfully install it in Windows , a basic problem appears while accesing to array elements.
The array can be retrieved but, when trying to access to the element in a position, it always return the element 0 value, even if modifying a different element value is intended the new value goes to the element 0.

Trying this exact procedure on Linux (Ubuntu 20 virtual machine with same ROOT version) or Mac returns the expected results. Any tip about how to solve this will be highly appreciated. Thanks in advance.

ROOT version: 6.24/06
Platform: Windows 10 (19043.1586), Visual Studio 2022, Cmake 3.23, Python 3.10

First, welcome to the ROOT forum! Then, I can reproduce the problem. We will investigate.

It looks like the same kind of error reported here

Note that the 64 bit version works fine:

  | Welcome to ROOT 6.27/01               |
  | (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for win64 on Mar 18 2022, 10:31:02                         |
  | From heads/master@v6-25-02-758-g1ec3ad4546                       |
  | With MSVC 19.31.31104.0                                          |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |

root [0] int test[]={2,4,6,8,10};
root [1] test[4]
(int) 10
root [2] test[4]=20
(int) 20
root [3] test[4]
(int) 20
root [4] test[1]
(int) 4
root [5] test
(int [5]) { 2, 4, 6, 8, 20 }
root [6]

Thank you very much for testing it. My computer runs a 64 bits operating system with a x64 based processor (see below, in Spanish).

The fact is that the downloadable version for 6.26 or previous are win32 and appears as win32 builts (I tried downloading also the 6.26 143 Mb package to check). This problem is beyond my undestanding or skills since all the packages available for download are win32 versions. If there is a link to download the pre-compiled x64 version, I will really appreciate the link for it.


| Welcome to ROOT 6.26/00 |
| (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for win32 on Mar 03 2022, 06:51:13 |
| From tags/v6-26-00@v6-26-00 |
| With MSVC 19.29.30139.0 |

Try ‘.help’, ‘.demo’, ‘.license’, ‘.credits’, ‘.quit’/’.q’

Thanks in advance.

These are my hardware main specs:
|Procesador|AMD Ryzen 7 5800H with Radeon Graphics 3.20 GHz|
|RAM instalada|16,0 GB (15,3 GB usable)|
|Tipo de sistema|Sistema operativo de 64 bits, procesador basado en x64|

Check in the nightly builds, for example or

1 Like

Thank you very much, the win64 version solves the problem :smiley:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.