XNA Game Development Forums
2012/05/21 20:46:39 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: Have a few questions about the Component Exception in the Engine  (Read 1557 times)
ckslayer22
Newbie
*
Offline Offline

Posts: 1


View Profile
« on: 2009/05/20 17:10:14 »

As the title implies I am having a few issues and a few questions regarding the component Exception Handler in the Engin.

1) For some reason I always return a null value when it hits the If statement or the Compiler gives me a warning saying that the exception is unhandled

2) As for my Question would it not be better to state in the if that name can not be null and also can not be a zero length string and just use a few If Else Statements to handle all outcomes?
Logged
Mikeske
Newbie
*
Offline Offline

Posts: 33


View Profile
« Reply #1 on: 2009/05/25 01:54:56 »

Quote
1) For some reason I always return a null value when it hits the If statement or the Compiler gives me a warning saying that the exception is unhandled
could you post any of your "getcomponent" code you are using?

Quote
2) As for my Question would it not be better to state in the if that name can not be null and also can not be a zero length string and just use a few If Else Statements to handle all outcomes?
an empty string is "allowed" for the dictonary, and who am I to forbid the usage of that?  Cool
if you put a breakpoint on the evaluation line, what is filled in the "name" variabel?
Logged
InstrallFer
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #2 on: 2009/08/06 20:13:19 »

              Yeah could you post any of your "get component" code you are using? .,I really want to know.,



_________________
Why


Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Hazy Mind 3D Engine Hazy Mind 3D Engine mikeschuld 0 2174 Last post 2006/07/22 15:02:05
by mikeschuld
rewriting the engine Hazy Mind 3D Engine endre 5 3323 Last post 2006/08/08 01:59:44
by Chr0n1x
Tutorial 4 :: Moving Cameras and a Simple Input Component Tutorial Discussion « 1 2 » mikeschuld 21 8463 Last post 2008/12/11 10:42:13
by mikeschuld
Some thoughts on the engine... Hazy Mind XNA Engine letsrock 2 1701 Last post 2007/01/27 12:36:45
by mikeschuld
tutorials 1 to 11 get this exception HELP !!!! :} Hazy Mind 3D Engine precious roy 0 1916 Last post 2007/03/02 14:13:05
by precious roy
XNA Animation Component Library in XNA HMEngine Hazy Mind XNA Engine dotslash 0 2621 Last post 2007/05/31 13:53:12
by dotslash
Engine's performances General Discussion new.proger 2 2234 Last post 2008/12/24 00:58:36
by Nemo Krad
About the use of static in the component manager Hazy Mind XNA Engine Sandoval 2 1333 Last post 2009/08/16 05:00:43
by Sandoval
Application of the engine Hazy Mind XNA Engine marshdabeachy 1 1084 Last post 2010/01/04 11:37:29
by mikeschuld
Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.234 seconds with 19 queries.