Alaska Software Inc. - Incidental "Not enough memory availeble"
Username: Password:
AuthorTopic: Incidental "Not enough memory availeble"
Jack DuijfIncidental "Not enough memory availeble"
on Mon, 29 May 2017 10:04:12 +0200
Hello,

A customer reports the following error on a regular basis when starting a new thread.
Notice the memory diagnostics on the bottom.
Availeble process memory : 1223
Used process memory : 18
There are currently 7 active threads.

What can i do to prevent this error ?

Regards,
Jack Duijf


ERROR LOG of "C:\Program Files (x86)\SalonNet\SalonNet.EXE"
Version: 2.71-001
Date: 29/05/2017 09:27:41
Xbase++ version :2.00-769
Operating system :Windows 10 10.00 Build 14393 64 bit.
Computer name :BERFIN (2048Mb)
------------------------------------------------------------------------------
CALLSTACK:
------------------------------------------------------------------------------
Called from SY_THREAD:INIT(126)  --> Thread:Init()
Called from START_THREAD_BERICHTEN(264)
Called from INTERNET_VERWERKEN:RUN(109)
Called from (B)START_THREAD_INTERNET(155)
------------------------------------------------------------------------------
oError:args :
P1 = VALTYPE: O CLASS: Sy_Thread o:Cargo = NIL
P2 = VALTYPE: U VALUE: NIL
P3 = VALTYPE: C VALUE: Berichten
oError:canDefault :.F.
oError:canRetry :.F.
oError:canSubstitute:.F.
oError:cargo :NIL
oError:description :Not enough memory available
oError:genCode :15
oError:filename :
oError:operation :init
oError:osCode :0
oError:severity :2
oError:subCode :1005
oError:subSystem :BASE
oError:thread :9
oError:tries :0

Total virtual memory : 4076
Availeble virtual memory : 1223
Total RAM memory : 2048
Availeble RAM memory : 1370
Total process memory : 1241
Availeble process memory : 1223
Used process memory : 18

The code looks like:

CLASS Sy_Thread FROM Thread
EXPORTED:
METHOD Init                                                   
ENDCLASS

METHOD Sy_Thread:init(cThreadname)
if ValType(cThreadName) <> "C"
   cThreadname := "Sy_Thread"
endif
::Thread:init(,cThreadName)    This generates the error
Return SELF
Regards
Jack Duijf

-------------------------------------------------------------
Also a member off the XXP (http://www.xxp.nl)
Michael HoffmannRe: Incidental "Not enough memory availeble"
on Sat, 03 Jun 2017 12:32:34 +0200
Have you tried to pass a stack size as first parameter?
Michael
Jack DuijfRe: Incidental "Not enough memory availeble"
on Wed, 07 Jun 2017 17:27:33 +0200
Hello Michael,

I use the folowing link parameters;

LINKER        = ALINK
LINK_FLAGS    = /base:0x400000 /debug /nologo /subsystem:WINDOWS /Stack:8192000,4096000

Am i missing something ?


On Sat, 03 Jun 2017 12:32:34 +0200, Michael Hoffmann wrote:

>Have you tried to pass a stack size as first parameter?
>Michael
Regards
Jack Duijf

-------------------------------------------------------------
Also a member off the XXP (http://www.xxp.nl)
Jack DuijfRe: Incidental "Not enough memory availeble"
on Wed, 07 Jun 2017 17:39:17 +0200
Heloo,

Do i need these linker parameters for the EXE only, or also for the DLL's? 

Jack


On Wed, 07 Jun 2017 17:27:33 +0200, Jack Duijf wrote:

>Hello Michael,
>
>I use the folowing link parameters;
>
>LINKER        = ALINK
>LINK_FLAGS    = /base:0x400000 /debug /nologo /subsystem:WINDOWS /Stack:8192000,4096000
>
>Am i missing something ?
>
>
>On Sat, 03 Jun 2017 12:32:34 +0200, Michael Hoffmann wrote:
>
>>Have you tried to pass a stack size as first parameter?
>>Michael
>Regards
>Jack Duijf
>
>-------------------------------------------------------------
>Also a member off the XXP (http://www.xxp.nl)
Regards
Jack Duijf

-------------------------------------------------------------
Also a member off the XXP (http://www.xxp.nl)