memory leak ?

degerine

Member
Hi,

I launch my server, it takes 13 Mo in memory.
When I make a connection to the enterprise server,
it takes 39 Mo in memory.
But when I close the connection, the memory, is always
at 39 Mo !
And when I recreate a connection, my memory increase by
1 Mo


To connect, I use:
... JDB_InitEnvOvr(hEnv, szEnvironment, szUser, szPassword)
... JDB_InitUser(*hEnv, hUser, NULL, JDEDB_COMMIT_AUTO)
... jdeCreateBusinessFunctionParms(*hUser, lpBhvrCom, (LPVOID *) &lpVoid)!=JDEDB_PASSED

When I disconnect I use:
... JDB_FreeUser(hUser);
... JDB_FreeEnv(hEnv);
... free(*hUser);
... free(*hEnv);
... free(*lpBhvrCom);

I forgot something ?

Thanks for your help.
 
You also need (on the log off):
/* free business function memory */

jdeFreeBusinessFunctionParms(lpbhvrcom, lpvoid);

And ideally you also need to set the kernel type:

JDB_SetKernelType(KERNEL_DISP);
 
Re: RE: memory leak ?

thanks for your help peter,
but I have always the problem,
the memory does not go down !
 
Back
Top