Click here to Skip to main content
15,894,132 members
Home / Discussions / C#
   

C#

 
Questiondynamic acces to class variables? Pin
TyronX24-Nov-04 8:25
TyronX24-Nov-04 8:25 
AnswerRe: dynamic acces to class variables? Pin
TyronX24-Nov-04 8:36
TyronX24-Nov-04 8:36 
GeneralRe: dynamic acces to class variables? Pin
DavidNohejl24-Nov-04 14:13
DavidNohejl24-Nov-04 14:13 
AnswerRe: dynamic acces to class variables? Pin
Heath Stewart24-Nov-04 8:55
protectorHeath Stewart24-Nov-04 8:55 
GeneralDoubleClick Event on a Label Pin
mlamb24-Nov-04 7:49
mlamb24-Nov-04 7:49 
GeneralRe: DoubleClick Event on a Label Pin
Heath Stewart24-Nov-04 8:44
protectorHeath Stewart24-Nov-04 8:44 
Generalproblem with GraphicsPath Pin
bernd.salewski24-Nov-04 7:49
bernd.salewski24-Nov-04 7:49 
GeneralRe: problem with GraphicsPath Pin
Heath Stewart24-Nov-04 9:01
protectorHeath Stewart24-Nov-04 9:01 
The first problem (not error) I notice are these two lines:
GraphicsPath gp = new GraphicsPath();
gp =(GraphicsPath)pfadListe[0];
Why are you instantiating the class if you just assign it later (in fact, in the next line)? Either declare (not instantiate) and assign on separate lines, or declare and assign on the same line like so:
GraphicsPath gp = (GraphicsPath)pfadListe[0];
What line does the exception actually get thrown on? Debug your code and be specific. Also, there is no "invalid parameter exception", or even a class called InvalidParameterException. What is the exact type of exception thrown?

My initial guess is that either pfadListe is empty and trying to access the first element via [0] would result in an IndexOutOfRangeException<?code> or that whatever is in the first element of the array cannot be cast to <code>GraphicsPath, in which case an InvalidCastException is thrown.

Please be specific.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: problem with GraphicsPath Pin
bernd.salewski24-Nov-04 9:14
bernd.salewski24-Nov-04 9:14 
GeneralRe: problem with GraphicsPath Pin
Heath Stewart24-Nov-04 10:06
protectorHeath Stewart24-Nov-04 10:06 
GeneralRe: problem with GraphicsPath Pin
bernd.salewski24-Nov-04 10:51
bernd.salewski24-Nov-04 10:51 
GeneralI found my mistake!!! Pin
bernd.salewski24-Nov-04 11:50
bernd.salewski24-Nov-04 11:50 
Generalsummations Pin
cma2324-Nov-04 7:18
cma2324-Nov-04 7:18 
GeneralRe: summations Pin
Heath Stewart24-Nov-04 8:45
protectorHeath Stewart24-Nov-04 8:45 
GeneralRe: summations Pin
cma2324-Nov-04 9:16
cma2324-Nov-04 9:16 
GeneralRe: summations Pin
Heath Stewart24-Nov-04 10:09
protectorHeath Stewart24-Nov-04 10:09 
GeneralRemoting Problems ... Pin
Paebbels24-Nov-04 6:23
Paebbels24-Nov-04 6:23 
GeneralRe: Remoting Problems ... Pin
Paebbels25-Nov-04 9:07
Paebbels25-Nov-04 9:07 
QuestionFind HttpChannel??? Pin
Snowjim24-Nov-04 4:42
Snowjim24-Nov-04 4:42 
AnswerRe: Find HttpChannel??? Pin
Stefan Troschuetz24-Nov-04 5:10
Stefan Troschuetz24-Nov-04 5:10 
GeneralRe: Find HttpChannel??? Pin
Snowjim24-Nov-04 5:19
Snowjim24-Nov-04 5:19 
GeneralRe: Find HttpChannel??? Pin
Stefan Troschuetz24-Nov-04 5:26
Stefan Troschuetz24-Nov-04 5:26 
GeneralRe: Find HttpChannel??? Pin
Heath Stewart24-Nov-04 5:40
protectorHeath Stewart24-Nov-04 5:40 
GeneralRe: Find HttpChannel??? Pin
Stefan Troschuetz24-Nov-04 7:51
Stefan Troschuetz24-Nov-04 7:51 
GeneralRe: Find HttpChannel??? Pin
Heath Stewart24-Nov-04 10:19
protectorHeath Stewart24-Nov-04 10:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.