|
Hello,
I'm trying to initialize an array of Queues. I have the following:
array<Queue^>^ QARY = gcnew array<Queue^>(10);
QARY[1]->Enqueue(3);
I would like to load the value 3 into QARY[1];
The code complies but I get the following error message:
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at main(String[] args) in c:\documents and settings\stanasw.bandit3.000\my do cuments\homework11\homework11\homework11.cpp:line 44 at mainCRTStartupStrArray(String[] arguments) in f:\dd\vctools\crt_bld\self_x 86\crt\src\mcrtexe.cpp:line 309 Press any key to continue . . .
any help?
thanks!!!!! |