?
Solved

App hangs when exiting after issuing Inet1.Execute command

Posted on 2003-12-03
13
Medium Priority
?
618 Views
Last Modified: 2012-08-13
Would anyone know why my application hangs when exiting after I issue Inet1.Execute?  If I comment out the Inet1.Execute line, the application exits fine.

I even ran my app from yesterday which I know worked is no longer working too.

Note:  I'm calling a subroutine after I issue the Inet1.Execute.  The routine contains:
     
     While Inet1.StillExecuting
        DoEvents
    Wend

I've shut down my PC and the apps still didn't work.

Please help!  Any ideas would be appreciated.

Thanks.
0
Comment
Question by:halfondj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
13 Comments
 
LVL 4

Expert Comment

by:TomLaw1999
ID: 9869298
You appear to have put your application into a permanent loop. I.e. the loop continues whilst Inet1.Stillexecuting. Inet1.Stillexecuting cannot complete whilst in the loop.
0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 9869302
0
 

Author Comment

by:halfondj
ID: 9869376
The Inet1.Stillexecuting loop seems to have terminate.  I put a debug statement in it and it only prints once.

The problem occurs when I exit the program.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:halfondj
ID: 9869387
EDDYKT:  I don't know what that article has to do w/my problem.

Thanks anyway.
0
 

Author Comment

by:halfondj
ID: 9869438
I'll like to add that when I run the .EXE file and then exit it, the task manager says that it's still in memory and not responding.

If I comment out the Inet1.Executing line, re-compile the program, run the .EXE, exit the application, all is working fine.
0
 

Author Comment

by:halfondj
ID: 9869680
Ok.  I now tried a sample program from the net called InetFTP.zip from http://www.freevbcode.com/ShowCode.Asp?ID=731

I know this program worked when I exited the application, but now it doesn't.  What could be going on w/the Inet control?

HELP - please.  I need to complete this project.

Thanks so much.
0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 9869704
Waht Sp do you use?
May be reload the sp
0
 

Author Comment

by:halfondj
ID: 9869755
I don't think it's the SP, as the code was working yesterday.

I just tried making a modem connection instead and it (both applications) seem to work, but when I connect via the LAN, the applications appear to hang on exit.

Since I know the sample app does the same thing as mine, it's not my code.

What could it be?  Both ways, modem and LAN worked before w/o any problems.
0
 

Author Comment

by:halfondj
ID: 9869817
OK -- one last thing.  I didn't wait long enough for the application to end.  I waited now about ~45 secs+ and the application finally exited.  But, while the application was exiting, the form started to go away (hard to describe).

How can I get the form not to start closing and inform the user that something is happening?  I the programmer, didn't even know that something was happening.

Thanks again and sorry for so many updates.
0
 

Author Comment

by:halfondj
ID: 9874908
Application worked fine this morning.  The problem (application exiting delay) can be caused by Internet traffic using the Inet control.

Due to other restrictions of the Inet control, I'm converting my application to use the WinInet APIs directly.

Thanks for everyone's answers.
0
 

Author Comment

by:halfondj
ID: 9876881
Since the Inet control seemed to be giving me problems, as well as one cannot specify a binary or ascii download, I decided to convert my app and use the WinInet APIs directly.  I found excellent documentation on Microsoft's website re:problems w/the Inet control (Inet/ITC), as well as using the WinInet APIs from VB.

Here are some links:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;188956
    PRB: ITC Cannot Perform ASCII-type FTP Transfer

http://support.microsoft.com/default.aspx?scid=kb;EN-US;233037
   INFO: Limitations of Internet Transfer Control

http://support.microsoft.com/default.aspx?scid=kb;EN-US;175179
   SAMPLE: VBFTP.EXE: Implementing FTP Using WinInet API from VB

Thanks to all that tried to answer my question.
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 10212427
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ/Refund
 
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

leonstryker
EE Cleanup Volunteer
0
 

Accepted Solution

by:
SpazMODic earned 0 total points
ID: 10266414
PAQed, with points refunded (500)

SpazMODic
EE Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question