зеркало из https://github.com/mono/mail-archives.git
137 строки
4.4 KiB
HTML
137 строки
4.4 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE> [Mono-bugs] [Bug 59459][Wis] New - Memory leaks in System.Data.OracleClient
|
||
|
</TITLE>
|
||
|
<LINK REL="Index" HREF="index.html" >
|
||
|
<LINK REL="made" HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com">
|
||
|
<META NAME="robots" CONTENT="index,nofollow">
|
||
|
|
||
|
<LINK REL="Previous" HREF="016623.html">
|
||
|
<LINK REL="Next" HREF="016625.html">
|
||
|
</HEAD>
|
||
|
<BODY BGCOLOR="#ffffff">
|
||
|
<H1>[Mono-bugs] [Bug 59459][Wis] New - Memory leaks in System.Data.OracleClient
|
||
|
</H1>
|
||
|
<B>bugzilla-daemon@bugzilla.ximian.com
|
||
|
</B>
|
||
|
<A HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com"
|
||
|
TITLE="[Mono-bugs] [Bug 59459][Wis] New - Memory leaks in System.Data.OracleClient">bugzilla-daemon@bugzilla.ximian.com
|
||
|
</A><BR>
|
||
|
<I>Wed, 2 Jun 2004 08:05:56 -0400 (EDT)</I>
|
||
|
<P><UL>
|
||
|
<LI> Previous message: <A HREF="016623.html">[Mono-bugs] [Bug 59244][Wis] Changed - crash with mutex
|
||
|
</A></li>
|
||
|
<LI> Next message: <A HREF="016625.html">[Mono-bugs] [Bug 59466][Nor] New - HtmlTextWriter fails to render closing HTML tags it does not know
|
||
|
</A></li>
|
||
|
<LI> <B>Messages sorted by:</B>
|
||
|
<a href="date.html#16624">[ date ]</a>
|
||
|
<a href="thread.html#16624">[ thread ]</a>
|
||
|
<a href="subject.html#16624">[ subject ]</a>
|
||
|
<a href="author.html#16624">[ author ]</a>
|
||
|
</LI>
|
||
|
</UL>
|
||
|
<HR>
|
||
|
<!--beginarticle-->
|
||
|
<PRE>Please do not reply to this email- if you want to comment on the bug, go to the
|
||
|
URL shown below and enter your comments there.
|
||
|
|
||
|
Changed by <A HREF="mailto:azabytin@mera.ru.">azabytin@mera.ru.</A>
|
||
|
|
||
|
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=59459">http://bugzilla.ximian.com/show_bug.cgi?id=59459</A>
|
||
|
|
||
|
--- shadow/59459 2004-06-02 08:05:56.000000000 -0400
|
||
|
+++ shadow/59459.tmp.8832 2004-06-02 08:05:56.000000000 -0400
|
||
|
@@ -0,0 +1,73 @@
|
||
|
+Bug#: 59459
|
||
|
+Product: Mono: Class Libraries
|
||
|
+Version: unspecified
|
||
|
+OS: Red Hat 9.0
|
||
|
+OS Details:
|
||
|
+Status: NEW
|
||
|
+Resolution:
|
||
|
+Severity:
|
||
|
+Priority: Wishlist
|
||
|
+Component: Sys.Data
|
||
|
+AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
|
||
|
+ReportedBy: <A HREF="mailto:azabytin@mera.ru">azabytin@mera.ru</A>
|
||
|
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
|
||
|
+TargetMilestone: ---
|
||
|
+URL:
|
||
|
+Cc:
|
||
|
+Summary: Memory leaks in System.Data.OracleClient
|
||
|
+
|
||
|
+Description of Problem:
|
||
|
+
|
||
|
+Memory is leaking then using OracleCommand. Just call ExecuteNonQuery() for
|
||
|
+severate couple hundred times.
|
||
|
+
|
||
|
+CODE EXAMPLE:
|
||
|
+
|
||
|
+using System;
|
||
|
+using System.Data.OracleClient;
|
||
|
+using System.Threading;
|
||
|
+using System.Net;
|
||
|
+using System.Data;
|
||
|
+using System.Text;
|
||
|
+
|
||
|
+namespace TestProc
|
||
|
+{
|
||
|
+ class Class1
|
||
|
+ {
|
||
|
+ [STAThread]
|
||
|
+ static void Main(string[] args)
|
||
|
+ {
|
||
|
+
|
||
|
+ string connectionString = "user id=" + "user" + ";";
|
||
|
+ connectionString += "data source=" + "UPDB" + ";";
|
||
|
+ connectionString += "password=" + "pass";
|
||
|
+
|
||
|
+ OracleConnection m_dbConnection = new OracleConnection(
|
||
|
+connectionString );
|
||
|
+ m_dbConnection.Open();
|
||
|
+
|
||
|
+ OracleCommand command = new OracleCommand( );
|
||
|
+ command.Connection = m_dbConnection;
|
||
|
+ command.CommandType =CommandType.Text;
|
||
|
+ command.CommandText = "begin pkg_dev.authentic8();end;";
|
||
|
+
|
||
|
+ for(;;)
|
||
|
+ {
|
||
|
+ command.ExecuteNonQuery();
|
||
|
+ }
|
||
|
+
|
||
|
+ command.Dispose();
|
||
|
+ m_dbConnection.Dispose();
|
||
|
+ }
|
||
|
+ }
|
||
|
+}
|
||
|
+
|
||
|
+Steps to reproduce the problem:
|
||
|
+1. Compile code using command line: mcs /t:exe /r:System.Data /r:System.
|
||
|
+Data.OracleClient /out:TestProc.exe *.cs
|
||
|
+2. Run EXE
|
||
|
+3. Use Linux command "top" to see that memory is leaking
|
||
|
+
|
||
|
+
|
||
|
+How often does this happen?
|
||
|
+Always
|
||
|
|
||
|
</PRE>
|
||
|
<!--endarticle-->
|
||
|
<HR>
|
||
|
<P><UL>
|
||
|
<!--threads-->
|
||
|
<LI> Previous message: <A HREF="016623.html">[Mono-bugs] [Bug 59244][Wis] Changed - crash with mutex
|
||
|
</A></li>
|
||
|
<LI> Next message: <A HREF="016625.html">[Mono-bugs] [Bug 59466][Nor] New - HtmlTextWriter fails to render closing HTML tags it does not know
|
||
|
</A></li>
|
||
|
<LI> <B>Messages sorted by:</B>
|
||
|
<a href="date.html#16624">[ date ]</a>
|
||
|
<a href="thread.html#16624">[ thread ]</a>
|
||
|
<a href="subject.html#16624">[ subject ]</a>
|
||
|
<a href="author.html#16624">[ author ]</a>
|
||
|
</LI>
|
||
|
</UL>
|
||
|
</body></html>
|