Lost Password?

Go Back   CodeCall Programming Forum > Software Development > C and C++

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-29-2008, 02:12 AM
mukul mukul is offline
Newbie
 
Join Date: Sep 2007
Posts: 2
Rep Power: 0
mukul is on a distinguished road
Default MFC FTP Wininet API read problem

I am having a problem in my FTP client designed using MFC wininet API. I am using Visual C++ 6.0.

I create a session variable through which I open a FTP connection and then I read any file on the FTP server. After reading few characters I try to close the file(or delete connection pointer or session variable).

Problem:-- My application hangs if I try to close the file as soon as I am done with reading the file. If I wait for sometime after reading the file and then closes the file the application does not hang. Adding a delay after reading the file serves the purpose but it is not a very elegant method and secondly the delay I think will be dependent on Server's speed. Can you suggest me how to proceed !!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem read pwd protected Access2K dbase - CR9 & VB6 mrbar Visual Basic Programming 2 03-10-2008 04:50 AM


All times are GMT -5. The time now is 02:52 AM.

Contest Stats

John ........ 223.00000
dargueta ........ 168.00000
Xav ........ 164.00000
LogicKills ........ 20.00000
gaylo565 ........ 18.00000
WingedPanther ........ 15.00000
|pH| ........ 15.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 67%

Ads