NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - John C

Pages: [1]
1
FTP - Ask For Help / Re: Problem with FTP
« on: April 09, 2012, 06:59:07 PM »
Hi Bruce,

I have found the source of the problem where NetTalk fails if a timer is used with the FTP controls.  The solution that worked for me required a change in two procedures in NetSimp.clw.

Every X minutes, I check Y number of FTP sites to see if there is anything to download.  To do this, I set the PROP:TIMER value on the window.  When I start my download, I turn off the timer and turn it back on if the Quit command is successful.  In this case, the Quit command never returned a success or failure that could be trapped because it was stuck in an infinite loop.  Procedure NetFTPClientControl.TakeEvent was calling self.CalcProgress() which, in turn, called self._CallDone after the socket was closed and self._CallDone  called self.CalcProgress().  Here is what I did to stop the recursion:

Change this:

NetFTPClientControl.TakeEvent PROCEDURE

  code
  parent.TakeEvent()
  case event()
  of EVENT:Timer
    self.CalcProgress()
  End
 

To this:

NetFTPClientControl.TakeEvent PROCEDURE

  code
  parent.TakeEvent()
  case event()
  of EVENT:Timer
    if 0{prop:timer} > 100 or 0{prop:timer} = 0
      self.TimerSet = 1
      Self.timerWas = 0{prop:timer}
      0{prop:timer} = 100
    end
    self.CalcProgress()
  End


Change this:

NetFTPClientControl._CallDone Procedure

  code
  self.Log ('NetFTPClientControl._CallDone', 'Done Called for command = ' & lower(clip(self._Command)) & ', _waitingForComplete set back to 0.')
  self.Busy = 0
  self._waitingForComplete = 0        ! March 2007: This indicates to the Control that there is nothing left for the data     connection to do.

  If self.timerSet
    0{prop:timer} = self.TimerWas
    self.timerWas = 0
    self.timerSet = 0
  End

  self.ProgressUpdateNow = 1
  self.CalcProgress()
  self.TransferState = ''
  self.Done()

 

To this:

NetFTPClientControl._CallDone Procedure

  code
  self.Log ('NetFTPClientControl._CallDone', 'Done Called for command = ' & lower(clip(self._Command)) & ', _waitingForComplete set back to 0.')

  self.Busy = 0
  self._waitingForComplete = 0        ! March 2007: This indicates to the Control that there is nothing left for the data connection to do.

  If self.timerSet
    0{prop:timer} = self.TimerWas
    self.timerWas = 0
    self.timerSet = 0
  End

  self.ProgressUpdateNow = 1
  !self.CalcProgress()
  self.TransferState = ''

  self.Done()

 Please let me know if this will cause problems with the other template features.  I uploaded and downloaded files of different sizes using this code and the app didn’t freeze at all.

Thanks for your time and assistance.

JohnC



2
FTP - Ask For Help / Re: Problem with FTP
« on: March 21, 2012, 09:54:06 AM »
Hi Bruce,

It is the FTP app for downloading files.  It was found in accessory\capesoft\NetTalk\FTP\FTP Download Directory.

Setting the last directory to blank fixed the problem with changing directories.  Thanks.

The second problem, where it crashes, still exists.  Attached is the app used for testing the second issue.

Thanks for you help.

John C

[attachment deleted by admin]

3
FTP - Ask For Help / Re: Problem with FTP
« on: March 20, 2012, 10:49:44 AM »
Installed the latest build and ran through the same scenarios as stated earlier with no joy. Any assistance you could provide (a workaround) would be greatly appreciated.

Thanks  Bruce.

John

4
FTP - Ask For Help / Problem with FTP
« on: March 20, 2012, 05:09:50 AM »
Hopefully this hasn't been posted already.


Two problems have been observed with FTP in NetTalk 6.18 and Clarion version 8.0.8973.  The first is that ChangeDir does not change to a new directory if the server is changed, even after a Quit command.  Here are the steps to reproduce the problem:

1.     Using Clarion, open up FTP.app, the example application that came with NetTalk. (The attached application, which has modifications, can also be used.)
2.     Compile the application.
3.     Start the executable.
4.     Enter in the values, given below, for accessing the HP server. (If using the attached app, click the “Site 1” button.)
5.     Click the “Get Files” button.
6.     In a flash, the “All done” string will appear.
7.     Change all of the parameters to the Microsoft values given below.  (If using the attached app, click the “Site 2” button.)
8.     Click the “Get Files” button.
9.     An error message appears that says “The connection to the FTP Server could not be opened” and the error number is -53.
10.  Exit the program.
11.  Start the program again.
12.  The previous values for Microsoft are still there.
13.  Click the “Get Files” button.
14.  The “All done” string appears.

   It is clear that the problem is in the attempt to access the second site without exiting.  If one gets files and exits, things work just fine.  If multiple server changes are made in the same session, it fails.
   If logging is turned on, the DebugView log shows that, in this case, a connection to Microsoft is made.  However, it is being sent [CWD /ftp1/] instead of [CWD /Products/mediaplayer/] hence the failure.

   FTPServer = ftp.hp.com
   UserName  = anonymous
   Password = anonymous@hotmail.com
   Dir = /ftp1/

    FTPServer = ftp.microsoft.com
   UserName  = anonymous
   Password = anonymous@hotmail.com
   Dir = /Products/mediaplayer/

    The second problem may be an extension of the first.  If one tries to access the servers at timed intervals, in a timer loop, it appears to have trouble closing the first port and eventually the program stops responding.  The message in the log that is repeated multiple times is:

