View Single Post
  #13   Spotlight this post!  
Unread 30-12-2006, 03:15
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Visual C++ 2005 Designer

Thanks for all the help.

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
}

Quote:
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.