|
From: Ron P. <th...@te...> - 2001-04-15 01:40:02
|
So I've been attempting to get ICQLIB in my software. It connects, then the hard drive gets accessed wildly. I did make a modification, but for contrast purposes, I was originally coding the ICQ prog to: 1) icq_Init 2) set up callbacks 3) icq_UnsetProxy 4) icq_Connect 5) icq_Login if icq_Connect did not return -1 6) continuously call icq_Main in a loop, no delays Suepecting that icq_Main may have been getting overloaded, I modified the above structure such that: 6) alarm(SIGALRM,bkgfuncs) 7) alarm(1) 8) the main loop would just check for a "Q" from the keyboard The bkgfuncs, called once per second in theory, would call icq_Main and, after icq_Main was finished, rearm the system for a 1 second delay until the next call. Now, the hard drive is still being accessed (it takes longer for it to become violent). Is there something I'm missing in all of this? Do I need to reference ALL callbacks, or is there a core set I need for just basic messaging and user databasing? -- .--------------------------------------------. | Ron Poulton Caffeinate. | | EMail: thok at technologist.com Code. | | Web: http://www.thok.net Compute. | `--------------------------------------------' So, what's with this guy Gideon, anyway? And why can't he ever remember his Bible? |