Click here to Skip to main content
15,881,803 members
Home / Discussions / C#
   

C#

 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
Anthony Mushrow1-Mar-09 8:24
professionalAnthony Mushrow1-Mar-09 8:24 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
harold aptroot1-Mar-09 9:29
harold aptroot1-Mar-09 9:29 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
Anthony Mushrow1-Mar-09 9:42
professionalAnthony Mushrow1-Mar-09 9:42 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
harold aptroot1-Mar-09 10:04
harold aptroot1-Mar-09 10:04 
Questionreduce blocking queue of Tcp socket c# Pin
abdul jalil1-Mar-09 3:37
abdul jalil1-Mar-09 3:37 
Questionconnect to sql server 2000 on another computer Pin
H.R1-Mar-09 2:51
H.R1-Mar-09 2:51 
AnswerRe: connect to sql server 2000 on another computer Pin
Douglas Troy1-Mar-09 6:56
Douglas Troy1-Mar-09 6:56 
Questionhow can i increament an integer variable by one when the application has two threads running? Pin
shanjaf1-Mar-09 1:40
shanjaf1-Mar-09 1:40 
Hi guys,
i am implementing a RTP application. i have created an RTP class. there are two bytes Header fields, one is Sequence Number(size of 2 bytes) and 2nd is TimeStamp(size of 4 bytes). i want to increment sequence number by 1 and Time Stamp by 160 when i send the packet to the network.
This increment will be done when the bufferfull event is called. i am incrementing with the mentioned values but when i monitor it, it increases randomly. is this the thread problem?
any solution for this problem. i am writing my event handler here of buffer full event.

void m_pWaveIn_BufferFull(byte[] buffer)<br />
        {<br />
            <br />
            byte[] sentData = G711.Encode_aLaw(buffer, 0, buffer.Length);<br />
<br />
            sentData = rtpPacket.getRTP_Packet(sentData);<br />
<br />
            byte[] seqNo = BitConverter.GetBytes(seq);<br />
            byte[] TimeStamp = BitConverter.GetBytes(timStm);<br />
<br />
            Buffer.BlockCopy(seqNo, 0, sentData, 2, 2);<br />
            Buffer.BlockCopy(TimeStamp, 0, sentData, 4, 4);<br />
<br />
            m_pUdpServer.Send(sentData, sentData.Length, m_pTargetEP);<br />
<br />
            seq++;<br />
            <br />
            timStm += 160;<br />
        }<br />
<br />


Thanks to All.
AnswerRe: how can i increament an integer variable by one when the application has two threads running? Pin
Calin Tatar1-Mar-09 1:59
Calin Tatar1-Mar-09 1:59 
AnswerRe: how can i increament an integer variable by one when the application has two threads running? Pin
waqarmushtaq845-Mar-09 2:41
waqarmushtaq845-Mar-09 2:41 
QuestionOpen Form Incide another Form Pin
CristianConrads1-Mar-09 0:58
CristianConrads1-Mar-09 0:58 
AnswerRe: Open Form Incide another Form Pin
Henry Minute1-Mar-09 1:19
Henry Minute1-Mar-09 1:19 
GeneralRe: Open Form Incide another Form Pin
Trooks1-Mar-09 3:08
Trooks1-Mar-09 3:08 
GeneralRe: Open Form Incide another Form Pin
CristianConrads1-Mar-09 3:22
CristianConrads1-Mar-09 3:22 
GeneralRe: Open Form Incide another Form Pin
Henry Minute1-Mar-09 7:16
Henry Minute1-Mar-09 7:16 
GeneralRe: Open Form Incide another Form Pin
Henry Minute1-Mar-09 7:30
Henry Minute1-Mar-09 7:30 
AnswerRe: Open Form Incide another Form Pin
Peter_Weber1-Mar-09 2:37
Peter_Weber1-Mar-09 2:37 
GeneralRe: Open Form Incide another Form Pin
CristianConrads1-Mar-09 3:00
CristianConrads1-Mar-09 3:00 
GeneralRe: Open Form Incide another Form Pin
Peter_Weber1-Mar-09 3:15
Peter_Weber1-Mar-09 3:15 
AnswerRe: Open Form Incide another Form Pin
Eddy Vluggen1-Mar-09 6:39
professionalEddy Vluggen1-Mar-09 6:39 
AnswerRe: Open Form Incide another Form [modified] Pin
0x3c01-Mar-09 7:06
0x3c01-Mar-09 7:06 
AnswerRe: Open Form Incide another Form Pin
Luis Alonso Ramos1-Mar-09 12:59
Luis Alonso Ramos1-Mar-09 12:59 
AnswerSolution [modified] Pin
CristianConrads2-Mar-09 12:59
CristianConrads2-Mar-09 12:59 
QuestionDesktop Calender Repost Pin
WinSolution28-Feb-09 23:22
WinSolution28-Feb-09 23:22 
AnswerRe: Desktop Calender Repost Pin
0x3c028-Feb-09 23:30
0x3c028-Feb-09 23:30 

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.