> If so, here's a hint: regardless of the value of i, the expression > (i<10,000) always has a value of zero.
Well!! I believe you're mistaking C code for some-alien-programming- language... Try running/debugging the code below: should clarify your confusion... *************************************************************************** *************************** int main(void) { for(int i = 0; (i < 3); i++) { puts("Mr. Bolyard, you're mistaken about C code... :-)\n"); } return 0; } *************************************************************************** *************************** > > The client on the other hand(whether in blocking or non-blocking > > mode), tries to connect for sometime, then the compiler throws up a > > memory access violation error in ntdll.dll > > I'm sure the compiler is not running when you're testing your code. > But perhaps the debugger is detecting it. Yes! You cannot debug and compile the same code simultaneously.. :-D Error.. Oops!!! > > indicating that some pointer access > > has gone awry... Sorry!!! I forgot to mention this detail earlier > > while starting the thread... > > The only pointers I have used in the PR_Connect function call are > > those of the listening socket and the PRNetAddr structure holding the > > address... > > > Could you kindly tell me where am I making the mistake...??? I'm > > simply helpless!!! > > Sorry, Debugging your code is beyond the scope of this newsgroup. NO, I never asked for any help with debugging... I only was seeking help since I felt that people like you(who've been involved with "implementing" NSS) would surely have a far better knowledge of the API internals than a fledgling like me and could probably figure out where/why the code is trying to overwrite write-protected memory... Regards, D3|\||\|!$ _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto