unsolved "System.NullReferenceException was unhandled "

1
2
3
4
5
6
7
8
9
10
11
	public:
		array<Image^> ^imageArray ;
		array<String^>^ names;
		array<int> ^CurrentImage;
		
		Form1(void)
		{	System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
			InitializeComponent();
			Random ^Rnd = gcnew Random();
			for(int r=0;r<16;r++)
			CurrentImage[r]=Rnd->Next(101);

the error is occured at the bold code.
I have never used C++\CLI, but I bet your line 54 should be array<int> ^CurrentImage = gcnew arrayt<int>
something like that anyway..
Last edited on
Topic archived. No new replies allowed.