From: | "Johann Zuschlag" <zuschlag2(at)online(dot)de> |
---|---|
To: | "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org> |
Cc: | "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> |
Subject: | Possible memory leakage? |
Date: | 2001-05-31 19:52:47 |
Message-ID: | E155YTW-0000op-00@mrelay01.kundenserver.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
Hi all,
So far the driver is ok (using cvs from today).
But while looking for my 'page fault error when exiting' I found the following:
When I tried to connect with a wrong ip (on purpose) I found
something interesting. My application tried 6 times to connect,
before finally giving up.
I just wonder why SQLAllocEnv allways allocates new
memory. Isn't it freed correctly? Maybe I misunderstood something.
I don't know C well.
I just cut out the interesting lines. I also skipped the lines between
SQLAllocEnv and SQLFreeEnv. Complete (small) log available.
**** in SQLAllocEnv **
** exit SQLAllocEnv: phenv = 45942064 **
**** in SQLFreeEnv: env = 45942064 **
in EN_Destructor, self=45942064
exit EN_Destructor: rv = 1
ok
**** in SQLAllocEnv **
** exit SQLAllocEnv: phenv = 45942272 **
**** in SQLFreeEnv: env = 45942272 **
in EN_Destructor, self=45942272
exit EN_Destructor: rv = 1
ok
**** in SQLAllocEnv **
** exit SQLAllocEnv: phenv = 45942448 **
SQLFreeConnect: returning...
**** in SQLFreeEnv: env = 45942448 **
in EN_Destructor, self=45942448
exit EN_Destructor: rv = 1
ok
**** in SQLAllocEnv **
** exit SQLAllocEnv: phenv = 45942624 **
**** in SQLFreeEnv: env = 45942624 **
in EN_Destructor, self=45942624
exit EN_Destructor: rv = 1
ok
**** in SQLAllocEnv **
** exit SQLAllocEnv: phenv = 45942800 **
**** in SQLFreeEnv: env = 45942800 **
in EN_Destructor, self=45942800
exit EN_Destructor: rv = 1
ok
**** in SQLAllocEnv **
** exit SQLAllocEnv: phenv = 45942976 **
t: returning...
**** in SQLFreeEnv: env = 45942976 **
in EN_Destructor, self=45942976
exit EN_Destructor: rv = 1
ok
regards
Johann
Johann Zuschlag
zuschlag2(at)online(dot)de
From | Date | Subject | |
---|---|---|---|
Next Message | Hiroshi Inoue | 2001-06-01 02:16:04 | Re: Aggregate function problem in VB6 |
Previous Message | Tom Lane | 2001-05-31 16:38:19 | Re: Aggregate function problem in VB6 |