Hi Bob, stmt should not be null until the call to ReleaseStatement(). FreeArgv() only frees the stmt->Argv pointer; stmt should still be valid. If stmt is null where you put the tests in, then there is some other issue. Can you dump stmt at various stages through SQLCOMMAND to see where it first becomes NULL? Can you run samples/tester.cmd with the original code and see if it works. Thanks, Mark
The LGPL license was about the only Open Source license available when Regina was released by Anders Christensen, the original author, back in the early 1990's. I approached Anders about changing the license a few years ago and he was not in favour of a change. I too am not a lawyer, but I'm frustrated that I have maintained the code since 1993; about 3 years after Anders wrote the code, but I believe I still need the permission of the author to change the license. Perhaps if there was a concerted...
In the case of "regina CALC", when Regina loads a file to execute, it first looks for the filename as specified. If it can't find it, it then goes through a list of file extensions; eg rex, rexx, cmd,...(stored as lower-case) appending the file extension to the supplied filename and if it finds that file, it opens and reads the file. On case-insensitive filesystems, CALC.rex is the same file as CALC.REX, so Regina finds the file. Regina does not execute another system call to find the "real" filename...
Errors like are often caused by memory allocation/deallocation issues. Ensure that any memory passed back to Regina in your code is allocated with RexxAllocateMemory() and any memory you free that is passed from Regina is freed with RexxDeallocateMemory()
Wrong version returned from regina -v
If you run: ldd ./regina in the directory in which you built Regina, then it will tell you which libregina.so it is using. I am guessing it is NOT using the one in the directory where you built Regina. (MT) means "Multi Threaded". What does (TM) mean?
Eliminate line limit of 1000 lines
Forgot to add that you can change the limit and where the output goes: SET REXXOUTPUT File|Display 9999