Click here to Skip to main content
15,906,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: Posting event or invoking callbacks on main thread Pin
Jim Crafton6-Jun-08 9:15
Jim Crafton6-Jun-08 9:15 
QuestionSerialize and deserialize with extra types Pin
Eric Burns6-Jun-08 3:46
Eric Burns6-Jun-08 3:46 
AnswerRe: Serialize and deserialize with extra types Pin
leppie6-Jun-08 4:42
leppie6-Jun-08 4:42 
QuestionHow to create notification icon (icon neer the windows clock ) in C# ? Pin
Yanshof6-Jun-08 3:21
Yanshof6-Jun-08 3:21 
AnswerRe: How to create notification icon (icon neer the windows clock ) in C# ? Pin
Gareth H6-Jun-08 3:28
Gareth H6-Jun-08 3:28 
GeneralRe: How to create notification icon (icon neer the windows clock ) in C# ? Pin
leppie6-Jun-08 4:43
leppie6-Jun-08 4:43 
GeneralRe: How to create notification icon (icon near the windows clock ) in C# ? Pin
Yanshof6-Jun-08 4:57
Yanshof6-Jun-08 4:57 
GeneralRe: How to create notification icon (icon near the windows clock ) in C# ? Pin
eggsovereasy6-Jun-08 7:14
eggsovereasy6-Jun-08 7:14 
Questionhow to convert this into c# Pin
prasadbuddhika6-Jun-08 2:50
prasadbuddhika6-Jun-08 2:50 
AnswerRe: how to convert this into c# Pin
Guffa6-Jun-08 2:54
Guffa6-Jun-08 2:54 
GeneralRe: how to convert this into c# Pin
Vasudevan Deepak Kumar6-Jun-08 3:36
Vasudevan Deepak Kumar6-Jun-08 3:36 
GeneralRe: how to convert this into c# Pin
Gareth H6-Jun-08 3:41
Gareth H6-Jun-08 3:41 
GeneralRe: how to convert this into c# Pin
Brady Kelly6-Jun-08 4:12
Brady Kelly6-Jun-08 4:12 
GeneralRe: how to convert this into c# Pin
CPallini6-Jun-08 3:49
mveCPallini6-Jun-08 3:49 
AnswerRe: how to convert this into c# Pin
Pete O'Hanlon6-Jun-08 3:49
mvePete O'Hanlon6-Jun-08 3:49 
Questionsending remainder mail at regular intervals Pin
fakeer4uever6-Jun-08 2:02
fakeer4uever6-Jun-08 2:02 
AnswerRe: sending remainder mail at regular intervals Pin
Ashfield6-Jun-08 2:27
Ashfield6-Jun-08 2:27 
AnswerRe: sending remainder mail at regular intervals Pin
Russell Jones6-Jun-08 2:52
Russell Jones6-Jun-08 2:52 
AnswerRe: sending remainder mail at regular intervals Pin
Gareth H6-Jun-08 3:20
Gareth H6-Jun-08 3:20 
AnswerRe: sending remainder mail at regular intervals Pin
Vasudevan Deepak Kumar6-Jun-08 3:40
Vasudevan Deepak Kumar6-Jun-08 3:40 
AnswerRe: sending remainder mail at regular intervals Pin
#realJSOP6-Jun-08 3:44
professional#realJSOP6-Jun-08 3:44 
QuestionTransmission of Video File Pin
DeepOceans6-Jun-08 1:24
DeepOceans6-Jun-08 1:24 
Hi,
I'm transmitting recorded video file over LAN using UDP but sometimes file transmit successfully and sometimes at receiving side(client) it doesn't receive properly whereas at server side I get transmitting message.
Please See my code and give me suggestion to overcome this problem.


 public void filercvold()<br />
            {                         <br />
               <br />
            outStream = File.OpenWrite(filepath);<br />
            bufOutStream = new BufferedStream(outStream);<br />
               <br />
             i=0;<br />
            while (i<=fsize)//fsize is filesize<br />
            {<br />
                try<br />
                {<br />
                 <br />
                        <br />
                 idsock.ReceiveFrom(rcvfilebuf, ref idep);<br />
                       <br />
               bufOutStream.Write(rcvfilebuf, 0, rcvfilebuf.Length);<br />
                     <br />
                  i++;<br />
            <br />
                }<br />
                catch (SocketException ttt)<br />
                {<br />
                    MessageBox.Show(ttt.Message);<br />
                }<br />
                       <br />
            }<br />
           <br />
            bufOutStream.Flush();<br />
            bufOutStream.Close();                     <br />
            outStream.Close();            <br />
            MessageBox.Show("File is completly received!!");<br />
}

//outStream is FileStream Object
//bufOutStream is BufferedStream Object
idsock is socket object
// rcvfilebuf = new byte[16384]; 16KB packet
Now whenever I got last msg "File is completly received" File fully saved and run properly. but when I dont get this msg as at server side I got transmitting msg but at same time at client side above notification doesn't show as client become stuck or remain in this statement " ReceiveFrom(rcvfilebuf, ref idep);"
Now tell me how to check this or rcv full video every time as it doesnt happen everytime.By same code I got this msg and run video file at client but by same code above problem I face so what is main reason or where I'm doing wrong.
Thanx in advance.
Regards,

Shanzay

AnswerRe: Transmission of Video File Pin
#realJSOP6-Jun-08 1:41
professional#realJSOP6-Jun-08 1:41 
Questionusing Microsoft.Office.Interop.Word.Document Pin
ShimnaMukundan6-Jun-08 1:24
ShimnaMukundan6-Jun-08 1:24 
QuestionStart Window Services Pin
Tejal Bhavsar6-Jun-08 1:08
Tejal Bhavsar6-Jun-08 1:08 

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.