07-20-2005 12:27 PM
Capblans -
Regarding the closing of handles, when you call the Open Database step, you must store the handle in a valid number property and call the Close Database step when done with it. The same for Open SQL Statement and Close SQL Statement. Please validate your step configuration for dealing with handles.
Using ODBC should work just fine, but it might be interesting to use the OLE-DB Microsoft SQL Server provider instead of the ODBC Provider with an ODBC driver just to see if there is a difference.
I am curious what version of TestStand are you using?
07-21-2005 03:59 AM
Hi!
I close Database at the end of my sequence and I close SQL statement after reading the data. So for each access to data, I open SQL statement before and close SQL statement just after. But it doesn't work.
Capblans
07-22-2005 10:11 AM
07-22-2005 10:20 AM
Capblans,
Your problem sounds suspiciously like a memory allocation error somewhere in the system. I had a problem that was very similar to what you are describing and the cause was that I wasn't allocating memory appropriately. It would work fine sometimes when I made calls to the database but the more information I got from the database the more frequently it crashed. I don't know if you are using ODBC but if you are it's easy to get tripped up on memory allocation errors. I'm not sure how TestStand does it, but when I bind data I usually allocate more memory to the buffer than I need simply because it makes my code a lot cleaner and the difference in memory allocation doesn't really matter. Thus when I wasn't allocating properly in my other code some of the extra floating memory must have been getting used and I didn't see an exception until it had all been used up.
I'd definatly follow dug's suggestion and check your mallocs, callocs, and reallocs to make sure they are right.
07-22-2005 10:21 AM
Hi!
I did this before asking questions in this forum and it doesn't work.
I created a sequence with only access to the database.
07-22-2005 11:12 AM
Capblans -
I have looked for the "GET" SQL command that you are using and I cannot find it documented under Transact-SQL Reference. What does this command do or what is the command translated to?
07-25-2005 02:01 AM
07-25-2005 01:06 PM
07-26-2005 02:37 AM
07-26-2005 01:25 PM