Click here to Skip to main content
15,899,475 members
Home / Discussions / C#
   

C#

 
GeneralRe: resume data - your idea plz... Pin
Not Active31-Mar-10 13:40
mentorNot Active31-Mar-10 13:40 
Questionmy code runs very slow with visual studio 2008 [modified] Pin
karayel_kara31-Mar-10 11:35
karayel_kara31-Mar-10 11:35 
AnswerRe: my code runs very slow with visual studio 2008 Pin
Luc Pattyn31-Mar-10 11:44
sitebuilderLuc Pattyn31-Mar-10 11:44 
AnswerRe: my code runs very slow with visual studio 2008 Pin
Som Shekhar1-Apr-10 0:27
Som Shekhar1-Apr-10 0:27 
GeneralRe: my code runs very slow with visual studio 2008 Pin
karayel_kara1-Apr-10 1:03
karayel_kara1-Apr-10 1:03 
GeneralRe: my code runs very slow with visual studio 2008 Pin
Som Shekhar1-Apr-10 1:06
Som Shekhar1-Apr-10 1:06 
QuestionReflection error running an application generated through CISCO's AXLAPI.wsdl class service generator Pin
Steve Holdorf31-Mar-10 10:49
Steve Holdorf31-Mar-10 10:49 
QuestionUnable to make cast ( what wrong with my code ... ? ) Pin
Yanshof31-Mar-10 10:01
Yanshof31-Mar-10 10:01 
Hi All,
I wrote some simple application with thread.
I getting exceptoin that say 'Specified cast is not valid.'
I dont know what i did wronge. Confused | :confused: Confused | :confused: Confused | :confused:

Code attached.

Thanks.


public struct SomeStruct
{
    public Int32 t1;
    public Int32 t2;

    public SomeStruct(Int32 t1_, Int32 t2_)
    {
        t1= t1_;
        t2= t2_;
    }
}

private void Thread1(Int32 T1, Int32 T2)
{
     object t = new SomeStruct(T1, T2);
     Thread RunningThread= new Thread(Mathod1);
     RunningThread.Start(t);
}

public void Mathod1(object ap)
{
     // Here the 'invalid case' exception !!!! 
     Mathod2(((SomeStruct)ap).T1, ((SomeStruct)ap).T2);
}2

GeneralRe: Unable to make cast ( what wrong with my code ... ? ) Pin
Ian Shlasko31-Mar-10 10:18
Ian Shlasko31-Mar-10 10:18 
GeneralRe: Unable to make cast ( what wrong with my code ... ? ) Pin
Yanshof31-Mar-10 10:20
Yanshof31-Mar-10 10:20 
GeneralRe: Unable to make cast ( what wrong with my code ... ? ) Pin
Ian Shlasko31-Mar-10 10:22
Ian Shlasko31-Mar-10 10:22 
GeneralRe: Unable to make cast ( what wrong with my code ... ? ) Pin
Yanshof31-Mar-10 10:25
Yanshof31-Mar-10 10:25 
GeneralRe: Unable to make cast ( what wrong with my code ... ? ) Pin
Ian Shlasko31-Mar-10 10:30
Ian Shlasko31-Mar-10 10:30 
GeneralRe: Unable to make cast ( what wrong with my code ... ? ) Pin
Yanshof31-Mar-10 10:35
Yanshof31-Mar-10 10:35 
GeneralRe: Unable to make cast ( what wrong with my code ... ? ) Pin
Ian Shlasko31-Mar-10 10:36
Ian Shlasko31-Mar-10 10:36 
GeneralRe: Unable to make cast ( what wrong with my code ... ? ) Pin
Yanshof31-Mar-10 10:38
Yanshof31-Mar-10 10:38 
GeneralRe: Unable to make cast ( what wrong with my code ... ? ) Pin
Ian Shlasko31-Mar-10 10:43
Ian Shlasko31-Mar-10 10:43 
GeneralRe: Unable to make cast ( what wrong with my code ... ? ) Pin
Yanshof31-Mar-10 11:09
Yanshof31-Mar-10 11:09 
GeneralRe: Unable to make cast ( what wrong with my code ... ? ) Pin
Ian Shlasko31-Mar-10 11:14
Ian Shlasko31-Mar-10 11:14 
Questionwindow ce 6.0 Pin
jashimu31-Mar-10 9:36
jashimu31-Mar-10 9:36 
AnswerRe: window ce 6.0 Pin
Migounette31-Mar-10 11:36
Migounette31-Mar-10 11:36 
QuestionMoving an object with a joystick Pin
Brocksam1331-Mar-10 9:21
Brocksam1331-Mar-10 9:21 
AnswerRe: Moving an object with a joystick Pin
Not Active31-Mar-10 9:56
mentorNot Active31-Mar-10 9:56 
AnswerRe: Moving an object with a joystick Pin
Brocksam1331-Mar-10 16:51
Brocksam1331-Mar-10 16:51 
QuestionCant run application (C#) through cmd Pin
igalep13231-Mar-10 8:15
igalep13231-Mar-10 8:15 

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.