SQLitening Support Forum

SQLitening Support => You've got Questions? We've got Answers! => Topic started by: Fim on April 01, 2020, 05:02:06 am

Title: Error Code 7 A malloc() failed
Post by: Fim on April 01, 2020, 05:02:06 am
In my system, I handle all processing of a Sql database via a special IO module, a module for each table. Everything works as I had imagined. But in a special case I get error code 7. I have done some tests and it seems I do NOT get error if I make all SQL calls directly in a program without going through an io module.
I get the error after 3732 calls with function GU (get unique).

FUNKTION_GU:
'===========
'
GU_SELECT:
    slOpen TRIM$(KOM.DATABAS)
    SET_NUMMER = slGetUnusedSetNumber
    SEL_STRANG = "SELECT * FROM ART WHERE ARTNR= " + $SQ + TRIM$(ART.ARTNR) + $SQ
    SVAR = slSel(SEL_STRANG, SET_NUMMER) ' Ska ge noll
    IF SVAR <>  0 THEN
        KOM.FELTEXT = "SYSTEMFEL i ARTIO GU slSel=" + STR$(SVAR)  <<============
        GOTO SYSTEMFELHANTERING
        EXIT SUB
    END IF
(http://C:\0TEMP\E7.PNG)
Tips where to look for errors are gratefully received.
/Fim W.



Title: Re: Error Code 7 A malloc() failed
Post by: Fim on April 05, 2020, 03:51:35 am
After a few changes to my program, everything works as it should. Which of the changes that corrected the error I do not know.
Title: Re: Error Code 7 A malloc() failed
Post by: Fim on July 15, 2020, 05:49:07 am
cj,
Thanks for that information
/Fim W.
Title: Re: Error Code 7 A malloc() failed
Post by: Fim on July 20, 2020, 10:53:07 am
There is something wrong with this forum. Wise answers disappear. Recently, there was an answer that meant that a row would be added to one of the SQLitening programs. That answer has disappeared. What is going on?
/Fim W.