|
Re: Visual C++ 2005 Designer
Quote:
Originally Posted by 6600gt
Now I have a new problem and I can't find any useful information on it.
Main^ main = dynamic_cast<Main^>(this->MdiParent);
for(count = 0; count < 10; count++)
{
number = main->serialPort1->BytesToRead; //Error
}
Fails with:
An unhandled exception of type 'System.NullReferenceException' occurred in GUI Control Interface.exe
Additional information: Object reference not set to an instance of an object.
This happens when I start sending some serial data form a PIC to the comp.
Searching on the internet hasn't explained it much.
|
Anyone?
|