Click here to Skip to main content
15,913,773 members
Home / Discussions / C#
   

C#

 
QuestionHow to work with TAPI to get caller id Pin
samar naguib8-Feb-07 13:41
samar naguib8-Feb-07 13:41 
QuestionTimer CallBack function Pin
aruna_koride8-Feb-07 13:14
aruna_koride8-Feb-07 13:14 
AnswerRe: Timer CallBack function Pin
Christian Graus8-Feb-07 14:12
protectorChristian Graus8-Feb-07 14:12 
AnswerRe: Timer CallBack function Pin
Guffa8-Feb-07 14:48
Guffa8-Feb-07 14:48 
GeneralRe: Timer CallBack function Pin
aruna_koride8-Feb-07 15:05
aruna_koride8-Feb-07 15:05 
GeneralRe: Timer CallBack function Pin
aruna_koride10-Feb-07 1:33
aruna_koride10-Feb-07 1:33 
AnswerRe: Timer CallBack function Pin
Guffa10-Feb-07 3:53
Guffa10-Feb-07 3:53 
GeneralRe: Timer CallBack function Pin
aruna_koride10-Feb-07 5:54
aruna_koride10-Feb-07 5:54 
I am just giving part of code ,main function of this class is when the user request a file to download, file is broken into chunks,the chunks are added to PendingChunks,the PendingChunks are updated in timer ,the callBack function gets the ChunkAddress of the requested pendingchunks from the server .
public Class:IDisposable
{

Class{
ArrayList PendingChunks=new ArrayList();
timer2 = new System.Threading.Timer(new TimerCallback(getAddressfromServer), null, Timeout.Infinite, Timeout.Infinite);
StartTimer();
}
public void getAddressfromServer(object state)
{
getChunkAddress(PendingChunks)

}
const long TIMER_INTERVAL = 10000L;
private void StartTimer()
{
timer.Change(0, TIMER_INTERVAL);
}
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing)
{
if (!disposed)
{
if (disposing)
{
timer.dispose(); }
disposed = true;


}
}
public void getChunkAddress(ArrayList chnkList)
{

ArrayList chnkAddrList=null;
Chunk c=null;
ChunkAddress chnkAdd;

chnkAddrList = HTTPClass.httpGetChunks(chnkList);



if (chnkAddrList != null)
{
for (int j = 0; j < chnkList.Count; j++)
{
c = (Chunk)chnkList[j];
for (int i = 0; i < chnkAddrList.Count; i++)
{
c.chnkAddress = (ChunkAddress)chnkAddrList[i];

}


}
}
AnswerRe: Timer CallBack function Pin
Guffa10-Feb-07 6:18
Guffa10-Feb-07 6:18 
GeneralRe: Timer CallBack function Pin
aruna_koride10-Feb-07 7:00
aruna_koride10-Feb-07 7:00 
GeneralRe: Timer CallBack function Pin
aruna_koride10-Feb-07 7:11
aruna_koride10-Feb-07 7:11 
AnswerRe: Timer CallBack function Pin
Guffa10-Feb-07 8:48
Guffa10-Feb-07 8:48 
GeneralRe: Timer CallBack function Pin
aruna_koride10-Feb-07 13:23
aruna_koride10-Feb-07 13:23 
GeneralRe: Timer CallBack function Pin
Guffa10-Feb-07 17:26
Guffa10-Feb-07 17:26 
QuestionNeed your help with .NET Framework V2.0 Obsolete Type Pin
Khoramdin8-Feb-07 12:18
Khoramdin8-Feb-07 12:18 
AnswerRe: Need your help with .NET Framework V2.0 Obsolete Type Pin
Christian Graus8-Feb-07 12:26
protectorChristian Graus8-Feb-07 12:26 
QuestionRe: Need your help with .NET Framework V2.0 Obsolete Type [modified] Pin
Khoramdin8-Feb-07 12:32
Khoramdin8-Feb-07 12:32 
AnswerRe: Need your help with .NET Framework V2.0 Obsolete Type Pin
Christian Graus8-Feb-07 14:02
protectorChristian Graus8-Feb-07 14:02 
GeneralRe: Need your help with .NET Framework V2.0 Obsolete Type Pin
Khoramdin8-Feb-07 14:57
Khoramdin8-Feb-07 14:57 
QuestionGetting a brush to create with a stored color....not working Pin
LongRange.Shooter8-Feb-07 11:43
LongRange.Shooter8-Feb-07 11:43 
AnswerRe: Getting a brush to create with a stored color....not working Pin
Patrick Etc.8-Feb-07 11:49
Patrick Etc.8-Feb-07 11:49 
AnswerRe: Getting a brush to create with a stored color....not working Pin
Christian Graus8-Feb-07 12:18
protectorChristian Graus8-Feb-07 12:18 
GeneralRe: Getting a brush to create with a stored color....not working Pin
LongRange.Shooter8-Feb-07 15:54
LongRange.Shooter8-Feb-07 15:54 
QuestionRe: Getting a brush to create with a stored color....not working Pin
Martin#8-Feb-07 20:34
Martin#8-Feb-07 20:34 
AnswerRe: Getting a brush to create with a stored color....not working Pin
Christian Graus8-Feb-07 22:39
protectorChristian Graus8-Feb-07 22:39 

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.