[comp.sys.ibm.pc.misc] Question on "string space corrupt" errors in Quickbasic

F0O@psuvm.psu.edu (10/11/90)

Hi netters!

     I've been using QuickBasic 4.0 for writing some data collection
programs using the Keithley Quick500 resident software.  Every now and
then, These "string space corrupt" errors will rear their ugly head.
     I've been trying to determine if it is the fault of QuickBasic or
Quick500.
     On my program, I know I'm not doing any PEEK or POKES, and I'm not
sharing variables across modules; so I shouldn't have a mismatched COMMON
problem.
     I would like to hear from anyone who has run into the "string
space corrupt" error, and how you solved the problem.  I'm banging my
head against the wall!

                                                      [Tim]

drack@titan.tsd.arlut.utexas.edu (Dave Rackley) (10/11/90)

>In article <90284.091355F0O@psuvm.psu.edu> F0O@psuvm.psu.edu writes:

>   Lines: 15

>   Hi netters!

>	I've been using QuickBasic 4.0 for writing some data collection
>   programs using the Keithley Quick500 resident software.  Every now and
>   then, These "string space corrupt" errors will rear their ugly head.
>	I've been trying to determine if it is the fault of QuickBasic or
>   Quick500.
>	On my program, I know I'm not doing any PEEK or POKES, and I'm not
>   sharing variables across modules; so I shouldn't have a mismatched COMMON
>   problem.
>	I would like to hear from anyone who has run into the "string
>   space corrupt" error, and how you solved the problem.  I'm banging my
>   head against the wall!

>							 [Tim]

   I once saw a similar problem, using QB 4.0.  My problem hinged on the fact
that I was using variable length strings, exclusively.  My solution was to
dimension strings to a fixed length before passing them as arguments.  See
your reference guide under the DIM topic.

   Hope this provides some insight! :-)

--

  DISCLAIMER?  I don't know anything 'bout any ol' disclaimer!         

+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| David Rackley		        |                                             |
| Applied Research Laboratories |        Remember, you can tuna fish,         |
| The University of Texas       |         But you can't tuna piano!           |
| Austin, TX.  78758            |                                             |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+