Home > Archive > Programming with dBASE > October 2005 > Rat() + Memo Field = hung app with 100% cpu









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Rat() + Memo Field = hung app with 100% cpu
Christian K

2005-10-07, 3:26 am

Having wasted plenty of time tracking this down, I thought I would
share. Stuffing a memo field into the Rat() function hung dBase for me.

rat("\",table->memofield)

The memo field contained valid character data, but addressing the field
directly with the alias operator inside the rat() function would cause
the app to hang....no error message or warning, it would just pin the
CPU at 100% at that line in my code. It would even do it from the
command line. It's quite possible that the dbt is corrupted in some
way, but I would imagined an error should have appeared.

The memo field data is being populated thru another dBase script, which
in turn is being called from a VB Script with command line parameters.
These command line parameters are fed from an FTP server engine which
runs the VB script during certain events, so it's quite possible the
FTP server is passing something odd. Incidentally, the server is Gene6
FTP Server.

The solution was to either trim() the memo field value, or stuff into a
memory variable first.


Keep the Faith,
Christian K.
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com