Support Orb:Connect client problems (programmed in C Sharp)

Zatnikitelman

Addon Developer
Addon Developer
Joined
Jan 13, 2008
Messages
2,302
Reaction score
6
Points
38
Location
Atlanta, GA, USA, North America
I've decided to delve into the wonderful world of writing useful programs (in C sharp in this case) and though a client to grab data off Orb:Connect and save to a file would be a good first shot (that isn't homework, assignment etc.). The problem is that when I go to begin retrieving the data and writing it to a file the program crashes.

I've been able to make the client connect successfully (or at least it says connected) and in VS2008Express set a breakpoint where I thought the problem is and it seems to be in this small section of code:

Code:
//sw is a stream writer

if(connected)
{
   sw.Write("FOCUS:Elements1");
   sw.Flush();
   return sr.ReadLine();
}

I've only included the narrow area where the breakpointing indicated the problem lies. Specifically, it crashes at the return statement. The method this section of code sits in is pretty much WYSIWYG except it checks for an active connection first. I'm not really sure if this something with ORB:Connect, the way I'm interfacing with ORB:Connect, or my programming style so 2 out of 3 that's why it's in addon support.

If I need, I can post more of the code in case the error lies elsewhere.
Thanks,
Zat
 
Top