[Net] [1] NetFTPClientControl._CallDone - Done Called for command = quit, _waitingForComplete set back to 0

    Here are the steps to reproduce the problem:

1.     Create an executable from the attached application.
2.     Start the executable.
3.     Change the timer value as needed (100 = 1 second).
4.     Click the “Site 1” button to fill in the values and get things started.
5.     Click the “Get All” button.
6.     After the timer begins, the status message shows up that the first site is done.  Moments later, a Windows error message appears.

5
Web Server - Ask For Help / Re: Issue AFTER MSSQL Date/Time field in DCT
« on: December 07, 2011, 06:45:00 AM »
Thanks Bruce - I realized that after the post. Glad you're working on it!

6
Web Server - Ask For Help / Issue AFTER MSSQL Date/Time field in DCT
« on: December 06, 2011, 06:16:37 AM »
Hi Bruce,

I have a standard Date/Time field using the OVER attribute (imported directly from MSSQL) in my DCT. When I wizard out a script, a routine is created with no field reference

value::   Routine

This occurs consistently in generated code after the TIME portion of all date/time fields ... every occurrence of a date/time field has a generated routine like the one above. Is there a workaround for this other then removing the date/time fields? ;-)

Thanks!

John Cortenbach

7
Web Server - Ask For Help / Re: Basic page layout concepts
« on: July 19, 2010, 05:10:57 AM »
Bruce,

Thanks for the response - your answer is what I was hoping for as I have a number of small projects already underway and I was worried I was boxing myself in with a lot of work down the road ...

Thanks,

John C

8
Web Server - Ask For Help / Basic page layout concepts
« on: July 18, 2010, 06:30:30 PM »
So I've used Nettalk servers for many years, but never one that dished out web pages. That's about to change ... ;-)

I've looked at the docs, looked at the forums, read up about CSS and done all the basics, including looking at every example. I'm trying to get an idea of how to lay out a page (I've got specifics in mind) and how to drop things into that layout. In other words, like this page there are options on the left and right hand margins, menu at the top, and all that. It looks like any other site (said in a good way, mind you). How do I accomplish this in a Web Server app? Do I take, say the index page and put lot's of handcode or ??? In a nutshell, I like to the overall layout of the ClarionShop site (running via a Nettalk Server if I'm correct). Was that site constructed with lot's of hand-code or by simply adding functionality by filling in the correct prompts (for the most part)?

Any help would be greatly appreciated - any explicit examples (or pointing me to one I may have missed) or a doc (I may have also missed) would be awesome. As a sidenote, I'm planning on attending the Denver seminar (remotely), however I have some time constraints on a rollout and am chomping at the bit, so to speak.

Thanks!

John Cortenbach

9
Web Server - Ask For Help / What record am I on?
« on: September 29, 2009, 03:23:12 PM »
I have a browse. When the user clicks on a row and the highlight moves to that row I would like to store the ID of that row to a session variable. What is the best embed point (or other method perhaps in the template prompts) where I can do this?

FYI - The ID I want to store is already a field in the browse.

I have already looked through a lot of the messages in this forum and can't seem to find what I'm looking for. Any help is appreciated!

Thanks!




10
Web Server - Ask For Help / Re: Clearing variables on a form
« on: September 15, 2009, 08:09:55 AM »
Got it! That works! Thanks Alberto!

11
Web Server - Ask For Help / Re: Clearing variables on a form
« on: September 15, 2009, 06:59:28 AM »
Hi Alberto,

I downloaded the web1.app example you supplied but didn't see any button on the form. I checked the date and time stamp on the file and it appears to be 6/11/09. Perhaps I downloaded the wrong file or maybe you grabbed the wrong file on the way up?

Let me know. I very much appreciate your assistance!

John

12
Web Server - Ask For Help / Re: Clearing variables on a form
« on: September 15, 2009, 05:38:28 AM »
Hi Alberto,

Thanks for the response! I tried what you posted but it didn't work. I played around with it and tried several of the options and changed the name of the variables all to no avail. Any ideas on what I might be missing?

Thanks for your assistance.

John

13
Web Server - Ask For Help / Clearing variables on a form
« on: September 14, 2009, 09:48:28 AM »
I have a memory form that has 8 fields on it. These fields are used by the user to enter data into that is subsequently used to locate data (or drill down on the data). I'd like to have a "Clear" button that when pressed, resets all the fields to blank. I've looked around for a method or way to do it but I still have my "fat app" hat on and can't seem to get it. I'm sure this is easy. Any help?

14
Web Server - Ask For Help / Drop down list - setting default value
« on: September 14, 2009, 09:45:41 AM »
I have some default data that gets pre-loaded at program startup. On one of the forms I allow the user to change the default value to a new value via a drop down list. What I'd like is for the drop down list to already have the current value highlighted. Currently it's displaying the 1st entry in the list. Can someone point out to me what I need to do or what I need to set to get this to work?

Thanks!

John Cortenbach


Pages: [1]