Compare commits

...
907 Commits
Author SHA1 Message Date
nobody cfaea8bc95 This commit was manufactured by cvs2svn to create tag 'MCS_0_21'.
svn path=/tags/MCS_0_21/mcs/; revision=12047
2003-02-27 22:22:37 +00:00
Miguel de Icaza 8df3cb190c bump
svn path=/trunk/mcs/; revision=12046
2003-02-27 22:22:37 +00:00
Miguel de Icaza f74ec6eee5 Bump
svn path=/trunk/mono/; revision=12044
2003-02-27 22:22:27 +00:00
Zoltan Varga 308a67b9c3 2003-02-27 Zoltan Varga <[email protected]>
* metadata.c (mono_metadata_nesting_typedef): fix bug in previous
	change.

svn path=/trunk/mono/; revision=12042
2003-02-27 20:30:36 +00:00
Ville Palo aacbfb8210 2003-02-28 Ville Palo <[email protected]>
* DataColumnCollectionTest.cs: Added more tests.
	* DataRowCollectionTest.cs: Added more tests.

svn path=/trunk/mcs/; revision=12041
2003-02-27 20:29:14 +00:00
Gonzalo Paniagua Javier 3ec6689a51 oops. Thanks to danmorg for pointing this out.
svn path=/trunk/mono/; revision=12040
2003-02-27 20:21:04 +00:00
Ville Palo bb6ef3268f 2003-02-28 Ville Palo <[email protected]>
* ExpressionElement.cs: More implementation.

svn path=/trunk/mcs/; revision=12039
2003-02-27 20:14:36 +00:00
Alan Tam dc0812150d 2003-02-28 Elan Feingold <[email protected]>
* DateTime.cs: FileTime is expressed in Universal time, and as such must
	be converted before subtracting the magic offset.
	* DateTime.cs: Strings in the format "2003-02-27T10:05:03-11:00" (note
	the timezone at the end) *must* be parsed by DateTime.Parse() for
	compatibility with Microsoft.

svn path=/trunk/mcs/; revision=12038
2003-02-27 20:01:32 +00:00
Miguel de Icaza ad4821f26a 2003-02-27 Miguel de Icaza <[email protected]>
* driver.cs: handle the +/- options for -noconfig

svn path=/trunk/mcs/; revision=12037
2003-02-27 19:48:17 +00:00
Gonzalo Paniagua Javier eaf0aa7fbe 2003-02-27 Gonzalo Paniagua Javier <[email protected]>
* Makefile.am: make assemblies dir have \ instead of / on windows.

svn path=/trunk/mono/; revision=12036
2003-02-27 19:46:51 +00:00
Zoltan Varga 89d747ea99 2003-02-27 Zoltan Varga <[email protected]>
* metadata.c metadata.h (mono_metadata_nesting_typedef): changed to
	iterate over the NESTEDCLASS table using a linear search since the
	table is not guaranteed to be sorted by the secondary key.

	* class.c (mono_class_create_from_typedef): fixed up call to
	mono_metadata_nesting_typedef.

svn path=/trunk/mono/; revision=12035
2003-02-27 19:06:41 +00:00
Miguel de Icaza ca97f02e5c 2003-02-27 Miguel de Icaza <[email protected]>
* statement.cs (Unchecked.Resolve): Also track the state in the Resolve phase.

svn path=/trunk/mcs/; revision=12034
2003-02-27 18:59:06 +00:00
Miguel de Icaza af43004774 Flush
svn path=/trunk/mono/; revision=12033
2003-02-27 17:41:42 +00:00
Alan Tam 6d9d8d4224 2003-02-28 Alan Tam <[email protected]>
* DataSet.cs: Changed WriteTable so that it now calls the newly written
        WriteObjectXml to direct the call to the respective XmlConvert method.
        This fixes the wrong format written to XML files of bool, float,
        double, DateTime and TimeSpan types.

svn path=/trunk/mcs/; revision=12032
2003-02-27 17:18:05 +00:00
Alan Tam f8abecbb7f 2003-02-28 Alan Tam <[email protected]>
* XmlConvert.cs: fixed the most ToXXX(string) and ToString(XXX)
        methods to make them compatible with the XML Schema Spec from W3C
        ToString(TimeSpan) is still outstanding

svn path=/trunk/mcs/; revision=12031
2003-02-27 17:11:41 +00:00
Gonzalo Paniagua Javier 3786083fc6 2003-02-27 Gonzalo Paniagua Javier <[email protected]>
* File.cs: fix by Elan Feingold <[email protected]> for
	SetCreationTime, SetLastAccessTime and SetLastWriteTime.

svn path=/trunk/mcs/; revision=12029
2003-02-27 16:20:24 +00:00
Martin Baulig a56a1a0f39 2003-02-27 Martin Baulig <[email protected]>
* ecore.cs (Expression.MemberLookup): Don't create a
	MethodGroupExpr for something which is not a method.  Fixes #38291.

svn path=/trunk/mcs/; revision=12027
2003-02-27 14:21:50 +00:00
Dietmar Maurer 5844cd840c added class init test from zoltan
svn path=/trunk/mono/; revision=12025
2003-02-27 11:56:34 +00:00
Dietmar Maurer 63f894376b new test
svn path=/trunk/mono/; revision=12024
2003-02-27 11:52:55 +00:00
Dietmar Maurer d808f4cd2c 2003-02-27 Dietmar Maurer <[email protected]>
* marshal.c (mono_string_to_byvalstr): clear the memory as
	suggested by Jerome Laban <[email protected]>

svn path=/trunk/mono/; revision=12023
2003-02-27 11:41:40 +00:00
Tim Coleman 47cbf3c66b 2003-02-26 Tim Coleman <[email protected]>
* System.Data.OracleClient/OracleConnection.cs:
		Rollback transactions when connection closes if they
		are open.
	* System.Data.OracleClient/OracleDataReader.cs:
		Implement GetOracleLob ()
	* System.Data.OracleClient/OracleLob.cs:
		Implement some of the details, like Read/Write/Seek
	* System.Data.OracleClient.Oci/OciBindHandle.cs:
		Remove debug message.
	* System.Data.OracleClient.Oci/OciDefineHandle.cs:
		Add LOB support.
	* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
		Minor formatting changes
	* System.Data.OracleClient.Oci/OciLobLocator.cs:
		Huge amounts of code to make it work.  Lots of ugly
		OCI P/Invoke code.
	* Test/TestOracleClient.cs:
		Improve the LOBTest.

svn path=/trunk/mcs/; revision=12021
2003-02-27 05:20:06 +00:00
Gonzalo Paniagua Javier 6ff5c436a3 2003-02-27 Gonzalo Paniagua Javier <[email protected]>
* AuthenticationConfigHandler.cs: 'name' is optional in <forms>.

svn path=/trunk/mcs/; revision=12019
2003-02-27 03:48:36 +00:00
Gonzalo Paniagua Javier 029b4e1fce 2003-02-27 Gonzalo Paniagua Javier <[email protected]>
* CultureInfo.cs:
	(NameToID): make it case insensitive and use a hashtable instead of
	comparing all the strings.

svn path=/trunk/mcs/; revision=12018
2003-02-27 02:08:56 +00:00
Gonzalo Paniagua Javier 047c999e9e Reverted last patch. It breaks configuration reading
svn path=/trunk/mcs/; revision=12017
2003-02-27 01:20:59 +00:00
Per Arneng 6c729d5040 Removed an old FIXME
svn path=/trunk/mcs/; revision=12016
2003-02-27 00:32:32 +00:00
Per Arneng c836c2b8e7 added author comment
svn path=/trunk/mcs/; revision=12015
2003-02-26 23:47:19 +00:00
Per Arneng e9adfe4a34 Added the MailEncdoder class to be responsible for base64,UU encoding
The base64 method is now diff tested against uuencode

svn path=/trunk/mcs/; revision=12014
2003-02-26 22:50:45 +00:00
Per Arneng 83591627cb Fixed subject encoding.. does like ms now
svn path=/trunk/mcs/; revision=12006
2003-02-26 19:21:26 +00:00
Atsushi Eno b4d47f5448 2003-02-27 Atsushi Enomoto <[email protected]>
* XmlDocument.cs: modified Load().
	  Uri.Parse might not allow non-uri string.
	* XmlInputStream.cs: patch by Gonzalo (CanSeek).
	  added some constructors for convenience.
	* XmlTextReader.cs: modified some constructors.

svn path=/trunk/mcs/; revision=12005
2003-02-26 19:11:46 +00:00
Dick Porter 7132e98736 2003-02-26 Dick Porter <[email protected]>
* process.c: Cope with padding in .rsrc blocks

svn path=/trunk/mono/; revision=12001
2003-02-26 16:03:29 +00:00
Zoltan Varga 260fcb6b93 2003-02-26 Zoltan Varga <[email protected]>
* TypeBuilder.cs (DefineInitializedData): Removed unnecessary assignments.

	* ModuleBuilder.cs (DefineInitializedData): Do not call
	TypeBuilder::DefineInitializedData since that would mean defining a
	nested type of the global type, which is wrong. Instead define a
	new public type as MS does.

	* ModuleBuilder.cs (DefineUninitializedData): Ditto.

svn path=/trunk/mcs/; revision=11999
2003-02-26 14:40:21 +00:00
Dietmar Maurer 191a65c1ec 2003-02-26 Dietmar Maurer <[email protected]>
* metadata.h: reverted the filter_len change, it breaks reflection

svn path=/trunk/mono/; revision=11997
2003-02-26 11:29:53 +00:00
Dietmar Maurer efb4caccc5 2003-02-26 Dietmar Maurer <[email protected]>
* metadata.h: added a new field to store the filter_len

svn path=/trunk/mono/; revision=11996
2003-02-26 10:21:22 +00:00
Nick Drochak 43d6c847f4 2003/02/26 Nick Drochak <[email protected]>
* ActivatorTest.cs: Unregister the channel like it should.
	* MarshalByRefTest.cs: Take out my hack.
	  Both from Jean-Marc Andr [[email protected]].

svn path=/trunk/mcs/; revision=11995
2003-02-26 09:37:18 +00:00
Reggie Burnett 31f33f23a3 * Form.Close now actually destroys the Window
* Application now closes when launching form is closed

svn path=/trunk/mcs/; revision=11992
2003-02-26 07:53:25 +00:00
Per Arneng 2dddb5bd02 Added myself :)
svn path=/trunk/mcs/; revision=11991
2003-02-26 06:23:13 +00:00
Per Arneng a771ee1188 Added a FIXME comment on boundaries
svn path=/trunk/mcs/; revision=11990
2003-02-26 06:04:11 +00:00
Per Arneng b2c2697cf8 SmtpServer now defaults to localhost
svn path=/trunk/mcs/; revision=11989
2003-02-26 05:57:18 +00:00
Per Arneng bd922647f4 application/octet-stream for attatchment mimetypes
svn path=/trunk/mcs/; revision=11988
2003-02-26 05:35:44 +00:00
Dave Bettin b80347938e o Modified WebService to house a HttpContext member instead of HttpApplication
svn path=/trunk/mcs/; revision=11987
2003-02-26 04:58:37 +00:00
Per Arneng a3df14a694 Body is now encoded with BodyEncoding.GetBytes
svn path=/trunk/mcs/; revision=11986
2003-02-26 04:58:25 +00:00
Dave Bettin a3fda2d3f8 o Moved tests to nunit2 guidelines
o Added build for linux test(s)

svn path=/trunk/mcs/; revision=11985
2003-02-26 04:51:32 +00:00
Per Arneng 9984280aca Set the Content-Transfet-Encoding based on contents ASCII 7bit other 8bit
svn path=/trunk/mcs/; revision=11984
2003-02-26 04:36:00 +00:00
Miguel de Icaza b7f52847d5 2003-02-25 Miguel de Icaza <[email protected]>
* class.cs (MemberBase.CheckParameters): Also check that the type
	is unmanaged if it is a pointer.

	* expression.cs (SizeOf.Resolve): Add location information.

	* statement.cs (Block.EmitMeta): Flag error (208) if a pointer to
	a managed type is declared.

svn path=/trunk/mcs/; revision=11983
2003-02-26 04:25:47 +00:00
Miguel de Icaza 12f5301d37 Add new test
svn path=/trunk/mcs/; revision=11982
2003-02-26 04:10:34 +00:00
Per Arneng 832b6c0b5e Content-Type:..; charset= is now set to the correct value
svn path=/trunk/mcs/; revision=11981
2003-02-26 04:09:55 +00:00
Gonzalo Paniagua Javier 6d7b6e68dd 2003-02-26 Gonzalo Paniagua Javier <[email protected]>
* MemoryStream.cs:
	(ToArray): return only the portion of the buffer that contains
	data, not the whole buffer. (note: this makes XmlDocument.Load work
	again with documents that have a <?xml without the 'encoding'
	attribute, which makes gtk-sharp generator work again).

svn path=/trunk/mcs/; revision=11979
2003-02-26 03:40:35 +00:00
Miguel de Icaza 99d0fb74a3 Add new error
svn path=/trunk/mcs/; revision=11978
2003-02-26 03:37:58 +00:00
Miguel de Icaza e97d71bc98 2003-02-25 Miguel de Icaza <[email protected]>
* class.cs: Very sad.  Am backing out the speed up changes
	introduced by the ArrayList -> Array in the TypeContainer, as they
	were not actually that much faster, and introduced a bug (no error
	reports on duplicated methods).

svn path=/trunk/mcs/; revision=11977
2003-02-26 03:13:08 +00:00
Miguel de Icaza a74e0bd2c6 Improve test
svn path=/trunk/mcs/; revision=11975
2003-02-26 02:13:30 +00:00
Miguel de Icaza cbe579519f Test the right variable, avoid a crash
svn path=/trunk/mcs/; revision=11974
2003-02-26 02:13:07 +00:00
Miguel de Icaza 2ae1fd351e Another change. Use target.Resolve instead of LValueResolve.
Although we are resolving for LValues, we will let the Assign code
	take care of that (it will be called again from Resolve).  This
	basically allows code like this:

	class X { X operator + (X x, object o) {} X this [int idx] { get; set; } }
	class Y { void A (X x) { x [0] += o; }

	The problem was that the indexer was trying to resolve for
	set_Item (idx, object o) and never finding one.  The real set_Item
	was set_Item (idx, X).  By delaying the process we get the right
	semantics.

	Fixes bug: 36505

svn path=/trunk/mcs/; revision=11973
2003-02-26 02:06:46 +00:00
Miguel de Icaza eba56b9643 2003-02-25 Miguel de Icaza <[email protected]>
* assign.cs (CompoundAssign.DoLResolve): Resolve the original
	source first, this will guarantee that we have a valid expression
	before calling in lower levels functions that will require a
	resolved object.  Then use this original_source in the
	target.ResolveLValue instead of the original source that was
	passed to us.

svn path=/trunk/mcs/; revision=11972
2003-02-25 22:46:33 +00:00
Miguel de Icaza 1af72c5084 Add new test
svn path=/trunk/mcs/; revision=11971
2003-02-25 22:45:04 +00:00
Miguel de Icaza 9f7b2c132a Fix
svn path=/trunk/mcs/; revision=11970
2003-02-25 22:29:35 +00:00
Miguel de Icaza 2fbf90ef01 2003-02-25 Miguel de Icaza <[email protected]>
* makefile (all): Make it so that doing `make' will run the
	default tests depending on Windows/Linux.

svn path=/trunk/mcs/; revision=11969
2003-02-25 22:25:38 +00:00
Lluis Sanchez 3accd72948 * BinaryFormatter.cs: Implemented support for binders.
* MessageFormatter.cs: Implemented support for binders.
    * ObjectReader.cs: Implemented support for binders.

svn path=/trunk/mcs/; revision=11968
2003-02-25 20:31:53 +00:00
Miguel de Icaza d783a927f4 update man page
svn path=/trunk/mono/; revision=11967
2003-02-25 17:34:19 +00:00
Dick Porter 7217ade08e 2003-02-25 Dick Porter <[email protected]>
* shared.c (_wapi_shm_attach): Return a failure code on system
	call errors, rather than exiting.

svn path=/trunk/mono/; revision=11966
2003-02-25 17:26:54 +00:00
Miguel de Icaza 2ed502499e Flush
svn path=/trunk/mono/; revision=11965
2003-02-25 17:00:08 +00:00
Alan Tam 8b911be307 2003-02-25 Alan Tam <[email protected]>
* DbDataAdapter.cs: Added support for filling when schema is present.
        Fixed incorrect behavior when ColumnMapping is present
        when more than one fields have the same name. Implemented Dispose.
        Fixed error when there is no ColumnMapping at all.
        Still have some problems in finding the correct TableMapping
        because the SourceTable name is not present in BuildSchema

svn path=/trunk/mcs/; revision=11963
2003-02-25 16:19:29 +00:00
Rafael Teixeira 61b1685675 bits
svn path=/trunk/mcs/; revision=11962
2003-02-25 15:52:06 +00:00
Nick Drochak 2352aa0cf1 2003-02-25 Nick Drochak <[email protected]>
* File.cs (GetCreationTime): Throw proper execption when path is not
	found.

svn path=/trunk/mcs/; revision=11960
2003-02-25 14:40:10 +00:00
Nick Drochak f55ca996ab 2003-02-25 Nick Drochak <[email protected]>
* TimeSpanTest.cs: Isolate test for Negate bug. Same as previous
	'checked' bug in ByteTest?

svn path=/trunk/mcs/; revision=11956
2003-02-25 14:02:33 +00:00
Paolo Molaro 2c5bcddb86 Tue Feb 25 11:55:35 CET 2003 Paolo Molaro <[email protected]>
* MemoryStream.cs: make it behave sanely when the stream is
	incrementally expanded.

svn path=/trunk/mcs/; revision=11953
2003-02-25 11:00:02 +00:00
Paolo Molaro f80ac8be85 Tue Feb 25 10:56:16 CET 2003 Paolo Molaro <[email protected]>
* reflection.c: handle custom attributes for types and members
	created with Reflection.Emit (bug#38422).

svn path=/trunk/mono/; revision=11947
2003-02-25 10:00:58 +00:00
Alan Tam db03364a32 2003-02-25 Alan Tam <[email protected]>
* DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
        * DataRelationCollection.cs: Implemented AddRange and Contains.
        Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
        Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
        Reimplemented most Add methods to eliminate duplicated checks.
        Centralized RelationName generation procedure in GetNextDefaultRelationName.

svn path=/trunk/mcs/; revision=11945
2003-02-25 08:48:29 +00:00
Alan Tam 5f12cfc8d7 2003-02-25 Alan Tam <[email protected]>
* DataColumn.cs: Fixed wrong storage representation of Expression
        (using empty string instead of null) so that ToString() returns nothing.
        * DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
        auto column naming now works as expected. Reimplemented some Add methods
        to eliminate code duplication.

svn path=/trunk/mcs/; revision=11943
2003-02-25 07:25:05 +00:00
Miguel de Icaza 07feaea8d0 Add
svn path=/trunk/mono/; revision=11939
2003-02-24 22:13:22 +00:00
Gonzalo Paniagua Javier 6ca7b36d86 2003-02-24 Gonzalo Paniagua Javier <[email protected]>
* Attribute.cs:
	* MonoCustomAttrs.cs: fix for the regression test failure (see bug
	#38238).

	* IntPtr.cs: added serialization .ctor

svn path=/trunk/mcs/; revision=11937
2003-02-24 21:38:45 +00:00
Alan Tam d4a29fe97a 2003-02-24 Aleksey Demakov <[email protected]>
* DbDataAdapter.cs: The original code might pass a null DataTableMapping
	value which is then used to create a RowUpdatingEventArgs
	instance. So RowUpdatingEvent handler (for instance
	CommandBuilder) could get null DataTableMapping which
	might be unexpected. The patch makes sure that a non-null
	DataTableMapping is passed.

svn path=/trunk/mcs/; revision=11930
2003-02-24 17:47:28 +00:00
Gonzalo Paniagua Javier bf9ad10d34 2003-02-24 Gonzalo Paniagua Javier <[email protected]>
* OracleMonthSpan.cs: fixed compilation.

svn path=/trunk/mcs/; revision=11929
2003-02-24 16:51:17 +00:00
Peter Williams f4ad42ac18 2003-02-23 Peter Williams <[email protected]>
* makefile.gnu (all): Take two.

svn path=/trunk/mcs/; revision=11915
2003-02-24 04:38:04 +00:00
Miguel de Icaza 67ff9f4b28 Patches from Daniel Campos
svn path=/trunk/mcs/; revision=11914
2003-02-24 03:39:13 +00:00
Miguel de Icaza e11a99439c too late
svn path=/trunk/mcs/; revision=11912
2003-02-24 01:07:26 +00:00
Miguel de Icaza e6522fa2d6 Add NEWS file
svn path=/trunk/mono/; revision=11911
2003-02-24 01:07:08 +00:00
Miguel de Icaza 5694aa2301 Update update
svn path=/trunk/mono/; revision=11910
2003-02-24 01:06:27 +00:00
Duncan Mak 8c0cd7c8bc Add
svn path=/trunk/mcs/; revision=11908
2003-02-24 00:08:31 +00:00
Miguel de Icaza 4f056fd1c0 chain
svn path=/trunk/mcs/; revision=11907
2003-02-23 23:53:22 +00:00
Miguel de Icaza f58722a26e Remove all target, because that cancels the creation of Mono.PEToolkit
svn path=/trunk/mcs/; revision=11906
2003-02-23 23:51:22 +00:00
Miguel de Icaza 73cab5d584 Add System.Security
svn path=/trunk/mcs/; revision=11905
2003-02-23 23:36:07 +00:00
Duncan Mak 6a0fb29045 Add to the distro
svn path=/trunk/mono/; revision=11903
2003-02-23 23:34:54 +00:00
Duncan Mak 8433f6ba46 Add alpha
svn path=/trunk/mono/; revision=11902
2003-02-23 23:31:59 +00:00
Per Arneng da2c60f5b8 Changed a comment to more descibing
svn path=/trunk/mcs/; revision=11901
2003-02-23 21:27:30 +00:00
Per Arneng 9ae50db590 Exception throwing cleanup
svn path=/trunk/mcs/; revision=11900
2003-02-23 21:22:18 +00:00
Per Arneng d7e625fc8f Updated with info that SmtMail.Send is working
svn path=/trunk/mcs/; revision=11899
2003-02-23 20:52:30 +00:00
Peter Williams 8b65ff0319 2003-02-23 Peter Williams <[email protected]>
* makefile.gnu (all): Give this dependencies
	so that we don't rebuild every time.

svn path=/trunk/mcs/; revision=11898
2003-02-23 20:49:01 +00:00
Per Arneng f64332a418 Added my name to author list :)
svn path=/trunk/mcs/; revision=11897
2003-02-23 20:44:27 +00:00
Rafael Teixeira 8381e73ac4 Dummy methods and fields
svn path=/trunk/mcs/; revision=11895
2003-02-23 20:32:42 +00:00
Rafael Teixeira fc50e037ad Dummy version of needed class ServiceBase added
svn path=/trunk/mcs/; revision=11893
2003-02-23 20:21:42 +00:00
Rafael Teixeira 5f9d7602b5 some forgotten bits
svn path=/trunk/mcs/; revision=11891
2003-02-23 20:07:24 +00:00
Rafael Teixeira ac6d4cbb65 oops: mispelling corrected
svn path=/trunk/mcs/; revision=11890
2003-02-23 19:58:04 +00:00
Rafael Teixeira 3346309151 head -n 2 ChangeLog
svn path=/trunk/mcs/; revision=11889
2003-02-23 19:53:51 +00:00
Per Arneng cd75d407a5 Added the new System.Web.Mail files
svn path=/trunk/mcs/; revision=11888
2003-02-23 19:52:27 +00:00
Per Arneng b31cffbf1f SmtpMail.Send is now working but needs testing
svn path=/trunk/mcs/; revision=11887
2003-02-23 19:51:36 +00:00
Per Arneng 97a1dd514f SMTP Internal classes added to make SmtpMail.Send work
svn path=/trunk/mcs/; revision=11885
2003-02-23 19:50:45 +00:00
Rafael Teixeira aa46a5386a Just a local makefile, to facilitate MonoQLE
svn path=/trunk/mcs/; revision=11884
2003-02-23 19:39:14 +00:00
Ravi Pratap M 4d45418b34 Add test-177 to the right category
svn path=/trunk/mcs/; revision=11883
2003-02-23 19:38:02 +00:00
Jackson Harper 186273f3ed * CompilerError.cs: Use fields not properties, and remove unneeded finalizer
svn path=/trunk/mcs/; revision=11882
2003-02-23 19:27:24 +00:00
Rafael Teixeira 42a2078151 some bits that were lacking
svn path=/trunk/mcs/; revision=11881
2003-02-23 19:26:43 +00:00
Martin Baulig 41e28d2465 2003-02-23 Martin Baulig <[email protected]>
* statement.cs (Block.Emit): Override this and set ec.CurrentBlock
	while calling DoEmit ().

	* codegen.cs (EmitContext.Mark): Don't mark locations in other
	source files; if you use the #line directive inside a method, the
	compiler stops emitting line numbers for the debugger until it
	reaches the end of the method or another #line directive which
	restores the original file.

svn path=/trunk/mcs/; revision=11880
2003-02-23 19:17:40 +00:00
Rafael Teixeira 05843aee0c With it, we can make locally, wont change dirs list in mcs/class makefile for now
svn path=/trunk/mcs/; revision=11879
2003-02-23 19:13:11 +00:00
Miguel de Icaza 96aceda235 Add documentation missing of tests, and add new test.
svn path=/trunk/mcs/; revision=11878
2003-02-23 19:08:21 +00:00
Martin Baulig 10ae2b144f Removed two Console.WriteLine's.
svn path=/trunk/mcs/; revision=11877
2003-02-23 18:42:39 +00:00
Rafael Teixeira ab47d60645 I still have to learn lots about CVS
svn path=/trunk/mcs/; revision=11876
2003-02-23 18:41:37 +00:00
Martin Baulig c015d3a3d7 2003-02-23 Martin Baulig <[email protected]>
* test-185.cs: New test for bug #37708.

svn path=/trunk/mcs/; revision=11875
2003-02-23 18:39:31 +00:00
Martin Baulig a32e55fb66 2003-02-23 Martin Baulig <[email protected]>
* statement.cs (FlowBranching.UsageVector.MergeChildren): Fix bug #37708.

svn path=/trunk/mcs/; revision=11874
2003-02-23 18:38:52 +00:00
Rafael Teixeira b056e2889a AHEM: doing it again, using mono directories rules this time
svn path=/trunk/mcs/; revision=11873
2003-02-23 18:36:52 +00:00
Rafael Teixeira dcdb15a41e bringing System.Messaging to Mono (from MonoQLE)
svn path=/trunk/mcs/; revision=11872
2003-02-23 18:25:03 +00:00
Gaurav Vaish ba9aa7713a 2003-02-23 Gaurav Vaish <gvaish_mono AT lycos.com>
* CustomValidator.cs     : Completed.
	* DeviceSpecific.cs      : Initial implementation.
	* DeviceSpecificChoiceTemplateContainer.cs
	                         : Completed.
	* DeviceSpecificChoiceCollection.cs
	                         : Completed.
	* DeviceSpecificChoice.cs: Initial implementation.

svn path=/trunk/mcs/; revision=11871
2003-02-23 16:11:52 +00:00
Gaurav Vaish d05bf9fbc2 2003-02-23 Gaurav Vaish <gvaish_mono AT lycos.com>
* MobileCapabilities.cs    : Initial implementation.

svn path=/trunk/mcs/; revision=11870
2003-02-23 16:02:23 +00:00
Martin Baulig 961235859c Make this compile.
svn path=/trunk/mcs/; revision=11869
2003-02-23 13:30:34 +00:00
Martin Baulig 03935d4b06 2003-02-23 Martin Baulig <[email protected]>
* statement.cs (Block.AddChildVariableNames): We need to call this
	recursively, not just for our immediate children.

svn path=/trunk/mcs/; revision=11868
2003-02-23 13:27:54 +00:00
Martin Baulig e038afb2a6 2003-02-23 Martin Baulig <[email protected]>
* class.cs (Event.Define): Always make the field private, like csc does.

	* typemanager.cs (TypeManager.RealMemberLookup): Make events
	actually work, fixes bug #37521.

svn path=/trunk/mcs/; revision=11867
2003-02-23 13:20:30 +00:00
Martin Baulig bd05db97e6 2003-02-23 Martin Baulig <[email protected]>
When adding any tests here, please do also add them to the
	README.tests !

	The following tests are still missing:

	test-176 test-177 test-179 test-180 test-181 test-182 test-183
	test-184

svn path=/trunk/mcs/; revision=11864
2003-02-23 11:45:23 +00:00
Gaurav Vaish 4aad18b2f3 2003-02-23 Gaurav Vaish <gvaish_mono AT lycos.com>
* Calendar.cs            : Completed.
* BaseValidator.cs       : Completed.
* CompareValidator.cs    : Completed.

svn path=/trunk/mcs/; revision=11859
2003-02-23 07:42:11 +00:00
Miguel de Icaza 1d65971a97 2003-02-23 Miguel de Icaza <[email protected]>
* delegate.cs: When creating the various temporary "Parameters"
	classes, make sure that we call the ComputeAndDefineParameterTypes
	on those new parameters (just like we do with the formal ones), to
	allow them to be resolved in the context of the DeclSpace.

	This fixes the bug that Dick observed in Bugzilla #38530.

svn path=/trunk/mcs/; revision=11857
2003-02-23 06:41:56 +00:00
Jackson Harper c81cda6e5c ChangeLog
svn path=/trunk/mcs/; revision=11856
2003-02-23 01:30:13 +00:00
Jackson Harper 8e7f1191fb * Image.cs: Write CorHeader
svn path=/trunk/mcs/; revision=11855
2003-02-23 01:29:38 +00:00
Miguel de Icaza c4c3d949e9 Add System.Security
svn path=/trunk/mono/; revision=11854
2003-02-23 00:03:31 +00:00
Jackson Harper 0b7e7031c5 * Image.cs: Write Sections
svn path=/trunk/mcs/; revision=11853
2003-02-23 00:03:30 +00:00
Miguel de Icaza 4b6f996569 Add to the Linux build
svn path=/trunk/mcs/; revision=11852
2003-02-23 00:01:47 +00:00
Miguel de Icaza 5b604db708 Add a small explanatory comment
svn path=/trunk/mcs/; revision=11851
2003-02-22 23:16:57 +00:00
Miguel de Icaza d484fcef9b 2003-02-22 Miguel de Icaza <[email protected]>
* expression.cs (ResolveMemberAccess): When resolving a constant,
	do not attempt to pull a constant if the value was not able to
	generate a valid constant.

	* const.cs (LookupConstantValue): Do not report more errors than required.

svn path=/trunk/mcs/; revision=11848
2003-02-22 21:58:09 +00:00
Miguel de Icaza d9f8cc931d Commit on behalf of Mike Kestner
svn path=/trunk/mono/; revision=11847
2003-02-22 20:59:58 +00:00
Rafael Teixeira 5884cfe9e6 2003/02/22 Rafael Teixeira <[email protected]>
* class.cs : As, per vbc, there is a rootnamespace now, --main wasn't working anymore, 
				 because it was expecting a fully qualified class name. 
				 We now also test the name passed prepended by the rootnamespace.
	* class.cs : Corrected warning "The keyword new is required on `Mono.CSharp.Property.Emit'
				 because it hides inherited member `PropertyBase.Emit'", by making it virtual
				 in PropertyBase and override in Property.
	* makefile.gnu : test and test-gtk targets now depend on mbas.exe

svn path=/trunk/mcs/; revision=11845
2003-02-22 20:04:41 +00:00
Martin Baulig c2fc4ec6c3 2003-02-22 Martin Baulig <[email protected]>
* makefile(s): Added `MCS' and `MCS_FLAGS' variables.

svn path=/trunk/mcs/; revision=11844
2003-02-22 19:48:48 +00:00
Rafael Teixeira e63234c20f Spurious text in Options.cs, was stopping compilation. Removed...
svn path=/trunk/mcs/; revision=11841
2003-02-22 18:52:55 +00:00
Zoltan Varga a525556b38 2003-02-22 Zoltan Varga <[email protected]>
* reflection.c: define RTSpecialName automatically for constructors for
	compatibility with MS.NET.

	* reflection.c (mono_reflection_create_runtime_class): initialize
	nested_in field of dynamically created classes.

svn path=/trunk/mono/; revision=11840
2003-02-22 18:45:50 +00:00
Jackson Harper eeb6dc142d * Section.cs: Add method for writing Sections
svn path=/trunk/mcs/; revision=11837
2003-02-22 17:37:48 +00:00
Martin Baulig 4022942513 2003-02-22 Martin Baulig <[email protected]>
* debug-mono-symfile.h: Incremented version number.

svn path=/trunk/mono/; revision=11836
2003-02-22 17:10:26 +00:00
Martin Baulig 677ca39c5b 2003-02-22 Martin Baulig <[email protected]>
* MonoSymbolTable.cs: Incremented version number.

svn path=/trunk/mcs/; revision=11835
2003-02-22 17:09:06 +00:00
Martin Baulig d4d4e18a45 .cvsignore ......
svn path=/trunk/mcs/; revision=11834
2003-02-22 17:08:13 +00:00
Martin Baulig fb6b37aaa6 2003-02-22 Martin Baulig <[email protected]>
* library.make: Pass `MCS_FLAGS' to MCS.

svn path=/trunk/mcs/; revision=11833
2003-02-22 17:04:47 +00:00
Martin Baulig aaaac0ba68 2003-02-22 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile.FindMethod): Fixed a bug.
	(MonoSymbolFile.MethodLookup): New method.

svn path=/trunk/mcs/; revision=11832
2003-02-22 17:03:22 +00:00
Jackson Harper 91f02c5320 * Driver.cs: Add version option, fix bug that allowed -- switches to be invoked with /-
svn path=/trunk/mcs/; revision=11831
2003-02-22 16:25:32 +00:00
Alexandre Pigolkine e1eaf58f4b few test files deletes, new will be added
svn path=/trunk/mcs/; revision=11829
2003-02-22 09:20:52 +00:00
Tim Coleman 842cca7222 2003-02-21 Tim Coleman <[email protected]>
* System.Data.OracleClient/OracleDateTime.cs:
        * System.Data.OracleClient/OracleInfoMessageEventArgs.cs:
        * System.Data.OracleClient/OracleInfoMessageEventHandler.cs:
        * System.Data.OracleClient/OracleMonthSpan.cs:
        * System.Data.OracleClient/OraclePermission.cs:
        * System.Data.OracleClient/OraclePermissionAttribute.cs:
        * System.Data.OracleClient/OracleTimeSpan.cs:
        * System.Data.OracleClient.Oci/IOciDescriptorHandle.cs:
        * System.Data.OracleClient.Oci/OciDescriptorHandle.cs:
        * System.Data.OracleClient.Oci/OciLobLocator.cs:
                New classes added.  Some based on .NET docs,
                others (internal) based on getting some LOB
                support (doesn't actually work yet).
        * list:
                Add new files
        * System.Data.OracleClient/OracleBFile.cs:
        * System.Data.OracleClient/OracleBinary.cs:
        * System.Data.OracleClient/OracleLob.cs:
        * System.Data.OracleClient/OracleNumber.cs:
        * System.Data.OracleClient/OracleString.cs:
                Change handling of NULL object based on new
                discovery.
        * System.Data.OracleClient/OracleCommand.cs:
        * System.Data.OracleClient/OracleDataReader.cs:
                Typo fix.
        * System.Data.OracleClient.Oci/OciDefineHandle.cs:
        * System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
                Add some code to handle LOBs.  Still more to
                come.
        * Test/TestOracleClient.cs:
                New test for LOB added.

svn path=/trunk/mcs/; revision=11828
2003-02-22 08:53:02 +00:00
Jackson Harper 9aa0e78f63 * AssemblyInfo.cs: Add file
* makefile: Add AssemblyInfo to build
       * makefile.gnu: Add AssemblyInfo to build

svn path=/trunk/mcs/; revision=11826
2003-02-22 05:45:03 +00:00
Jackson Harper 524bab53fa * Section.cs: Add Method to write Headers
svn path=/trunk/mcs/; revision=11825
2003-02-22 05:24:32 +00:00
Jackson Harper 027fda3a99 * Section.cs: Make Read method safe
svn path=/trunk/mcs/; revision=11822
2003-02-22 03:24:35 +00:00
Miguel de Icaza 8cbfe36eab Adding this patch on behalf of Patrik, as he does not have CVS access,
and this in fact fixes appdomain2 and remoting4 tests.

svn path=/trunk/mono/; revision=11819
2003-02-21 23:45:03 +00:00
Alexandre Pigolkine ba3d71a09e implementation added
svn path=/trunk/mcs/; revision=11817
2003-02-21 22:54:41 +00:00
Alexandre Pigolkine 24d300a580 small changes to be able to run SWF apps
svn path=/trunk/mcs/; revision=11815
2003-02-21 22:48:53 +00:00
Zoltan Varga b309a721a2 2003-02-21 Zoltan Varga <[email protected]>
* object.h icall.c process.c: fix warnings.

svn path=/trunk/mono/; revision=11814
2003-02-21 22:42:16 +00:00
Zoltan Varga f172b9782a 2003-02-21 Zoltan Varga <[email protected]>
* appdomain.h appdomain.c:
	(mono_domain_try_type_resolve): split the
	name_or_tb argument into a name and a tb argument.
	(mono_domain_has_type_resolve): new function to check whenever the
	application has registered a TypeResolve event handler.

	* icall.c reflection.h reflection.c: move the type resolve logic into
	mono_reflection_get_type () so it will be invoked when
	Assembly::GetType () is called.

	* reflection.c:
	(mono_reflection_get_type): renamed to get_type_internal.
	(mono_reflection_get_type): fixed type name generation so it works
	for nested types too.
	(mono_reflection_get_type): call has_type_resolve () to avoid the
	costly type name generation if there is no resolve event handler.

svn path=/trunk/mono/; revision=11813
2003-02-21 22:25:46 +00:00
Miguel de Icaza 852c8a4c09 Add Ilasm to the distro
svn path=/trunk/mono/; revision=11812
2003-02-21 22:24:02 +00:00
Miguel de Icaza b4d16bcbae flush docs
svn path=/trunk/mono/; revision=11811
2003-02-21 22:05:07 +00:00
Miguel de Icaza cf02ffd0b0 Just a small change
svn path=/trunk/mono/; revision=11810
2003-02-21 22:04:49 +00:00
Dick Porter 311cbb1af3 2003-02-21 Dick Porter <[email protected]>
* processes.c (GetCurrentProcessId): Use the current process
	handle to return the process ID, as getpid() is unreliable
	(linuxthreads gives each thread a different pid).  Fixes bug
	37550.

svn path=/trunk/mono/; revision=11804
2003-02-21 13:22:10 +00:00
Dick Porter 476a6daeab 2003-02-21 Dick Porter <[email protected]>
* FileStream.cs: Use locks around buffer manipulations.  Fixes bug
	32344

svn path=/trunk/mcs/; revision=11803
2003-02-21 12:22:59 +00:00
Dick Porter b52cdf8dfa 2003-02-21 Dick Porter <[email protected]>
* io.c (FindNextFile): Skip over dangling symlinks.  Fixes bug
	34076.

svn path=/trunk/mono/; revision=11802
2003-02-21 12:20:47 +00:00
Miguel de Icaza 6a5eb47932 Add linker flags to the mono.pc.in to include the -lpthread in a pkg-config
invocation for the Mono runtime.

Dick and Paolo reported:

	pthread remappes the sigrtmin signal, so it needs to be loaded from the start of the lifetime of the app

svn path=/trunk/mono/; revision=11801
2003-02-21 11:28:10 +00:00
Paolo Molaro 94a679522d Fri Feb 21 11:36:57 CET 2003 Paolo Molaro <[email protected]>
* class.c, image.c: load exported types from file references.

svn path=/trunk/mono/; revision=11800
2003-02-21 10:41:33 +00:00
Jackson Harper 28e6515ea5 * Section.cs: Convert Header to a class and lowers it accesability.
svn path=/trunk/mcs/; revision=11799
2003-02-21 08:30:51 +00:00
Jackson Harper 24ec98a874 ChangeLog
svn path=/trunk/mcs/; revision=11798
2003-02-21 08:25:30 +00:00
Jackson Harper a3f2cdadc7 * MDStream.cs: Make Header a class and use a Read method to load it. Because it is no longer
being loaded by a utility method I can lower some accesibility levels.

svn path=/trunk/mcs/; revision=11797
2003-02-21 07:26:03 +00:00
Tim Coleman 0b62244267 2003-02-20 Tim Coleman <[email protected]>
* System.Data.OracleClient/OracleBFile.cs:
        * System.Data.OracleClient/OracleBinary.cs:
        * System.Data.OracleClient/OracleBoolean.cs:
        * System.Data.OracleClient/OracleLob.cs:
        * System.Data.OracleClient/OracleLobOpenMode.cs:
        * System.Data.OracleClient/OracleNumber.cs:
        * list:
                New class stubs added
        * System.Data.OracleClient/OracleCommand.cs:
        * System.Data.OracleClient/OracleDataReader.cs:
                Minor touch-ups
        * Test/TestOracleClient.cs:
                Add required Prepare () call in parameter test.

svn path=/trunk/mcs/; revision=11793
2003-02-21 04:50:08 +00:00
Nick Drochak 8267161d5e 2003/02/21 Nick Drochak <[email protected]>
* EnumTest.cs: Add test for bug 38452 (Parsing numeric enum values).

svn path=/trunk/mcs/; revision=11792
2003-02-21 03:52:05 +00:00
Nick Drochak e1f80efa82 Flush
svn path=/trunk/mcs/; revision=11789
2003-02-21 02:51:07 +00:00
Miguel de Icaza aab8ac62b5 Fix from Marcus Urban to bug #38452
svn path=/trunk/mcs/; revision=11788
2003-02-21 02:48:57 +00:00
Miguel de Icaza 9411f86182 Update news; Paolo and Gonzalo
svn path=/trunk/mono/; revision=11783
2003-02-20 19:49:44 +00:00
Dick Porter 5c113d5c22 Need to request optimisation on windows build to get "extern inline"
functions.

svn path=/trunk/mono/; revision=11778
2003-02-20 15:06:57 +00:00
Nick Drochak 353a8c5442 2003-02-20 Nick Drochak <[email protected]>
* ByteTest.cs: Isolate test for mcs 'checked' bug.

svn path=/trunk/mcs/; revision=11776
2003-02-20 10:36:28 +00:00
Nick Drochak ad5dfadf0c 2003-02-20 Nick Drochak <[email protected]>
* XslTransform.cs: Remove confusing and unused parameter.

svn path=/trunk/mcs/; revision=11775
2003-02-20 10:32:48 +00:00
Miguel de Icaza 8476e0b206 2003-02-01 Miguel de Icaza <[email protected]>
* Uri.cs (LocalPath): Local path should return un-escaped
	strings.  Patch from [email protected] (Thong (Tum) Nguyen)

svn path=/trunk/mcs/; revision=11773
2003-02-20 07:21:10 +00:00
Miguel de Icaza 77dd78f6a2 Just a comment
svn path=/trunk/mcs/; revision=11772
2003-02-20 07:20:31 +00:00
Miguel de Icaza 0f06dfdd00 Add new Microsoft.VisualC assembly
svn path=/trunk/mcs/; revision=11771
2003-02-20 07:17:00 +00:00
Miguel de Icaza a30e285862 Add Microsoft.VisualC makefile
svn path=/trunk/mcs/; revision=11770
2003-02-20 07:15:49 +00:00
Miguel de Icaza 38efc26107 2003-02-20 Alfonso Ali <[email protected]>
* CodeGenerator.cs: Generates the entry point method.

svn path=/trunk/mcs/; revision=11769
2003-02-20 07:03:25 +00:00
Sebastien Pouliot 74a87fcfc7 2003-02-19 Sebastien Pouliot <[email protected]>
* AllTests.cs: Removed. No more required with NUnit2.
	* makefile.gnu, security_linux_test.args: untested makefile
	* System.Security_test.build: Updated for NUnit2.

svn path=/trunk/mcs/; revision=11755
2003-02-20 02:08:43 +00:00
Sebastien Pouliot e357665885 2003-02-19 Sebastien Pouliot <[email protected]>
* All: Updated tests for NUnit2. Some big tests where splited in
	smaller ones.
	* XmlDsigC14NTransformTest.cs: New, but almost empty, test suite.
	* XmlDsigC14NWithCommentsTransformTest.cs: New, but almost empty,
	test suite.

svn path=/trunk/mcs/; revision=11751
2003-02-20 00:55:52 +00:00
Sebastien Pouliot 355327100c 2003-02-19 Sebastien Pouliot <[email protected]>
* All: Corrected class indentation, minor fixes, added many MonoTODO (so class status
	will reflect reality).

svn path=/trunk/mcs/; revision=11750
2003-02-20 00:49:58 +00:00
Christopher Bockner 7738b02267 Added a describe function so that parameters can get their information from DB2.
svn path=/trunk/mcs/; revision=11748
2003-02-19 21:48:37 +00:00
Christopher Bockner bbf13e603c Added parameter Describe functionality.
svn path=/trunk/mcs/; revision=11746
2003-02-19 21:47:02 +00:00
Ville Palo 277c94c8c3 2003-02-19 Ville Palo <[email protected]>
* DataTable.cs: DataTable.CaseSensitive follows parent
	DataSet.CaseSensitive property if DataTable.CaseSensitive has never
	been changed directly from DataTable

svn path=/trunk/mcs/; revision=11744
2003-02-19 19:26:48 +00:00
Gonzalo Paniagua Javier ffd5f68616 Return the default context when no context set. Thanks to Patrik.
svn path=/trunk/mcs/; revision=11740
2003-02-19 18:26:06 +00:00
Ville Palo 6822d1d620 2003-02-19 Ville Palo <[email protected]>
* DataSet.cs: When CaseSensitive property is changed all of the Tables
	of DataSet have to change too

svn path=/trunk/mcs/; revision=11739
2003-02-19 18:23:43 +00:00
Gonzalo Paniagua Javier 3f904f5033 added 'clean' target
svn path=/trunk/mcs/; revision=11738
2003-02-19 17:52:56 +00:00
Gonzalo Paniagua Javier 81f0febea2 2003-02-19 Gonzalo Paniagua Javier <[email protected]>
* MethodCall.cs:
	(MethodBase): resolve the method if it's not already done.

svn path=/trunk/mcs/; revision=11737
2003-02-19 17:01:54 +00:00
Gonzalo Paniagua Javier 8b51478ae5 2003-02-19 Gonzalo Paniagua Javier <[email protected]>
* AppDomain.cs: check for null in Unload and changed method name.

svn path=/trunk/mcs/; revision=11736
2003-02-19 16:53:02 +00:00
Gonzalo Paniagua Javier 4a1fb62925 2003-02-19 Gonzalo Paniagua Javier <[email protected]>
* Thread.cs: implemented CurrentContext.

svn path=/trunk/mcs/; revision=11735
2003-02-19 16:49:29 +00:00
Miguel de Icaza d89a7fb835 Flush
svn path=/trunk/mono/; revision=11734
2003-02-19 16:48:29 +00:00
Gonzalo Paniagua Javier a9d3913a6c 2003-02-19 Gonzalo Paniagua Javier <[email protected]>
* Latin1Encoding.cs: added Serializable attribute.

svn path=/trunk/mcs/; revision=11733
2003-02-19 16:47:51 +00:00
Miguel de Icaza a405284d0e Pending changes
svn path=/trunk/mono/; revision=11732
2003-02-19 16:40:36 +00:00
Tim Coleman f0e7f36bad 2003-02-19 Tim Coleman <[email protected]>
* oracle: update oracle status page

svn path=/trunk/mono/; revision=11731
2003-02-19 16:36:34 +00:00
Gonzalo Paniagua Javier 92dfad552e 2003-02-19 Gonzalo Paniagua Javier <[email protected]>
* TargetInvocationException.cs: added serialization ctor.

svn path=/trunk/mcs/; revision=11730
2003-02-19 16:12:10 +00:00
Paolo Molaro 8a93fa7496 Fix field placement in MonoVTable.
svn path=/trunk/mono/; revision=11729
2003-02-19 14:16:12 +00:00
Rafael Teixeira 610816668b 2003/02/19 Rafael Teixeira <[email protected]>
* mb-parser.jay : eliminated reduce/reduce conflict on duplicated rank_specifier rule
	  by renaming the one using brackets to bracketed_rank_specifier

svn path=/trunk/mcs/; revision=11728
2003-02-19 13:44:45 +00:00
Lluis Sanchez b65f8ff197 * RealProxy.cs: Changed constructor to allow only ClientIdentity instances.
* RemotingProxy.cs: Added new constructor for client activated objects.
	  Added method that handles construction messages.

svn path=/trunk/mcs/; revision=11727
2003-02-19 12:39:39 +00:00
Lluis Sanchez 5c132ca21d * IInternalMessage.cs: Added. Provides some useful methods for method messages.
* ServerContextTerminatorSink.cs: Added support for construction messages.
	* MethodCall.cs: Implemented serialization support. Added support for IInternalMessage.
	* MethodDictionary.cs: Added support for IInternalMessage.
	* MethodResponse.cs: Added serialization support. Added support for IInternalMessage.
	* MonoMethodMessage.cs: Added support for IInternalMessage.
	* ReturnMessage.cs: Added support for IInternalMessage.
	* ClientContextTerminatorSink.cs: Added.
	* ConstructionCall.cs: Added.
	* ConstructionCallDictionary.cs: Added.
	* ConstructionResponse.cs: Added.
	* EnvoyTerminatorSink.cs: Added.

svn path=/trunk/mcs/; revision=11726
2003-02-19 12:38:28 +00:00
Lluis Sanchez f929ec50c4 * Contexts.cs : Added methods for getting the client context sink chain and the
envoy sink chain. Also added stub methods for context switch and creation.
	* CrossContextChannel.cs : Added.

svn path=/trunk/mcs/; revision=11725
2003-02-19 12:37:48 +00:00
Lluis Sanchez c99ad0afa1 * ChannelServices.cs: Added static property for getting the CrossContextChannel.
svn path=/trunk/mcs/; revision=11724
2003-02-19 12:37:19 +00:00
Lluis Sanchez 9304566e82 * RemoteActivator.cs: Instance creation implemented.
* ActivationServices.cs: Added.

svn path=/trunk/mcs/; revision=11723
2003-02-19 12:36:33 +00:00
Lluis Sanchez 367bc2553f * Identity.cs: Added envoy message sink.
* ObjRef.cs: Implemented EnvoySink property
	* RemotingConfiguration.cs: now enables proxy creation for types registered
	  as ClientActivatedType or WellKnownClientType.
	* RemotingServices.cs: Added support for ContextBoundObjects.
	  Added methods for creating proxies.
	* ServerIdentity.cs: Added initialization of envoy sink.
	* EnvoyInfo.cs: Added. It is an implementation on IEnvoyInfo.

svn path=/trunk/mcs/; revision=11722
2003-02-19 12:36:01 +00:00
Lluis Sanchez 1d01e9761b * appdomain.h: Added in MonoDomain a couple of MonoMethod* variables
used to cache the managed methods used to create proxies and make
	  remote invocation of methods.
	* class.h: Added in MonoVTable a flag to indicate that a class needs
	  to be remotely created.
	* object.c: Modified the method mono_class_vtable(). It now initializes
	  the remote flag of the vtable. Modified mono_object_new_specific(),
	  so now it checks the remote flag.
	* icall.c: Added a couple of internal methods, one for enabling instance
	  creation interception for a type, and one for creating objects bypassing
	  the remote check.

svn path=/trunk/mono/; revision=11721
2003-02-19 12:32:54 +00:00
Daniel Morgan 65225813d4 2003-02-19 Daniel Morgan <[email protected]>
* InternalDataCollectionBase.cs: revert change to field
	to fix build

	* DataViewManager.cs
	* DataView.cs
	* DataTable.cs
	* DataSet.cs: commented use of DesignerAttribute
	because it broke the build.  According to MSDN,
	DesignerAttribute does not have a zero-argument constructor

svn path=/trunk/mcs/; revision=11716
2003-02-19 07:06:50 +00:00
Tim Coleman 7aa6feb8b4 2003-02-18 Tim Coleman <[email protected]>
* System.Data.OracleClient/OciBindHandle.cs:
        * list:
                Add new class
        * System.Data.OracleClient/OracleCommand.cs:
                Add transaction logic for rollback/commit,
                attaching to oracle service context, and a
                couple of test cases.
                Add Parameter handling
        * System.Data.OracleClient/OracleDataReader.cs:
                Change GetValue call
        * System.Data.OracleClient/OracleParameter.cs:
                Make this work
        * System.Data.OracleClient/OracleType.cs:
                Add values to enum
        * System.Data.OracleClient.Oci/OciDefineHandle.cs:
                Add GetValue call which is used by data reader
        * System.Data.OracleClient.Oci/OciStatementHandle.cs:
                Add parameter logic
        * Test/TestOracleClient.cs:
                Add some new test cases.

svn path=/trunk/mcs/; revision=11709
2003-02-19 02:46:22 +00:00
Miguel de Icaza 06d6192295 2003-02-18 Miguel de Icaza <[email protected]>
* class.cs: Changed all the various members that can be part of a
	class from being an ArrayList to be an Array of the right type.
	During the DefineType type_list, interface_list, delegate_list and
	enum_list are turned into types, interfaces, delegates and enums
	arrays.

	And during the member population, indexer_list, event_list,
	constant_list, field_list, instance_constructor_list, method_list,
	operator_list and property_list are turned into their real arrays.

	Although we could probably perform this operation earlier, for
	good error reporting we need to keep the lists and remove the
	lists for longer than required.

	This optimization was triggered by Paolo profiling the compiler
	speed on the output of `gen-sample-program.pl' perl script.

	* decl.cs (DeclSpace.ResolveType): Set the ContainerType, so we do
	not crash in methods like MemberLookupFailed that use this field.

	This problem arises when the compiler fails to resolve a type
	during interface type definition for example.

svn path=/trunk/mcs/; revision=11708
2003-02-19 00:01:33 +00:00
Miguel de Icaza 20a2b89c9a Add another test file
svn path=/trunk/mcs/; revision=11707
2003-02-18 23:26:15 +00:00
Martin Baulig e80a798592 2003-02-18 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (monoSymbolFile.GetMethod): Added overloaded
	version which takes a MethodBase.

svn path=/trunk/mcs/; revision=11704
2003-02-18 19:43:56 +00:00
Martin Baulig 2dc8d4a396 2003-02-18 Martin Baulig <[email protected]>
* Assembly.cs (MonoDebugger_GetMethodToken): New method to get a
	method's metadata token.

svn path=/trunk/mcs/; revision=11703
2003-02-18 19:43:08 +00:00
Martin Baulig 56cacad31a 2003-02-18 Martin Baulig <[email protected]>
* debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethodToken):
	New interncall to get a method's metadata token.

	* icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethodToken"):
	New interncall for the debugger.

svn path=/trunk/mono/; revision=11702
2003-02-18 19:42:04 +00:00
Martin Baulig 2e29242d2f Reflect latest API changes.
svn path=/trunk/mono/; revision=11701
2003-02-18 19:33:10 +00:00
Martin Baulig 45585130de 2003-02-18 Martin Baulig <[email protected]>
* MonoSymbolTable.cs (MethodIndexEntry): New public struct.

	* MonoSymbolFile.cs (MonoSymbolFile.GetMethodByToken): New method.

svn path=/trunk/mcs/; revision=11700
2003-02-18 19:32:12 +00:00
Atsushi Eno a2815032ab 2003-02-19 Atsushi Enomoto <[email protected]>
* XmlSchemaAnnotation.cs : expect the correct closing tag on <appinfo>
		and <documentation> elements. (patch by Peter Pentchev)
	* XmlSchemaObjectEnumerator.cs : cast properly to XmlSchemaObject
		instead of XmlSchema. (patch by Peter Pentchev)

svn path=/trunk/mcs/; revision=11699
2003-02-18 18:17:45 +00:00
Gonzalo Paniagua Javier 20e4eb747e 2003-02-18 Gonzalo Paniagua Javier <[email protected]>
* MonoCustomAttrs.cs: fixed bug #38238.

svn path=/trunk/mcs/; revision=11698
2003-02-18 17:58:15 +00:00
Ville Palo e9fe7d0fd2 2003-02-18 Ville Palo <[email protected]>
* DataColumnCollectin.cs: Little fix for indexer and case sensitivity

svn path=/trunk/mcs/; revision=11697
2003-02-18 17:51:15 +00:00
Alan Tam 4de81b55de 2003-02-18 Alan Tam <[email protected]>
* list.unix (): Add DesignerCategoryAttribute.cs

svn path=/trunk/mcs/; revision=11695
2003-02-18 16:20:48 +00:00
Alan Tam 6f09056d0d 2003-02-18 Alan Tam <[email protected]>
* DataRow.cs: Implemented GetParentRow and GetParentRows.
	* DataSet.cs: Added stub for HasChanges, InferXmlSchema,
		      OnPropertyChanging, OnRemoveRelation, OnRemoveTable,
		      RaisePropertyChanging.
	* DataTable.cs: Implemented NewRowArray.
	* DataTablePropertyDescriptor: Fixed a modifier.
	* InternalDataCollectionBase.cs: Fixed modifiers. Implemented SyncRoot.
	* PropertyCollection.cs: Minor fix.
	* ConstraintCollection.cs DataColumn.cs DataColumnCollection.cs
	* DataRelation.cs DataRelationCollection.cs DataRow.cs
	* DataRowCollection.cs DataRowState.cs DataSet.cs DataTable.cs
	* DataTableCollection.cs DataTablePropertyDescriptor.cs DataView.cs
	* DataViewManager.cs DataViewRowState.cs DataViewSettingCollection.cs
	* ForeignKeyConstraint.cs InternalDataCollectionBase.cs
	* PropertyCollection.cs UniqueConstraint.cs

svn path=/trunk/mcs/; revision=11694
2003-02-18 15:09:50 +00:00
Dick Porter 3e5a13b411 2003-02-18 Dick Porter <[email protected]>
* FileStream.cs: Make FileMode.Append work, and check for Seeking
	back over old data (undocumented ms behaviour, throws an exception
	if you try).  Fixes bug 35975.

svn path=/trunk/mcs/; revision=11693
2003-02-18 15:01:16 +00:00
Jonathan Pryor 78c15f1e87 Fix Spelling Error.
Reported by Torsten Rendelmann <[email protected]>.

svn path=/trunk/mcs/; revision=11692
2003-02-18 11:52:28 +00:00
Rafael Teixeira 9ae5293e0f Marco comments included on mb-parser.jay
svn path=/trunk/mcs/; revision=11691
2003-02-18 11:40:53 +00:00
Dietmar Maurer cbb31f44a7 2003-02-18 Dietmar Maurer <[email protected]>
* class.c (mono_class_setup_vtable): allocate supertype array

svn path=/trunk/mono/; revision=11690
2003-02-18 11:04:56 +00:00
Martin Baulig cfbeb5ad01 2003-02-18 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile.Assembly): New public property.

	* MonoSymbolTable.cs (MethodEntry.MethodBase): New public property.
	(MethodEntry.LocalTypes): New public variable.

svn path=/trunk/mcs/; revision=11688
2003-02-18 10:23:22 +00:00
Martin Baulig c36260bab4 2003-02-18 Martin Baulig <[email protected]>
* debug-mono-symfile.h (MonoSymbolFileMethodAddress): Added `has_this'.

svn path=/trunk/mono/; revision=11686
2003-02-18 10:09:33 +00:00
Martin Baulig 29657db467 2003-02-18 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MethodEntry.ThisTypeIndex): Renamed to
	ClassTypeIndex; provide this for all methods so we can get the
	class of static methods.

svn path=/trunk/mcs/; revision=11685
2003-02-18 10:08:21 +00:00
Jackson Harper fd621002ea forgot ChangeLog savation ;-)
svn path=/trunk/mcs/; revision=11684
2003-02-18 07:21:56 +00:00
Jackson Harper a9e1f121ad * COFFHeader.cs: Convert to class, use Read and Write methods.
Compress some code
        * CheckSum.cs: Access Lfanew through property not field.
        * CorHeader.cs: Convert to class, use Read and Write methods.
        * DOSHeader.cs: Convert to class, use Read and Write methods,
	                and Init method for creating new DOSHeaders
        * DataDir.cs: Convert to class, use Read and Write methods.
        * Image.cs: Access lfanew through property, add Write method.
        * PEHeader.cs: Convert to class, use Read and Write methods.
        * PEUtils.cs: Add GetString method for converting byte pointers
	             to strings.
        * RVA.cs: Add Write method
        * Section.cs: Use PEUtils.GetString method instead of new string (byte*)
        * makefuile.gnu: Compile all the files I want compiled ;-)

svn path=/trunk/mcs/; revision=11683
2003-02-18 07:18:00 +00:00
Jackson Harper 5f7d8d9976 * MDStream.cs: Use PEUtils.GetString instead of new string (byte*)
* Rows.cs: Cast a bunch of enums to int when displaying
		   them otherwise an Exception is thrown.,
                   this is probably a bug but I haven't had
		   time to track it down yet.
        * StringHeap.cs: Use PEUtils.GetString instead of new string (byte*)

svn path=/trunk/mcs/; revision=11682
2003-02-18 07:16:00 +00:00
Jackson Harper 3035378a39 * mddump.cs: Comment out some stuff that does not need to be seen.
svn path=/trunk/mcs/; revision=11681
2003-02-18 07:14:37 +00:00
Miguel de Icaza e3d6141747 Fix
svn path=/trunk/mono/; revision=11680
2003-02-18 07:14:14 +00:00
Miguel de Icaza 3ef3b0d330 Fix
svn path=/trunk/mono/; revision=11679
2003-02-18 07:11:05 +00:00
Gaurav Vaish 594b7c1434 2003-02-18 Gaurav Vaish <gvaish_mono AT lycos.com>
* MobileListItem.cs      : SetIndex(int)       - Stubbed.
	* MobileListItemCollection.cs
	                         : Completed stub-ing.

svn path=/trunk/mcs/; revision=11678
2003-02-18 07:05:04 +00:00
Miguel de Icaza 4cc45d2981 Fix
svn path=/trunk/mono/; revision=11677
2003-02-18 07:04:11 +00:00
Miguel de Icaza dc7291f347 fix
svn path=/trunk/mono/; revision=11675
2003-02-18 06:56:40 +00:00
Miguel de Icaza d735ab1a60 Flush
svn path=/trunk/mono/; revision=11673
2003-02-18 06:46:42 +00:00
Daniel Morgan 6a75e837b8 2003-02-18 Daniel Morgan <[email protected]>
* DataTableRelationCollection.cs: removed file
	because its internally in file DataRelationCollection.cs

2003-02-18  Alan Tam <[email protected]>

	* DataRelation.cs: Added storage required to hold the relations.
	  Checking of constraints are not implemented yet.
	* DataRelationCollection.cs: Implemented DataSetRelationCollection
	  and DataTableRelationCollection, both as inner class of the abstract class
	  DataRelationCollection (like Microsoft although not documented in ECMA).
	* DataRow.cs: Implemented GetChildRows in a extremely slow way.
	  Need to implement caching like Microsoft later.
	* DataSet.cs: Uncomment DataRelation related members. Uncomment
	  code for Nested XML. Implemented WriteTable(XmlWriter, DataRow[],
	  XmlWriteMode) for use of Nested XML. Fixed a wrong modifier in
	  GetSerializationData.
	* DataTable.cs: Uncomment DataRelation related members.

svn path=/trunk/mcs/; revision=11670
2003-02-18 06:14:54 +00:00
Tim Coleman a3aee1c872 2003-02-18 Tim Coleman <[email protected]>
* System.Data.OracleClient/OracleCommand.cs:
        * System.Data.OracleClient/OracleTransaction.cs:
        * System.Data.OracleClient.Oci/OciTransactionHandle.cs:
        * Test/TestOracleClient.cs:
                Add transaction logic for rollback/commit,
                attaching to oracle service context, and a
                couple of test cases.

svn path=/trunk/mcs/; revision=11669
2003-02-18 05:32:32 +00:00
Miguel de Icaza 376031a3fd remove fixed directive
svn path=/trunk/mono/; revision=11668
2003-02-18 05:26:21 +00:00
Tim Coleman c6d5150769 2003-02-17 Tim Coleman <[email protected]>
* Test/TestOracleClient.cs:
                Add OracleDataAdapter test.

svn path=/trunk/mcs/; revision=11667
2003-02-18 04:28:30 +00:00
Tim Coleman b4aff94ab6 2003-02-17 Tim Coleman <[email protected]>
* System.Data.OracleClient/OracleDataReader.cs:
		changes to make it work with the oracle data adapter

svn path=/trunk/mcs/; revision=11666
2003-02-18 04:17:02 +00:00
Tim Coleman c945e6ce62 2003-02-17 Tim Coleman <[email protected]>
* System.Data.OracleClient/OciDefineHandle.cs:
		Remove OCIDateGetDate

svn path=/trunk/mcs/; revision=11665
2003-02-18 03:42:39 +00:00
Tim Coleman c5fd5f9344 2003-02-17 Tim Coleman <[email protected]>
* System.Data.OracleClient/OracleDataAdapter.cs:
        * System.Data.OracleClient/OracleRowUpdatedEventArgs.cs:
        * System.Data.OracleClient/OracleRowUpdatedEventHandler.cs:
        * System.Data.OracleClient/OracleRowUpdatingEventArgs.cs:
        * System.Data.OracleClient/OracleRowUpdatingEventHandler.cs:
        * list:
                New classes added.
        * System.Data.OracleClient/OracleDataReader.cs:
        * System.Data.OracleClient.Oci/OciDefineHandle.cs:
                Add handling for number and date types in OracleDataReader
                GetValue

svn path=/trunk/mcs/; revision=11664
2003-02-18 03:31:43 +00:00
Lluis Sanchez 032fcf581e * MessageFormatter.cs: Fixed bug in serialization of arguments.
* ObjectReader.cs: Fixed bug causing array of structs to fail.

svn path=/trunk/mcs/; revision=11661
2003-02-18 00:51:52 +00:00
Lluis Sanchez a7a4e09ae6 * ObjectManager.cs: Corrected a problem with arrays of structs. Elements where
not correctly updated by the final fixup.

svn path=/trunk/mcs/; revision=11660
2003-02-18 00:51:24 +00:00
Gonzalo Paniagua Javier 9c96dc9de2 2003-02-18 Gonzalo Paniagua Javier <[email protected]>
* XmlDocument.cs:
	(Load (string)): hack to workaround some issues with Uri.Parse. Once
	Parse is fixed, remove the hack.

svn path=/trunk/mcs/; revision=11659
2003-02-18 00:46:26 +00:00
Miguel de Icaza ca9e6be887 Flush
svn path=/trunk/mono/; revision=11654
2003-02-17 21:27:20 +00:00
Miguel de Icaza 06533c0a67 Flush
svn path=/trunk/mcs/; revision=11654
2003-02-17 21:27:20 +00:00
Gonzalo Paniagua Javier 5005bcfc48 2003-02-17 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplicationFactory.cs: Global.asax takes precedence
	over global.asax if it exists.

	* System.Web/HttpRequest.cs: use allowCrossAppMapping in MapPath.

	* System.Web.Hosting/AppDomainFactory.cs: Web.config takes precedence
	over web.config.

	* System.Web.Hosting/ApplicationHost.cs: removed hacks to work around
	an old bug.

svn path=/trunk/mcs/; revision=11649
2003-02-17 20:54:24 +00:00
Gonzalo Paniagua Javier 45a8d661be 2003-02-17 Gonzalo Paniagua Javier <[email protected]>
* NetworkStream.cs: allow 0 size array in Write.

svn path=/trunk/mcs/; revision=11648
2003-02-17 20:23:26 +00:00
Martin Baulig 729a1d22ba 2003-02-17 Martin Baulig <[email protected]>
* jit.c (mono_jit_compile_method): Don't emit a `nop' at the start
	of each method.

svn path=/trunk/mono/; revision=11645
2003-02-17 17:56:33 +00:00
Martin Baulig 94fdd07e5d 2003-02-17 Martin Baulig <[email protected]>
* Exception.cs (Exception.ToString): Print a newline between the
	exception message and the stack trace.

svn path=/trunk/mcs/; revision=11644
2003-02-17 17:55:06 +00:00
Gonzalo Paniagua Javier f7aaa744e4 forgot this one
svn path=/trunk/mcs/; revision=11643
2003-02-17 16:28:09 +00:00
Gonzalo Paniagua Javier dcd2278d3f 2003-02-17 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs: CreateHttpHandler is now internal.

	* System.Web/HttpRequest.cs: allow setting QueryStringRaw, which
	invalidates the data obtained from the previous value. Added internal
	SetFilePath method.

	* System.Web/HttpServerUtility.cs: implemented Execute and GetLastError.

	* System.Web.Configuration/HandlerFactoryConfiguration.cs: first search
	in the mappings of this instance, then in the parent.

svn path=/trunk/mcs/; revision=11642
2003-02-17 16:22:26 +00:00
Dick Porter 186fc816f7 2003-02-17 Dick Porter <[email protected]>
* FileStream.cs: Don't close the handle if the stream doesn't own
	it.  Patch from Raymond Penners ([email protected]), bug
	35623.

svn path=/trunk/mcs/; revision=11641
2003-02-17 16:15:37 +00:00
Gonzalo Paniagua Javier b64f5b2c6c 2003-02-17 Gonzalo Paniagua Javier <[email protected]>
* reflection.c:
	(assembly_name_to_aname): jump over unknown properties (i've found
	something like: 'type, assembly, version=xxx, custom=null, public...',
	so now will ignore custom=null and still get the rest of the values).

svn path=/trunk/mono/; revision=11640
2003-02-17 15:55:21 +00:00
Daniel Morgan 192ac46f0a 2003-02-17 Daniel Morgan <[email protected]>
* doc/provider-factory: add new web page
	about Mono.Data's ProviderFactory

	* doc/web/commands
	* doc/web/makefile: add provider-factory web page to build

	* doc/ado-net
	* doc/ibmdb2
	* doc/postgresql
	* doc/sqlclient
	* doc/tdsclient
	* doc/sybase
	* doc/mysql
	* doc/firebird
	* doc/oracle
	* doc/oledb
	* doc/odbc
	* doc/sqlite: updated web pages

svn path=/trunk/mono/; revision=11639
2003-02-17 15:03:43 +00:00
Gonzalo Paniagua Javier f369737334 2003-02-17 Gonzalo Paniagua Javier <[email protected]>
* System/AppDomain.cs: implemented GetCurrentThreadId ().
	* System.Threading/Thread.cs: made the thread_id for the current thread
	accesible through an internal property.

svn path=/trunk/mcs/; revision=11638
2003-02-17 14:46:34 +00:00
Dick Porter d6c9704a79 2003-02-17 Dick Porter <[email protected]>
* threads.c: Have Thread.Start() wait for a semaphore to signal
	that the thread has set up all its local data.  This fixes bug
	34323, where Abort() raced the new thread's TLS data.

	Also removes the handle_store() call from start_wrapper, because
	threads are now always created suspended and there is no longer a
	race between the parent and child threads to store the info.

svn path=/trunk/mono/; revision=11637
2003-02-17 13:44:29 +00:00
Dick Porter 85be35cf99 2003-02-17 Dick Porter <[email protected]>
* Thread.cs: Added the Start semaphore field to the class.  Update
	the thread state after Start() has returned, not before.

svn path=/trunk/mcs/; revision=11636
2003-02-17 13:43:53 +00:00
Paolo Molaro 259fd130e0 Mon Feb 17 13:13:31 CET 2003 Paolo Molaro <[email protected]>
* image.c: explain the #- heap issue in a message, hopefully
	avoiding FAQs on mono-list.

svn path=/trunk/mono/; revision=11635
2003-02-17 12:17:56 +00:00
Nick Drochak 91bb988c97 2003-02-17 Nick Drochak <[email protected]>
* WebClient.cs : Implemented Credentials property.

svn path=/trunk/mcs/; revision=11634
2003-02-17 09:14:19 +00:00
Gonzalo Paniagua Javier 97879b91b7 2003-02-17 Gonzalo Paniagua Javier <[email protected]>
* HttpServerUtility.cs: style.

svn path=/trunk/mcs/; revision=11633
2003-02-17 08:06:51 +00:00
Gonzalo Paniagua Javier f16558ea6d 2003-02-17 Gonzalo Paniagua Javier <[email protected]>
* icall.c:
	(GetEntryAssembly): if the domain has not invoked
	AppDomain.ExecuteAssembly yet, return the assembly of the default
	AppDomain.

svn path=/trunk/mono/; revision=11632
2003-02-17 07:03:37 +00:00
Miguel de Icaza b96a55870b Improve test
svn path=/trunk/mcs/; revision=11631
2003-02-17 07:01:16 +00:00
Miguel de Icaza 1a696d51e1 2003-02-17 Miguel de Icaza <[email protected]>
* typemanager.cs (IsSpecialMethod): The correct way of figuring
	out if a method is special is to see if it is declared in a
	property or event, or whether it is one of the predefined operator
	names.   This should fix correctly #36804.

svn path=/trunk/mcs/; revision=11630
2003-02-17 05:16:38 +00:00
Gonzalo Paniagua Javier 58ac3c61d1 2003-02-16 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: make Worker.Connect and Receive work with non-blocking
	sockets. May be Receive* and Send* in Worker need to do the same. I'll
	wait for bug reports. Set IsCompleted to true before invoking the end
	callback. Fixes bug #38136.

svn path=/trunk/mcs/; revision=11629
2003-02-16 22:13:26 +00:00
Lluis Sanchez 022abadb2e Small correction
svn path=/trunk/mcs/; revision=11628
2003-02-16 19:37:32 +00:00
Zoltan Varga 41c0bf5de4 2003-02-16 Zoltan Varga <[email protected]>
* class.c (mono_ldtoken): make it work in dynamic assemblies.

svn path=/trunk/mono/; revision=11627
2003-02-16 17:42:08 +00:00
Daniel Morgan c1c8601025 2003-02-16 Daniel Morgan <[email protected]>
* TdsConnection.cs: - parse data source for 2 possible uses:
	"Server=hostname",
	"Server=hostname,port" and open the connection based on the
	resulting server name and port.

svn path=/trunk/mcs/; revision=11626
2003-02-16 15:13:13 +00:00
Daniel Morgan 0fb926e9ed 2003-02-16 Daniel Morgan <[email protected]>
* SybaseConnection.cs: - parse data source for 2 possible uses:
	"Server=hostname",
	"Server=hostname,port" and open the connection based on the
	resulting server name and port.

svn path=/trunk/mcs/; revision=11625
2003-02-16 15:11:40 +00:00
Daniel Morgan db73cf5f48 2003-02-16 Daniel Morgan <[email protected]>
* TestSqlConnection.cs: added test file
	to test SqlClient, SybaseClient, and TdsClient
	and connections

	* System.Data_test.build: excluded
	TestSqlConnection.cs from NUnit tests

svn path=/trunk/mcs/; revision=11624
2003-02-16 15:08:25 +00:00
Daniel Morgan 4af8156695 2003-02-16 Daniel Morgan <[email protected]>
* ChangeLog: added this file

	* SqlConnection.cs: - parse data source for 3 possible uses:
	"Server=hostname",
	"Server=hostname\\instancename",
	"Server=hostname,port" and open the connection based on the
	resulting server name and port.
	- Added support for named instances
	by discovery of the sql server tcp port via the sql monitor (udp port 1434)
	thanks to Phillip Jerkins ([email protected]) contribution.
	Also, thanks to Gonzalo and Tim for their help with timeouts.

svn path=/trunk/mcs/; revision=11623
2003-02-16 14:48:40 +00:00
Atsushi Eno 494777747a 2003-02-16 Atsushi Enomoto <[email protected]>
* XmlDocumentTests.cs: added TestLoadExternalUri
	* XmlTextReaderTests.cs: added TestAttributeWithEntityReference

svn path=/trunk/mcs/; revision=11622
2003-02-16 14:31:47 +00:00
Atsushi Eno beb936e904 2003-02-16 Atsushi Enomoto <[email protected]>
* XmlQualifiedName.cs : fixed GetHashCode() to avoid null reference
	* XmlTextReader.cs : fixed ReadAttributeValue() to handle
		entity reference, and some refactory.

svn path=/trunk/mcs/; revision=11621
2003-02-16 14:31:06 +00:00
Atsushi Eno 16bc71e8f1 2003-02-16 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : WebClient.Credentials was not implemented yet.

svn path=/trunk/mcs/; revision=11620
2003-02-16 12:32:19 +00:00
Paolo Molaro 642da61401 Sun Feb 16 13:10:06 CET 2003 Paolo Molaro <[email protected]>
* metadata.c, reflection.c: simple speedup to type hash
	and equals code.

svn path=/trunk/mono/; revision=11619
2003-02-16 12:14:11 +00:00
Martin Baulig 1408deaa7d 2003-02-16 Martin Baulig <[email protected]>
* doc/jit-debug-sample
	* doc/jit-debug-sample2: Removed.

	* doc/jit-debug: Updated.

svn path=/trunk/mono/; revision=11618
2003-02-16 11:46:23 +00:00
Martin Baulig 1f7a01ccfb 2003-02-16 Martin Baulig <[email protected]>
* docs/compiler: Added a few works about the new `Location' code.

svn path=/trunk/mcs/; revision=11617
2003-02-16 11:21:53 +00:00
Daniel Morgan d1ad4ea6b6 2003-02-16 Daniel Morgan <[email protected]>
* SqlSharpCli.cs: fix typos and when the
	provider is set to oracle, it should default
	to not using the simple reader

svn path=/trunk/mcs/; revision=11616
2003-02-16 10:48:14 +00:00
Daniel Morgan 73e7d1d111 2003-02-16 Daniel Morgan <[email protected]>
* sqlsharpgtk.cs: fixes to get data
	from an Oracle 8i database via
	Mono's System.Data.OracleClient.  It
	can only output the results to the TextView
	because the Oracle provider does not have
	a data adapter yet.

svn path=/trunk/mcs/; revision=11615
2003-02-16 10:44:01 +00:00
Daniel Morgan 1d31585645 2003-02-16 Daniel Morgan <[email protected]>
* System.Data.OracleClient.Oci/OciStatementHandle.cs
	* System.Data.OracleClient.Oci/OciColumnInfo.cs
	* System.Data.OracleClient/OciGlue.cs
	* System.Data.OracleClient/OracleDataReader.cs: fixes
	  to display character data in SQL# command-line
	  and GTK# versions

	* Test/TestOracleClient.cs: updated test to
	  include reading data via the OracleDataReader

	* System.Data.OracleClient/OracleConnection.cs: removed
	  debug code

svn path=/trunk/mcs/; revision=11614
2003-02-16 10:36:49 +00:00
Atsushi Eno 7a00fc77a5 2003-02-16 Atsushi Enomoto <[email protected]>
* added XmlInputStream.cs to list.unix and Mono.System.Xml.csproj.

svn path=/trunk/mcs/; revision=11613
2003-02-16 07:29:24 +00:00
Atsushi Eno cc86dade12 2003-02-16 Atsushi Enomoto <[email protected]>
* XmlSerializer.cs : serializing now works for interface member.

svn path=/trunk/mcs/; revision=11612
2003-02-16 07:27:47 +00:00
Atsushi Eno 615abae8f1 2003-02-16 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : added (also contains internal XmlStreamReader).
	* XmlDocument.cs : Load () now can specify URL using XmlUrlResolver,
		and can read non-UTF-8 stream.
	* XmlTextReader.cs : related to above stream fix.
	* XmlUrlResolver.cs : implemented GetEntity ().

svn path=/trunk/mcs/; revision=11611
2003-02-16 07:25:43 +00:00
Miguel de Icaza 81bfc0a71a 2003-02-15 Miguel de Icaza <[email protected]>
The goal here is to remove the dependency on EmptyCast.Peel ().
	Killing it completely.

	The problem is that currently in a number of places where
	constants are expected, we have to "probe" for an EmptyCast, and
	Peel, which is not the correct thing to do, as this will be
	repetitive and will likely lead to errors.

	The idea is to remove any EmptyCasts that are used in casts that
	can be reduced to constants, so we only have to cope with
	constants.

	This bug hunt was triggered by Bug 37363 and the desire to remove
	the duplicate pattern where we were "peeling" emptycasts to check
	whether they were constants.  Now constants will always be
	constants.

	* ecore.cs: Use an enumconstant here instead of wrapping with
	EmptyCast.

	* expression.cs (Cast.TryReduce): Ah, the tricky EnumConstant was
	throwing me off.  By handling this we can get rid of a few hacks.

	* statement.cs (Switch): Removed Peel() code.

svn path=/trunk/mcs/; revision=11610
2003-02-15 22:12:44 +00:00
Zoltan Varga 6e13a2b089 2003-02-15 Zoltan Varga <[email protected]>
* makefile.gnu (test): do not install .dbg files since mcs no longer
	generates them.

svn path=/trunk/mcs/; revision=11609
2003-02-15 18:32:42 +00:00
Nick Drochak 88769b1c21 2003-02-15 Nick Drochak <[email protected]>
* makefile.gnu: Add testcorlib target to run just the corlib unit tests.

svn path=/trunk/mcs/; revision=11607
2003-02-15 16:01:18 +00:00
Nick Drochak 2c3354b5f5 2003-02-15 Nick Drochak <[email protected]>
* CollectionBaseTest.cs: Make it a better NUnit v2 example

svn path=/trunk/mcs/; revision=11606
2003-02-15 14:59:06 +00:00
Paolo Molaro 53d588843b Sat Feb 15 15:15:03 CET 2003 Paolo Molaro <[email protected]>
* image.c, image.h, class.c, assembly.c: move module loading
	to MonoImage. When loading metadata, consider alignemnet from
	the start of metadata, not from the metadata address in memory.

svn path=/trunk/mono/; revision=11605
2003-02-15 14:21:46 +00:00
Pedro Martínez Juliá 7378a8a117 Hashtable.cs: Finish the work on the serialization and. Add TestCase for
the serialization with Binary Formatter.

svn path=/trunk/mcs/; revision=11604
2003-02-15 12:04:43 +00:00
Gonzalo Paniagua Javier 4bf7143482 2003-02-15 Gonzalo Paniagua Javier <[email protected]>
* list: forgot to add this one.

	* System.Web.Compilation/AspGenerator.cs: corrected typo and wrong fix.

	* System.Web.UI/Control.cs: have i definitely fixed naming container
	stuff this time?

	* System.Web.UI/LosFormatter.cs: activated binary serialization code.

	* System.Web.UI.WebControls/ButtonColumn.cs: fixed a couple of infinite
	loop problems and render correctly the header of the column.

	* System.Web.UI.WebControls/DataGridTableInternal.cs: don't assign a
	default ID to this control.

	* System.Web.UI.WebControls/LinkButton.cs: raise bubble event in
	OnCommand.

	* System.Web.UI.WebControls/TableCellCollection.cs: fixed the index
	returned by Add.

	* System.Web.UI.WebControls/TableRowCollection.cs: ditto.

svn path=/trunk/mcs/; revision=11601
2003-02-15 04:08:30 +00:00
Miguel de Icaza 997acc630c Add new test, for bug 37014
svn path=/trunk/mcs/; revision=11600
2003-02-15 03:58:37 +00:00
Sebastien Pouliot 6eccd57679 2003-02-14 Sebastien Pouliot <[email protected]>
* commands: Added System.Security to the list of assembly.
	* makefile: Added processing for System.Security.

svn path=/trunk/mono/; revision=11597
2003-02-15 00:43:34 +00:00
Sebastien Pouliot d723c925d2 2003-02-14 Sebastien Pouliot <[email protected]>
* class-status.in: Added assembly System.Security and link to crypto
	status page.
	* crypto: Corrected html typo (too bold ;-).

svn path=/trunk/mono/; revision=11596
2003-02-15 00:42:54 +00:00
Christopher Bockner f0991210c0 Changes to enable prepared statements, which sort of work now (need more testing).
svn path=/trunk/mcs/; revision=11592
2003-02-14 21:51:50 +00:00
Miguel de Icaza 42357eaf9b 2003-02-14 Miguel de Icaza <[email protected]>
* delegate.cs: The signature for EndInvoke should contain any ref
	or out parameters as well.  We were not doing this in the past.

svn path=/trunk/mcs/; revision=11591
2003-02-14 21:38:13 +00:00
Miguel de Icaza 27f43d377a More tests
svn path=/trunk/mcs/; revision=11590
2003-02-14 21:35:27 +00:00
Patrik Torstensson 10f6a0130b 2003-02-14 Patrik Torstensson
* x86.brg: Implemented CONV_OVF_[I|U]4 (freg), this fixes the issues
	with the "checked" keyword. Closes bugs #33421 and #35280 (JIT not mint)

svn path=/trunk/mono/; revision=11582
2003-02-14 14:41:29 +00:00
Patrik Torstensson 35dde25470 2003-02-14 Patrik Torstensson
* Makefile.am: Added checked.cs test.

svn path=/trunk/mono/; revision=11581
2003-02-14 12:57:58 +00:00
Patrik Torstensson 2bcd3194b5 2003-02-14 Patrik Torstensson
* checked.cs: Added checks for unsigned check keyword

svn path=/trunk/mono/; revision=11580
2003-02-14 12:54:56 +00:00
Rafael Teixeira 10ddb8a2b3 adjusting .cvsignore
svn path=/trunk/mcs/; revision=11579
2003-02-14 12:53:51 +00:00
Zoltan Varga dd0a3203e7 2003-02-14 Zoltan Varga <[email protected]>
* FileStream.cs (Write): flush after writing the last segment as well.

svn path=/trunk/mcs/; revision=11578
2003-02-14 10:36:15 +00:00
Patrik Torstensson 196c705599 2003-02-14 Patrik Torstensson
* x86-codegen.h: Added fstsw op code for getting fp flags

svn path=/trunk/mono/; revision=11577
2003-02-14 10:01:29 +00:00
Patrik Torstensson c4866cde97 2003-02-14 Patrik Torstensson
* checked.cs: New test that tests that the runtime throws correct overflow
		      exceptions during execution of checked keyword.

svn path=/trunk/mono/; revision=11576
2003-02-14 09:48:00 +00:00
Patrik Torstensson 4655a0eea1 2003-02-14 Patrik Torstensson
* Exception.cs: Fixed message output formating

svn path=/trunk/mcs/; revision=11575
2003-02-14 09:43:23 +00:00
Dietmar Maurer 05d003c788 2003-02-14 Dietmar Maurer <[email protected]>
* exception.c (mono_arch_find_jit_info): better way to handle
	situations where we have no MonoJitInfo

svn path=/trunk/mono/; revision=11574
2003-02-14 09:28:41 +00:00
Gonzalo Paniagua Javier 2aac73c7b6 2003-02-14 Gonzalo Paniagua Javier <[email protected]>
* Control.cs:
	(AddedControl): fixed default id assignation when the sequence of
	AddedControl until it's included in the page or one of its controls
	does not pass through a naming container.

svn path=/trunk/mcs/; revision=11573
2003-02-14 06:00:20 +00:00
Tim Coleman 3463119aa2 2003-02-13 Tim Coleman <[email protected]>
* makefile.gnu: Add System.Data.OracleClient to linux build.

svn path=/trunk/mcs/; revision=11572
2003-02-14 04:45:13 +00:00
Tim Coleman 1256a14783 2003-12-13 Tim Coleman <[email protected]>
* System.Data.OracleClient.Oci/OciColumnInfo.cs:
	* System.Data.OracleClient.Oci/OciDataType.cs:
	* System.Data.OracleClient.Oci/OciDefineHandle.cs:
	* list:
		New classes added
	* System.Data.OracleClient/OciGlue.cs:
		Changes to AttrGet functions
	* System.Data.OracleClient/OracleCommand.cs:
	* System.Data.OracleClient/OracleDataReader.cs:
		Start some work on getting data reader going
	* System.Data.OracleClient.Oci/OciAttributeType.cs:
		Add DisplayName
	* System.Data.OracleClient.Oci/OciStatementHandle.cs:
		Add code to get schema for query, as well as
		define output values.

svn path=/trunk/mcs/; revision=11571
2003-02-14 04:32:30 +00:00
Gonzalo Paniagua Javier 9d920cdfb1 2003-02-14 Gonzalo Paniagua Javier <[email protected]>
* Int32.cs:
	(Parse): ignore everything after a \0 (MS parses: "512\0hola" as 512).

svn path=/trunk/mcs/; revision=11570
2003-02-14 04:29:25 +00:00
Gonzalo Paniagua Javier 20dbf7a0d0 2003-02-14 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: fixed code generation for Table/TableRow/TableCell
	when used explicitly.

svn path=/trunk/mcs/; revision=11568
2003-02-14 03:20:04 +00:00
Dennis Hayes 860d92e3f0 see last entry
svn path=/trunk/mcs/; revision=11567
2003-02-14 02:17:53 +00:00
Dennis Hayes 844e5e95d4 Samples\QuickStart\winforms\samples\controlreference\comboboxctl\cs
svn path=/trunk/mcs/; revision=11566
2003-02-14 02:17:26 +00:00
Daniel Morgan e0e8de2d7d 2003-02-13 Daniel Morgan <[email protected]>
* doc/screenshots
	* doc/ado-net
	* doc/oracle
	* doc/gtk-sharp: update web pages

svn path=/trunk/mono/; revision=11562
2003-02-13 23:41:06 +00:00
Miguel de Icaza 4b22b3f1f1 Push
svn path=/trunk/mono/; revision=11558
2003-02-13 23:04:57 +00:00
Zoltan Varga 5befaff2da 2003-02-13 Zoltan Varga <[email protected]>
* Thread.cs (Sleep): Timeout.Infinite is a value argument.

svn path=/trunk/mcs/; revision=11556
2003-02-13 19:12:54 +00:00
Paolo Molaro 606a0ec287 Thu Feb 13 18:40:52 CET 2003 Paolo Molaro <[email protected]>
* ModuleBuilder.cs: add the basic initialization call.

svn path=/trunk/mcs/; revision=11555
2003-02-13 17:44:46 +00:00
Miguel de Icaza d38aa4c0d6 update
svn path=/trunk/mono/; revision=11553
2003-02-13 16:56:14 +00:00
Gonzalo Paniagua Javier 30be3866c8 2003-02-13 Gonzalo Paniagua Javier <[email protected]>
* AspElements.cs: get the property Type for controls that use
	ParseChildren with a property name.

	* AspGenerator.cs: generate correct signature for the method that
	adds controls to the default property in ParseChildren.

svn path=/trunk/mcs/; revision=11552
2003-02-13 16:22:35 +00:00
Zoltan Varga a6407800bb 2003-02-13 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_get_custom_attrs): Added support for
	AssemblyBuilder objects. Factored out custom attribute creation into
	a separate function.
	(create_custom_attr): new function to create custom attributes.

svn path=/trunk/mono/; revision=11551
2003-02-13 12:43:51 +00:00
Zoltan Varga 5873ac9570 2003-02-13 Zoltan Varga <[email protected]>
* corlib_test.args: added AssemblyBuilderTest.cs

svn path=/trunk/mcs/; revision=11550
2003-02-13 12:40:19 +00:00
Zoltan Varga 72b6bb613d 2003-02-13 Zoltan Varga <[email protected]>
* AssemblyBuilderTest.cs: New file.

svn path=/trunk/mcs/; revision=11549
2003-02-13 12:39:31 +00:00
Zoltan Varga 02c3f7b1cd 2003-02-13 Zoltan Varga <[email protected]>
* AssemblyBuilder.cs: Added basic error checking to some methods
	according to the MSDN docs.

svn path=/trunk/mcs/; revision=11548
2003-02-13 12:38:14 +00:00
Nick Drochak 077dfc02e2 2003/02/13 Nick Drochak <[email protected]>
* ActivatorTest.cs:
	* MarshalByRefTest.cs: New unit tests from Jean-Marc Andr
	[[email protected]]. One failure on .NET in the latter.

svn path=/trunk/mcs/; revision=11547
2003-02-13 05:11:09 +00:00
Gonzalo Paniagua Javier e640c9f54b 2003-02-13 Gonzalo Paniagua Javier <[email protected]>
* GlobalizationConfiguration.cs: added internal fields to hold the
	values in the globalization node.

	* GlobalizationConfigurationHandler.cs: handler to load
	<system.web/globalization> section.

svn path=/trunk/mcs/; revision=11543
2003-02-13 02:47:50 +00:00
Gonzalo Paniagua Javier 12b4209f80 2003-02-13 Gonzalo Paniagua Javier <[email protected]>
* data/machine.config: added sample globalization section.

svn path=/trunk/mono/; revision=11542
2003-02-13 02:45:08 +00:00
Gonzalo Paniagua Javier dd7ba172ce 2003-02-13 Gonzalo Paniagua Javier <[email protected]>
* HttpApplication.cs: only execute the EndRequest step on error
	condition or request marked as completed. This prevent page events from
	being called when, for example, the url authorization module forbids
	the request.

svn path=/trunk/mcs/; revision=11541
2003-02-13 00:58:42 +00:00
Miguel de Icaza 3536718334 2003-02-12 Miguel de Icaza <[email protected]>
* ecore.cs (FieldExpr.AddressOf): In the particular case of This
	and structs, we do not want to load the instance variable

svn path=/trunk/mcs/; revision=11540
2003-02-13 00:56:24 +00:00
Gonzalo Paniagua Javier 4cd75e5715 2003-02-13 Gonzalo Paniagua Javier <[email protected]>
* UrlAuthorizationModule.cs: tell the application not to run any other
	step apart from EndRequest.

svn path=/trunk/mcs/; revision=11539
2003-02-13 00:55:42 +00:00
Tim Coleman c559a7bf4d 2003-02-12 Tim Coleman <[email protected]>
* System.Data.OracleClient/OracleException.cs:
	* System.Data.OracleClient.Oci/IOciHandle.cs:
	* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
	* System.Data.OracleClient.Oci/OciErrorHandle.cs:
	* System.Data.OracleClient.Oci/OciErrorInfo.cs:
	* System.Data.OracleClient.Oci/OciHandle.cs:
	* System.Data.OracleClient.Oci/OciServerHandle.cs:
	* System.Data.OracleClient.Oci/OciServiceHandle.cs:
	* System.Data.OracleClient.Oci/OciSessionHandle.cs:
	* System.Data.OracleClient.Oci/OciStatementHandle.cs:
	* System.Data.OracleClient.Oci/OciTransactionHandle.cs:
	* list:
		New classes added.  This encapsulates the OCI
		functionality into Handle objects.
	* System.Data.OracleClient/OciGlue.cs:
		Move a lot of code into Handle classes.
	* System.Data.OracleClient/OracleCommand.cs:
	* System.Data.OracleClient/OracleConnection.cs:
	* System.Data.OracleClient/OracleTransaction.cs:
		Retrofit for changes in OciGlue.

svn path=/trunk/mcs/; revision=11538
2003-02-13 00:50:39 +00:00
Piers Haken 7b8690a93c fix stopping after fix
svn path=/trunk/mcs/; revision=11537
2003-02-13 00:46:14 +00:00
Miguel de Icaza dbb885b9a1 Update tests
svn path=/trunk/mcs/; revision=11535
2003-02-13 00:34:47 +00:00
Miguel de Icaza b44fb5e4e5 2003-02-12 Miguel de Icaza <[email protected]>
* Makefile.am: Got tired of typing the full pathname to pedump.
	Until there is another option, am installing this.

svn path=/trunk/mono/; revision=11534
2003-02-13 00:08:07 +00:00
Miguel de Icaza b56489551b 2003-02-12 Miguel de Icaza <[email protected]>
* ecore.cs (ImplicitReferenceConversion,
	ImplicitReferenceConversionExists): enum_type has to be handled
	like an object reference (implicit conversions exists from this to
	object), but the regular IsClass and IsValueType tests will never
	return true for this one.

	Also we use TypeManager.IsValueType instead of type.IsValueType,
	just for consistency with the rest of the code (this is only
	needed if we ever use the construct exposed by test-180.cs inside
	corlib, which we dont today).

svn path=/trunk/mcs/; revision=11533
2003-02-12 23:24:07 +00:00
Miguel de Icaza a90a9d9f94 2003-02-12 Miguel de Icaza <[email protected]>
* Type.cs: IsClass should return false for Enumerations

svn path=/trunk/mcs/; revision=11532
2003-02-12 23:16:24 +00:00
Zoltan Varga e419439f92 2003-02-12 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Added test for setting MethodImplAttributes
	using a custom attribute.

svn path=/trunk/mcs/; revision=11531
2003-02-12 20:37:23 +00:00
Zoltan Varga c84ac4051f 2003-02-12 Zoltan Varga <[email protected]>
* makefile (TEST_SOURCES): Added test-181.

svn path=/trunk/mcs/; revision=11530
2003-02-12 17:30:22 +00:00
Zoltan Varga c938c00ae6 2003-02-12 Zoltan Varga <[email protected]>
* attribute.cs (ApplyAttributes): apply all MethodImplAttributes, not
	just InternalCall.

svn path=/trunk/mcs/; revision=11529
2003-02-12 17:29:28 +00:00
Miguel de Icaza 940153a2d2 Update update
svn path=/trunk/mono/; revision=11528
2003-02-12 15:34:16 +00:00
Rafael Teixeira 844c910324 2003/02/12 Rafael Teixeira <[email protected]>
* added argument.cs (extracted from expression.cs) makefiles corrected
	* mb-parser.jay : eliminated reduce/reduce conflict on opt_argument_list rule,
	  by putting and if to make a argument list with just an empty argument list become an empty list

svn path=/trunk/mcs/; revision=11524
2003-02-12 13:53:05 +00:00
Dietmar Maurer d992488c00 (mono_ldtoken): use mono_defaults.fieldhandle_class;
svn path=/trunk/mono/; revision=11523
2003-02-12 12:18:20 +00:00
Daniel Morgan c4d22ba10c 2003-02-12 Daniel Morgan <[email protected]>
* README.TXT
    * System.Data.OracleClient/OciGlueLib_BCC_win32.make
    * System.Data.OracleClient/OciGlueLib_GCC_linux.make
    * System.Data.OracleClient/OciGlueLib_MSVC_win32.make
    * System.Data.OracleClient/ociglue.c
    * System.Data.OracleClient/ociglue.h
    * Test/Test.csproj
    * Test/Test.csproj.user: removed files because System.Data.OracleClient
    no longer uses a glue library

    * System.Data.OracleClient/TODOAttribute.cs: added file

    * System.Data.OracleClient/OracleCommand.cs
    * System.Data.OracleClient/OracleConnection.cs
    * System.Data.OracleClient/OciGlue.cs: modified -
    implement Disconnect and error handling (still need
    to create OracleException though)

    * Test/TestOracleClient.cs: clean up and accept
    connection parameters from command line

svn path=/trunk/mcs/; revision=11522
2003-02-12 12:08:18 +00:00
Martin Baulig 3e1c65ce14 Ooops, forgot to correct the size. This change only affects reading the symbol files, so we don't need to increment the version number.
svn path=/trunk/mcs/; revision=11521
2003-02-12 11:26:57 +00:00
Dietmar Maurer b85f0f2772 2003-02-12 Dietmar Maurer <[email protected]>
* class.c (class_compute_field_layout): always set field->parent

svn path=/trunk/mono/; revision=11520
2003-02-12 10:12:03 +00:00
Tim Coleman 57718c3451 2003-02-11 Tim Coleman <[email protected]>
* System.Data.OracleClient.Oci/OciAttributeType.cs:
	* System.Data.OracleClient.Oci/OciCredentialType.cs:
	* System.Data.OracleClient.Oci/OciDescriptorType.cs:
	* System.Data.OracleClient.Oci/OciEnvironmentMode.cs:
	* System.Data.OracleClient.Oci/OciExecuteMode.cs:
	* System.Data.OracleClient.Oci/OciHandleType.cs:
	* System.Data.OracleClient.Oci/OciLobType.cs:
	* System.Data.OracleClient.Oci/OciPointerType.cs:
	* System.Data.OracleClient.Oci/OciSessionMode.cs:
	* System.Data.OracleClient.Oci/OciStatementLanguage.cs:
	* System.Data.OracleClient.Oci/OciStatementMode.cs:
	* System.Data.OracleClient.Oci/OciStatementType.cs:
	* System.Data.OracleClient.Oci/OciTransactionFlags.cs:
		New files for Oci namespace
	* list:
	* makefile.gnu:
		Update these files to fix linux build
	* System.Data.OracleClient/OciGlue.cs:
		Use OCI through P/Invoke directly, rename namespace
	* System.Data.OracleClient/OracleCommand.cs:
	* System.Data.OracleClient/OracleConnection.cs:
	* System.Data.OracleClient/OracleDataReader.cs:
	* System.Data.OracleClient/OracleParameter.cs:
	* System.Data.OracleClient/OracleParameterCollection.cs:
	* System.Data.OracleClient/OracleTransaction.cs:
		Retrofit these files for the changes in OciGlue.cs

svn path=/trunk/mcs/; revision=11516
2003-02-12 03:57:47 +00:00
Gonzalo Paniagua Javier 9b098982cf 2003-02-12 Gonzalo Paniagua Javier <[email protected]>
* list: added AuthorizationConfig and AuthorizationConfigHandler.

	* System.Web/HttpRequest.cs: implemented the indexer.

	* System.Web.Configuration/AuthorizationConfigHandler.cs: handler for
	system.web/authorization section.

	* System.Web.Configuration/AuthorizationConfig.cs: keeps record of
	authorization configuration.

	* System.Web.Security/FormsAuthentication.cs: implemented
	RedirectFromLoginPage and GetRedirectUrl.

	* System.Web.Security/FormsAuthenticationModule.cs: redirect to the
	login page when a 401 error happens.

	* System.Web.Security/UrlAuthorizationModule.cs: check for valid user
	or render error page.

svn path=/trunk/mcs/; revision=11512
2003-02-12 03:39:46 +00:00
Gonzalo Paniagua Javier 96f82806c5 2003-02-04 Gonzalo Paniagua Javier <[email protected]>
* configure.in: added check for sys/un.h.
	* mono/metadata/socket-io.c: support AF_UNIX and use the same layout as
	MS, not the one they documented (bytes 0 and 1 are the family).

svn path=/trunk/mono/; revision=11511
2003-02-12 03:24:09 +00:00
Jaime Anguiano Olarra fc0bd945c4 More infoMore info..
svn path=/trunk/mono/; revision=11500
2003-02-12 00:36:40 +00:00
Miguel de Icaza 5ca8a55ee5 Flush
svn path=/trunk/mono/; revision=11496
2003-02-11 21:40:27 +00:00
Marco Ridoni cb871c7c6d A few minor fixes
svn path=/trunk/mcs/; revision=11495
2003-02-11 20:04:27 +00:00
Marco Ridoni 941d9a15f9 Variable and array initializers are properly implemented
Array creation is handled in a better fashion

svn path=/trunk/mcs/; revision=11494
2003-02-11 19:56:01 +00:00
Tim Coleman acf348e623 Fix changelog
svn path=/trunk/mcs/; revision=11493
2003-02-11 18:08:26 +00:00
Tim Coleman 89e3f2a012 2003-02-11 Tim Coleman <[email protected]>
* System.Data.SqlClient/SqlConnection.cs:
        * System.Data.SqlClient/SqlDataReader.cs:
                Close the data reader properly, and be sure
                to close the data reader when the connection
                is closed.

svn path=/trunk/mcs/; revision=11492
2003-02-11 18:02:38 +00:00
Tim Coleman 2168336c44 2003-02-11 Tim Coleman <[email protected]>
* data/config.in: Add mapping for Oracle call interface
        (OCI) native libraries.

svn path=/trunk/mono/; revision=11491
2003-02-11 17:52:21 +00:00
Jaime Anguiano Olarra aeeeabdf24 Added link to the MWN item and archives.
svn path=/trunk/mono/; revision=11490
2003-02-11 17:47:14 +00:00
Jaime Anguiano Olarra 70895c6935 Fix.
svn path=/trunk/mono/; revision=11489
2003-02-11 17:32:17 +00:00
Jaime Anguiano Olarra 0473fb6f61 Links to mwn today and mwn archives
svn path=/trunk/mono/; revision=11488
2003-02-11 17:06:22 +00:00
Gonzalo Paniagua Javier 1259587222 No comments.
svn path=/trunk/mcs/; revision=11487
2003-02-11 16:49:21 +00:00
Gonzalo Paniagua Javier bc2ec9054b 2003-02-11 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: rethrow exceptions that may can from parsing or
	compilation if a user control.

svn path=/trunk/mcs/; revision=11486
2003-02-11 16:37:57 +00:00
Gonzalo Paniagua Javier 1db7027fe6 2003-02-11 Gonzalo Paniagua Javier <[email protected]>
* MonoCustomAttrs.cs: return the correct array type in the short case.
	Fixes bug #37818.

svn path=/trunk/mcs/; revision=11485
2003-02-11 15:30:50 +00:00
Dick Porter ebcbf2b2fc 2003-02-11 Dick Porter <[email protected]>
* Monitor.cs: Infinite wait is Infinite, not 0 ms

svn path=/trunk/mcs/; revision=11484
2003-02-11 15:11:50 +00:00
Dick Porter 8702850b3f 2003-02-11 Dick Porter <[email protected]>
* threads-types.h:
	* monitor.c: Rewrote Monitor, making lock much faster and
	Pulse/Wait work as specified.  Also uses much fewer handles, and only
	creates them as needed.

	* exception.c: Added SynchronizationLockException

	* threads.c: Deleted old Monitor implementation.  The new one is
	in a new file.

2003-02-11  Dick Porter  <[email protected]>

	* timefuncs.h:
	* timefuncs.c: Added GetTickCount()

svn path=/trunk/mono/; revision=11483
2003-02-11 15:10:40 +00:00
Piers Haken a81f50b5fe *** empty log message ***
svn path=/trunk/mcs/; revision=11482
2003-02-11 12:48:30 +00:00
Patrik Torstensson caf229d10d 2003-02-11 Patrik Torstensson
* ObjectReader.cs: Fixed root object bug causing object reader to return root object
	  before fixup. Closes bug #37842.

svn path=/trunk/mcs/; revision=11481
2003-02-11 12:43:46 +00:00
Zoltan Varga fd6ded786c 2003-02-11 Zoltan Varga <[email protected]>
* trampoline.c (arch_create_jit_trampoline): This function should
	allways return a trampoline for managed methods. Fixes bug #29859.

svn path=/trunk/mono/; revision=11480
2003-02-11 11:06:12 +00:00
Zoltan Varga 2b55f54b9c Added regression test for bug #29859.
svn path=/trunk/mono/; revision=11479
2003-02-11 11:04:14 +00:00
Jackson Harper c90b57ea8c * makefile: remove unneeded rm's
svn path=/trunk/mcs/; revision=11478
2003-02-11 07:32:24 +00:00
Jackson Harper 0ec4055f30 * test-4.il: Add file
* makefile: Add new test

svn path=/trunk/mcs/; revision=11477
2003-02-11 07:28:15 +00:00
Jackson Harper 9ccd53016b Use arg_list for method signatures, set method parameters
svn path=/trunk/mcs/; revision=11476
2003-02-11 07:23:59 +00:00
Jackson Harper 57af9803b7 * Method.cs: Add method to set parameters,
set parameters when defining type
	* Class.cs: Fix very silly bug in GetMethod method

svn path=/trunk/mcs/; revision=11475
2003-02-11 07:22:08 +00:00
Gonzalo Paniagua Javier 980ac054de 2003-02-11 Gonzalo Paniagua Javier <[email protected]>
* debug.c: allocate debug->source_files. Fixes GLib-CRITICAL upon
	debugging clean up.

svn path=/trunk/mono/; revision=11474
2003-02-11 06:36:05 +00:00
Gonzalo Paniagua Javier 10e11ee302 2003-02-11 Gonzalo Paniagua Javier <[email protected]>
* StringReader.cs:
	(ReadLine): fixed the case when the string ends with a '\n'.

svn path=/trunk/mcs/; revision=11473
2003-02-11 05:42:51 +00:00
Gonzalo Paniagua Javier 97eba89dcb Fixes the build
svn path=/trunk/mcs/; revision=11470
2003-02-11 05:13:15 +00:00
Gonzalo Paniagua Javier 19bd9945fb Forgot this one.
svn path=/trunk/mcs/; revision=11468
2003-02-11 05:06:13 +00:00
Gonzalo Paniagua Javier 216bec00c9 2003-02-11 Gonzalo Paniagua Javier <[email protected]>
* list: added a couple of new files.
	* System.Web/HtmlizedException.cs: base class for exceptions that makes
	it easy to generate error pages.

	* System.Web/HttpException.cs: improved error displaying.

	* System.Web/HttpRuntime.cs: removed debugging output.

	* System.Web.Compilation/AspGenerator.cs: throw ParseException on parse
	error.

	* System.Web.Compilation/AspParser.cs: added Line and Column props.

	* System.Web.Compilation/CompilationException.cs: derives now from
	HtmlizedException.

	* System.Web.Compilation/CompilationResult.cs: added fileName field.
	Fixed set_ExitCode.

	* System.Web.Compilation/GlobalAsaxCompiler.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/UserControlCompiler.cs: pass the file name in
	the CompilationResult.

	* System.Web.Compilation/ParseException.cs: new exception.

svn path=/trunk/mcs/; revision=11467
2003-02-11 05:04:30 +00:00
Miguel de Icaza 0dc11cea68 Commit for Daniel: many improvements to the FileSystem code.
svn path=/trunk/mcs/; revision=11466
2003-02-11 05:01:35 +00:00
Tim Coleman a7170ffd21 2003-02-10 Tim Coleman <[email protected]>
* MonoOracleClient.csproj :
	* MonoOracleClient.csproj.user :
	* MonoOracleClient.sln :
	* MonoOracleClient.suo :
		Remove obsolete files

svn path=/trunk/mcs/; revision=11465
2003-02-11 04:44:31 +00:00
Tim Coleman 570d39cfa1 2003-02-10 Tim Coleman <[email protected]>
* System.Data.OracleClient/OracleDataReader.cs:
        * System.Data.OracleClient/OracleParameter.cs:
        * System.Data.OracleClient/OracleParameterCollection.cs:
        * System.Data.OracleClient/OracleString.cs:
        * System.Data.OracleClient/OracleTransaction.cs:
        * System.Data.OracleClient/OracleType.cs:
                Added some implementation of these required objects.
        * list:
                Add new files to the build.
        * System.Data.OracleClient/OciGlue.cs:
        * System.Data.OracleClient/ociglue.c:
        * System.Data.OracleClient/ociglue.h:
                Add transaction logic.
        * System.Data.OracleClient/OracleCommand.cs:
        * System.Data.OracleClient/OracleConnection.cs:
                Add some more implementation

svn path=/trunk/mcs/; revision=11457
2003-02-11 01:37:56 +00:00
Tim Coleman 97a15c7691 2003-02-10 Tim Coleman <[email protected]>
* library.build:
		Disable OracleClient build on Windows so that I don't
		break the build.  I'm developing on Linux at present.

svn path=/trunk/mcs/; revision=11456
2003-02-11 01:32:46 +00:00
Christopher Bockner f9a00324d8 DB2ClientPrototypes.cs
Added SQLDescribeParam and SQLBindParameter.

svn path=/trunk/mcs/; revision=11454
2003-02-10 21:31:37 +00:00
Christopher Bockner 1aa729a130 DB2ClientDataReader.cs:
Small change, cast to int instead of ToInt32()...

svn path=/trunk/mcs/; revision=11453
2003-02-10 21:29:04 +00:00
Christopher Bockner 05ec8fde09 DB2ClientConstants.cs:
Added a bunch of costants for SQL data types.

svn path=/trunk/mcs/; revision=11452
2003-02-10 21:22:57 +00:00
Christopher Bockner 0b75828378 DB2ClientConnection.cs: Added error checking on SQLDisconnect.
svn path=/trunk/mcs/; revision=11451
2003-02-10 21:20:22 +00:00
Christopher Bockner 0a0e24256b DB2ClientCommand.cs: Various changes, mostly to support prepared statements.
svn path=/trunk/mcs/; revision=11450
2003-02-10 21:17:55 +00:00
Christopher Bockner fffbdd3bc4 DB2ClientParameterCollection.cs: Adding this class to support prepared statements.
svn path=/trunk/mcs/; revision=11449
2003-02-10 21:10:53 +00:00
Christopher Bockner 9008b734ea DB2ClientParameter.cs: Adding the parameter class so we can implement prepared statements.
:

svn path=/trunk/mcs/; revision=11448
2003-02-10 21:06:18 +00:00
Paolo Molaro be2288ded6 Mon Feb 10 17:54:10 CET 2003 Paolo Molaro <[email protected]>
* class.c: handled TypedReference type code. Set the correct size for
	class data. Setup interface_offsets for interface classes, too.

svn path=/trunk/mono/; revision=11447
2003-02-10 16:58:57 +00:00
Nick Drochak 43ce1d515f 2003-02-10 Nick Drochak <[email protected]>
* makefile: Add testcorlib target to run just the corlib unit tests.

svn path=/trunk/mcs/; revision=11446
2003-02-10 14:46:30 +00:00
Nick Drochak 70dfcc7dd8 2003-02-10 Nick Drochak <[email protected]>
* library.build:
	* makefile: add testcorlib target to run unit tests just for corlib.

svn path=/trunk/mcs/; revision=11445
2003-02-10 14:44:58 +00:00
Gonzalo Paniagua Javier 1026d46505 2003-02-10 Gonzalo Paniagua Javier <[email protected]>
* Thread.cs: fixed bug #37759.

svn path=/trunk/mcs/; revision=11444
2003-02-10 14:14:13 +00:00
Nick Drochak 97c1a96048 2003-02-10 Nick Drochak <[email protected]>
* Registry.cs: Class should be sealed and have a private default ctor.

svn path=/trunk/mcs/; revision=11443
2003-02-10 14:14:06 +00:00
Nick Drochak f77ae165ac 2003-02-10 Nick Drochak <[email protected]>
* System.Data.build: Keep the standalone tests out of the dll. Fixes
	build breakage on cygwin.

svn path=/trunk/mcs/; revision=11442
2003-02-10 14:10:12 +00:00
Nick Drochak cf36ecd09d 2003-02-10 Nick Drochak <[email protected]>
* Mono.CSharp.Debugger.build: passing the /r using an 'arg' node works.
	The <include> node wasn't getting to the compiler. This fixes build
	breakage on cygwin.

	* MonoSymbolFile.cs: Qualify which Min method. Fixes build breakage
	on cygwin.

svn path=/trunk/mcs/; revision=11441
2003-02-10 13:58:05 +00:00
Zoltan Varga 6a3337c201 2003-02-10 Zoltan Varga <[email protected]>
* ConstructorBuilder.cs:
	- Added basic error checking to all methods according to the MSDN docs.
	- modified a lot of methods to throw NotSupportedException, to comply
	  with MS.NET.

svn path=/trunk/mcs/; revision=11440
2003-02-10 13:53:12 +00:00
Zoltan Varga bc6b91f88c 2003-02-10 Zoltan Varga <[email protected]>
* ConstructorBuilderTest.cs: added SetCustomAttribute() tests.

svn path=/trunk/mcs/; revision=11439
2003-02-10 13:17:31 +00:00
Zoltan Varga ea30af9f57 2003-02-10 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: updated to NUNIT2 conventions.

	* ConstructorBuilderTest.cs: New file.

svn path=/trunk/mcs/; revision=11438
2003-02-10 12:51:08 +00:00
Zoltan Varga 527221e06e 2003-02-09 Zoltan Varga <[email protected]>
* TypeBuilder.cs:
	- Added basic error checking to all methods according to the MSDN docs.
	- fixed AssemblyQualifiedName.
	- implemented 'Size'.
	- modified a lot of methods to throw NotSupportedException, to comply
	  with MS.NET.
	- changes tested by running a full bootstrap.

svn path=/trunk/mcs/; revision=11437
2003-02-10 10:41:09 +00:00
Dennis Hayes 0adef9c4cf checkin for Alexandre Pigolkine see chagelog
svn path=/trunk/mcs/; revision=11434
2003-02-10 06:28:51 +00:00
Jackson Harper d64fcfd51a * test-3.il: Add file
* makefile: Add new test

svn path=/trunk/mcs/; revision=11433
2003-02-10 05:32:31 +00:00
Jackson Harper 3e9a3556fa full names can be short names too (for members)
svn path=/trunk/mcs/; revision=11432
2003-02-10 05:30:01 +00:00
Jackson Harper 8390bcaedd * Class.cs: Resolve Methods before emiting
* InstrBase.cs: Take a Class instead of CodeGen when emiting
	* Method.cs: Replace MethodInfo property with MethodBuilder property,
        	Add resolve method
	* Instructions.cs: Take Class instead of CodeGen when emitting,
	        get member methods from Class.
	* TypeManager.cs: Add set indexer

svn path=/trunk/mcs/; revision=11431
2003-02-10 05:27:36 +00:00
Piers Haken 9bc3cff12a 2003-02-09 Piers Haken <[email protected]>
* SelectNodesTests.cs: added TestNamespaceSelect (from Jerome Laban)

svn path=/trunk/mcs/; revision=11428
2003-02-09 22:57:59 +00:00
Piers Haken 2a62fc4766 2003-02-09 Piers Haken <[email protected]>
* XPathNavigator.cs:
	* Iterator.cs:
	* Expression.cs: fix namespace handling

svn path=/trunk/mcs/; revision=11427
2003-02-09 22:54:50 +00:00
Martin Baulig 938050e712 Ooops.
svn path=/trunk/mcs/; revision=11424
2003-02-09 22:42:42 +00:00
Martin Baulig 8e4a2a5a2b 2003-02-09 Martin Baulig <[email protected]>
* AssemblyBuilder.cs (AssemblyBuilder.methods): Removed.  This was
	a hack for the symbol writer which is no longer needed.

svn path=/trunk/mcs/; revision=11423
2003-02-09 22:39:06 +00:00
Martin Baulig bef12dc160 2003-02-09 Martin Baulig <[email protected]>
* MonoSymbolWriter.cs (MonoSymbolWriter.ctor): We don't need the
	`mbuilder_array' anymore.

svn path=/trunk/mcs/; revision=11422
2003-02-09 22:37:32 +00:00
Martin Baulig 5214f2e39f Small fix.
svn path=/trunk/mcs/; revision=11421
2003-02-09 22:36:14 +00:00
Martin Baulig 12e57c40bc 2003-02-09 Martin Baulig <[email protected]>
* debug-mono-symfile.h: Reflect latest symbol writer changes.

svn path=/trunk/mono/; revision=11420
2003-02-09 22:33:59 +00:00
Martin Baulig 06c897e1b0 2003-02-09 Martin Baulig <[email protected]>
* namespace.cs (Namespace..ctor): Added SourceFile argument.
	(Namespace.DefineNamespaces): New static public method; this is
	called when we're compiling with debugging to add all namespaces
	to the symbol file.

	* tree.cs (Tree.RecordNamespace): Added SourceFile argument and
	pass it to the Namespace's .ctor.

	* symbolwriter.cs (SymbolWriter.OpenMethod): Added TypeContainer
	and MethodBase arguments; pass the namespace ID to the symwriter;
	pass the MethodBase instead of the token to the symwriter.
	(SymbolWriter.DefineNamespace): New method to add a namespace to
	the symbol file.

svn path=/trunk/mcs/; revision=11419
2003-02-09 22:32:46 +00:00
Martin Baulig 870fcd6bf8 Fixed typo.
svn path=/trunk/mcs/; revision=11418
2003-02-09 22:27:43 +00:00
Martin Baulig 12573167b7 2003-02-09 Martin Baulig <[email protected]>
* MonoSymbolWrtier.cs (SourceFile): Derive from SourceFileEntry.
	(SourceBlock): We don't need source lines here.
	(SourceMethod): We're always constructed with source info.

	* MonoSymbolTable.cs: Added support for namespaces.
	(NamespaceEntry): New struct.
	(SourceFileEntry.DefineNamespace): New method.
	(MethodEntry.BuildLineNumberTable): The table is already sorted,
	so we don't need to do this here.

svn path=/trunk/mcs/; revision=11417
2003-02-09 22:27:01 +00:00
Martin Baulig 5cc90d6524 2003-02-09 Martin Baulig <[email protected]>
* IMonoSymbolWriter.cs: Ooops, I forgot to remove this.

svn path=/trunk/mcs/; revision=11416
2003-02-09 22:24:18 +00:00
Martin Baulig 9d1953a5b3 2003-02-09 Martin Baulig <[email protected]>
* IMonoSymbolWriter.cs (DefineNamespace, OpenMethod): New methods.

svn path=/trunk/mcs/; revision=11415
2003-02-09 22:23:23 +00:00
Gonzalo Paniagua Javier aa59cf428b 2003-02-09 Gonzalo Paniagua Javier <[email protected]>
* interp.c: added a dummy mono_runtime_install_handlers function to
	avoid crashing when ves_pinvoke_method tries to call it.

svn path=/trunk/mono/; revision=11411
2003-02-09 21:29:26 +00:00
Martin Baulig 240a8d1ee0 2003-02-09 Martin Baulig <[email protected]>
* symbolwriter.cs: New file.  This is a wrapper around
	ISymbolWriter with a cleaner API.  We'll dynamically Invoke()
	methods here in near future.

svn path=/trunk/mcs/; revision=11410
2003-02-09 21:15:10 +00:00
Martin Baulig 1ae4e1bd76 Hmm, sort the table for the moment, this is just a bit slower, but more stable.
svn path=/trunk/mcs/; revision=11409
2003-02-09 20:12:56 +00:00
Martin Baulig 157b960076 Reflect latest API changes.
svn path=/trunk/mcs/; revision=11408
2003-02-09 20:11:15 +00:00
Martin Baulig 6f8b5d6fd8 2003-02-09 Martin Baulig <[email protected]>
* codegen.cs (EmitContext.Mark): Just pass the arguments to
	ILGenerator.MarkSequencePoint() which are actually used by the
	symbol writer.

svn path=/trunk/mcs/; revision=11407
2003-02-09 20:10:53 +00:00
Martin Baulig b40f0a5f2a 2003-02-09 Martin Baulig <[email protected]>
* IMonoSymbolWriter.cs (MarkSequencePoint): New method which takes
	just the required arguments as scalars, not arrays.

	* ILGenerator.cs (ILGenerator.MarkSequencePoint): Use that new
	interface method; unnecessarily creating such a large number of
	arrays is both slow and too memory consuming.

svn path=/trunk/mcs/; revision=11406
2003-02-09 20:09:05 +00:00
Martin Baulig eb7680eb5b 2003-02-09 Martin Baulig <[email protected]>
* location.cs (SourceFile): New public sealed class.  This
	contains the name and an index which is used in the location's token.
	(Location): Reserve an appropriate number of bits in the token for
	the source file instead of walking over that list, this gives us a
	really huge performance improvement when compiling with debugging.

	* driver.cs (Driver.parse, Driver.tokenize_file): Take a
	`SourceFile' argument instead of a string.
	(Driver.ProcessFile): Add all the files via Location.AddFile(),
	but don't parse/tokenize here, we need to generate the list of all
	source files before we do that.
	(Driver.ProcessFiles): New static function.  Parses/tokenizes all
	the files.

	* cs-parser.jay (CSharpParser): Take a `SourceFile' argument
	instead of a string.

	* cs-tokenizer.cs (Tokenizer): Take `SourceFile' argument instead
	of a string.

svn path=/trunk/mcs/; revision=11405
2003-02-09 19:39:02 +00:00
Martin Baulig 3e51097a97 Hmm, no, this was wrong.
svn path=/trunk/mcs/; revision=11404
2003-02-09 19:23:20 +00:00
Zoltan Varga fb2ea3f479 2003-02-09 Zoltan Varga <[email protected]>
* TypeBuilderTest.cs: Added lots of new tests.

svn path=/trunk/mcs/; revision=11403
2003-02-09 19:17:12 +00:00
Rodrigo Moya 6f5a39d6d8 2003-02-09 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbConnection.cs:
	* System.Data.OleDb/libgda.cs: upgraded to libgda 0.10.

svn path=/trunk/mcs/; revision=11402
2003-02-09 19:15:42 +00:00
Paolo Molaro 6a35737bdb Sun Feb 9 18:37:01 CET 2003 Paolo Molaro <[email protected]>
* loader.c: implemented MEMBERREF_PARENT_TYPEDEF.
	* metadata.c, reflection.c: missing MONO_TYPE_TYPEDBYREF handling.
	* object.c: fixed mono_object_get_virtual_method () for interfaces.
	* verify.c: check for code that runs after the end of the method.

svn path=/trunk/mono/; revision=11398
2003-02-09 17:45:09 +00:00
Martin Baulig 44f03173d5 2003-02-09 Martin Baulig <[email protected]>
* driver.cs (Driver.SetupDefaultDefines): Define `__MonoRuntime__'
	if we're using mono's corlib.

svn path=/trunk/mcs/; revision=11397
2003-02-09 16:41:32 +00:00
Martin Baulig b596330b38 2003-02-09 Martin Baulig <[email protected]>
* cs-tokenizer.cs (Tokenizer.PreProcessLine): Also reset the
	filename on `#line default'.

svn path=/trunk/mcs/; revision=11396
2003-02-09 16:39:03 +00:00
Martin Baulig 237d5155be 2003-02-09 Martin Baulig <[email protected]>
* output.c: Use `#line default' instead of source file "-".

svn path=/trunk/mcs/; revision=11395
2003-02-09 16:37:28 +00:00
Jackson Harper 211962f587 Use TypeManager to loopup types
svn path=/trunk/mcs/; revision=11394
2003-02-09 08:31:46 +00:00
Jackson Harper 79166a08c3 Use full names for calling instructions
svn path=/trunk/mcs/; revision=11393
2003-02-09 08:29:47 +00:00
Gonzalo Paniagua Javier 3d4938068e 2003-02-09 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: give different default names depending on the place where
	it is assigned. Implemented ResolveURl (no more ~ rendered in
	attributes!).

svn path=/trunk/mcs/; revision=11392
2003-02-09 04:26:02 +00:00
Jackson Harper dfe7259c93 forgot changelog
svn path=/trunk/mcs/; revision=11391
2003-02-09 04:22:33 +00:00
Gonzalo Paniagua Javier 73e208ce0e 2003-02-09 Gonzalo Paniagua Javier <[email protected]>
* ArrayList.cs: fixed setSize (!).

svn path=/trunk/mcs/; revision=11390
2003-02-09 04:22:24 +00:00
Jackson Harper 1e4a818de7 * TypeManager.cs: Fix error parsing type names
* Method.cs: Display the name of types that can't be found

svn path=/trunk/mcs/; revision=11389
2003-02-09 04:21:48 +00:00
Jackson Harper 9199a29155 Create type names properly
svn path=/trunk/mcs/; revision=11388
2003-02-09 04:15:58 +00:00
Tim Coleman 84939c2ed6 2003-02-08 Tim Coleman <[email protected]>
* System.Data.OracleClient/OciGlueLib_BCC_win32.make:
        * System.Data.OracleClient/OciGlueLib_MSVC_win32.make:
        change name of library to ociglue.dll
        * System.Data.OracleClient/ociglue.c:
        Use the "database" parameter as TNSNAME.
        * System.Data.OracleClient/OciGlue.cs:
        Change DllImport from "System.Data.OracleClient.ociglue.dll" to
        "ociglue".
        * System.Data.OracleClient/OciGlueLib_GCC_linux.make:
        added makefile for ociglue shared lib on Linux platform
        and compiler gcc.

svn path=/trunk/mcs/; revision=11387
2003-02-09 03:46:24 +00:00
Jackson Harper f07ac8f82a forgot to commit changelog
svn path=/trunk/mcs/; revision=11386
2003-02-09 03:43:30 +00:00
Jackson Harper 86aa4c7948 oops
svn path=/trunk/mcs/; revision=11385
2003-02-09 03:42:35 +00:00
Jackson Harper f8f8ae2375 Add TypeManager.cs to build
svn path=/trunk/mcs/; revision=11384
2003-02-09 03:41:47 +00:00
Jackson Harper 105cf53662 Handle argument lists better
svn path=/trunk/mcs/; revision=11383
2003-02-09 03:39:19 +00:00
Jackson Harper cfe745701c * TypeManager.cs: Add file
* CodeGen.cs: Add TypeManager attribute
        * InstrBase.cs: Take a CodeGen in Emit method
        * Instructions.cs: Take a CodeGen in Emit method, handle arg lists better
        * Method.cs: Handle local variables better

svn path=/trunk/mcs/; revision=11382
2003-02-09 03:38:20 +00:00
Tim Coleman a98c2a96ae 2003-02-08 Tim Coleman <[email protected]>
* System.Data.OracleClient/OciGlueLib_GCC_linux.make:
        added makefile for ociglue shared lib on Linux platform
        and compiler gcc.

svn path=/trunk/mcs/; revision=11381
2003-02-09 02:44:00 +00:00
Jackson Harper 7d2d49e0bd Change class name
svn path=/trunk/mcs/; revision=11379
2003-02-08 23:50:42 +00:00
Jackson Harper eb94276bcf Change class name
svn path=/trunk/mcs/; revision=11378
2003-02-08 23:49:46 +00:00
Jackson Harper 2c83a37602 * test-2.il: Add new test
* makefile: Use new test

svn path=/trunk/mcs/; revision=11377
2003-02-08 23:46:27 +00:00
Jackson Harper eb4cea017d * Method.cs: Add functionality to define local variables
* Instructions.cs: Add newobj instruction, cleanup call instruction

svn path=/trunk/mcs/; revision=11376
2003-02-08 23:42:42 +00:00
Jackson Harper 8088be6ff0 Handle .local and newobj
svn path=/trunk/mcs/; revision=11375
2003-02-08 23:39:14 +00:00
Pedro Martínez Juliá 69ffe8cefc Fix a few methods in "Math.cs" and add the necesary internal calls to "icall.c", "sysmath.h" and "sysmath.c". There is also a modification of "MathTest.cs".
svn path=/trunk/mono/; revision=11373
2003-02-08 22:47:42 +00:00
Pedro Martínez Juliá fef73a42b0 Fix a few methods in "Math.cs" and add the necesary internal calls to "icall.c", "sysmath.h" and "sysmath.c". There is also a modification of "MathTest.cs".
svn path=/trunk/mcs/; revision=11373
2003-02-08 22:47:42 +00:00
Martin Baulig a948f85ee4 2003-02-08 Martin Baulig <[email protected]>
* MonoSymbolDocumentWriter.cs: Removed.

	* MonoSymbolWriter.cs (SourceFile): Implement ISymbolDocumentWriter.

svn path=/trunk/mcs/; revision=11372
2003-02-08 22:18:38 +00:00
Piers Haken 2224d09834 fix attachment filename
svn path=/trunk/mcs/; revision=11371
2003-02-08 22:13:14 +00:00
Martin Baulig 0acb6d0cdd This comment is incorrect, we aren't generating DWARF here.
svn path=/trunk/mcs/; revision=11370
2003-02-08 22:11:45 +00:00
Zoltan Varga 008af337d4 2003-02-08 Zoltan Varga <[email protected]>
* corlib_test.args: added TypeBuilderTest.cs.

svn path=/trunk/mcs/; revision=11366
2003-02-08 20:33:32 +00:00
Zoltan Varga 4126638853 2003-02-08 Zoltan Varga <[email protected]>
* TypeBuilderTest.cs: New file.

svn path=/trunk/mcs/; revision=11364
2003-02-08 20:32:25 +00:00
Gonzalo Paniagua Javier ffbcd0365b 2003-02-08 Gonzalo Paniagua Javier <[email protected]>
* list.unix: added ImageAttributes.cs.
	* System.Drawing/Graphics.cs: stubbed out all the methods.

svn path=/trunk/mcs/; revision=11363
2003-02-08 20:07:42 +00:00
Gonzalo Paniagua Javier 49f4b61e8b really remove Font.cs
svn path=/trunk/mcs/; revision=11362
2003-02-08 20:05:48 +00:00
Martin Baulig 68fa8de87a 2003-02-08 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (GetMethodSource): New public method.
	(FindMethod): Return the correct index.

svn path=/trunk/mcs/; revision=11360
2003-02-08 19:24:01 +00:00
Paolo Molaro a9b126bce5 Fixed build.
svn path=/trunk/mcs/; revision=11359
2003-02-08 18:30:20 +00:00
Zoltan Varga e41b1cb367 2003-02-08 Zoltan Varga <[email protected]>
* corlib_test.args: added beginnings of Reflection.Emit test suite.

svn path=/trunk/mcs/; revision=11357
2003-02-08 16:57:21 +00:00
Zoltan Varga 322bd32b87 2003-02-08 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs ChangeLog: New files.

svn path=/trunk/mcs/; revision=11356
2003-02-08 16:53:39 +00:00
Zoltan Varga 2d3c3404d4 2003-02-08 Zoltan Varga <[email protected]>
* unix.args: added MACAlgorithm and HMACAlgorithm.

svn path=/trunk/mcs/; revision=11355
2003-02-08 16:49:42 +00:00
Zoltan Varga de14fed65e 2003-02-08 Zoltan Varga <[email protected]>
* MethodBuilder.cs: Added error checking to methods so they conform to
	MSDN docs. Implemented 'GetModule' and 'CallingConvention' members.
	Some other tweaks to improve compatibility with MS .NET.

	* TypeBuilder.cs: Added 'is_created' property which will be used for
	checking 'type is already created' errors.

svn path=/trunk/mcs/; revision=11354
2003-02-08 16:48:09 +00:00
Sebastien Pouliot 66e393eccc 2003-02-08 Sebastien Pouliot <[email protected]>
* Changes to refer Mono.Xml

svn path=/trunk/mcs/; revision=11353
2003-02-08 16:31:12 +00:00
Sebastien Pouliot 77c0bce859 2003-02-08 Sebastien Pouliot <[email protected]>
* RemotingConfiguration.cs: Changed using to Mono.Xml for MiniParser.

svn path=/trunk/mcs/; revision=11352
2003-02-08 16:29:10 +00:00
Sebastien Pouliot c992524d56 2003-02-08 Sebastien Pouliot <[email protected]>
* MiniParser.cs: Renamed namespace to match new location.

svn path=/trunk/mcs/; revision=11351
2003-02-08 16:26:50 +00:00
Gonzalo Paniagua Javier 5c7845e91b 2003-02-08 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: when adding a control, assign default names to th
	children that don't have one.

svn path=/trunk/mcs/; revision=11350
2003-02-08 16:23:07 +00:00
Paolo Molaro 4e6194346f Sat Feb 8 17:03:16 CET 2003 Paolo Molaro <[email protected]>
* statement.cs: don't clear the pinned var when the fixed statement
	returns from the method (fixes bug#37752).

svn path=/trunk/mcs/; revision=11349
2003-02-08 16:08:59 +00:00
Sebastien Pouliot 5cd2a34764 2003-02-08 Sebastien Pouliot <[email protected]>
* X509Certificate.cs: Changes to refer Mono.Security (for ASN1)

svn path=/trunk/mcs/; revision=11348
2003-02-08 12:57:36 +00:00
Sebastien Pouliot 5e535232a9 2003-02-08 Sebastien Pouliot <[email protected]>
* Changes to refer Mono.Math and Mono.Security.Cryptography

svn path=/trunk/mcs/; revision=11347
2003-02-08 12:55:27 +00:00
Sebastien Pouliot 695fc75d04 2003-02-08 Sebastien Pouliot <[email protected]>
* CryptoTools.cs: Renamed namespace to match new location.
	* PKCS1.cs: Renamed namespace to match new location.
	* HMACAlgorithm.cs: New. Generic class to implement HMAC
	using any hash algorithm (was in S.S.C.HMACSHA1.cs).
	* MACAlgorithm.cs: New. Generic class to implement MAC
	using any symmetric algorithm (was in S.S.C.MACTripleDES.cs).

svn path=/trunk/mcs/; revision=11346
2003-02-08 12:43:41 +00:00
Sebastien Pouliot e6cdf26e7f 2003-02-08 Sebastien Pouliot <[email protected]>
* ASN1.cs: Renamed namespace to match new location.

svn path=/trunk/mcs/; revision=11345
2003-02-08 12:42:32 +00:00
Sebastien Pouliot 7f0fc6738e 2003-02-08 Sebastien Pouliot <[email protected]>
* BigInteger.cs: Renamed namespace to match new location.

svn path=/trunk/mcs/; revision=11344
2003-02-08 12:41:34 +00:00
Paolo Molaro b2b47a6f96 Sat Feb 8 12:58:06 CET 2003 Paolo Molaro <[email protected]>
* typemanager.cs: fix from [email protected] (Marcus Urban)
	to IsValueType ().

svn path=/trunk/mcs/; revision=11343
2003-02-08 12:18:50 +00:00
Piers Haken 0c2bd9442a 2003-02-08 Piers Haken <[email protected]>
* fixed case of pens.cs and font.cs

svn path=/trunk/mcs/; revision=11342
2003-02-08 10:15:05 +00:00
Piers Haken af6ea1ed3b *** empty log message ***
svn path=/trunk/mcs/; revision=11340
2003-02-08 10:00:47 +00:00
Ville Palo 317c988f05 2003-02-08 Ville Palo <[email protected]>
* ExpressionElement.cs: More implementation

svn path=/trunk/mcs/; revision=11339
2003-02-08 09:58:00 +00:00
Piers Haken cbdaa40bed *** empty log message ***
svn path=/trunk/mcs/; revision=11338
2003-02-08 08:15:26 +00:00
Dietmar Maurer 219db36825 use gconstpointer in mono_marshal_get_icall_wrapper()
svn path=/trunk/mono/; revision=11337
2003-02-08 07:53:49 +00:00
Piers Haken 1295049706 *** empty log message ***
svn path=/trunk/mcs/; revision=11336
2003-02-08 03:41:29 +00:00
Dennis Hayes c22ccc6dd3 getting SWF to compile
svn path=/trunk/mcs/; revision=11334
2003-02-08 01:37:18 +00:00
Dennis Hayes 484f8bf14a getting swf to compile
svn path=/trunk/mcs/; revision=11333
2003-02-08 01:36:59 +00:00
Dennis Hayes 14edfc4786 additions to get SWF to compile
svn path=/trunk/mcs/; revision=11332
2003-02-08 01:33:53 +00:00
Dennis Hayes 198b6ed56d *** empty log message ***
svn path=/trunk/mcs/; revision=11331
2003-02-08 01:31:15 +00:00
Martin Baulig 21b28272b2 2003-02-07 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (Methods, Sources): New public properties.

svn path=/trunk/mcs/; revision=11327
2003-02-07 18:05:59 +00:00
Dietmar Maurer 40697f117f fix: use MONO_ARCH_SAVE_REGS for mono_ldstr
svn path=/trunk/mono/; revision=11325
2003-02-07 17:58:37 +00:00
Martin Baulig 95600d6b38 2003-02-07 Martin Baulig <[email protected]>
* debug-mono-symfile.c (mono_debug_symfile_add_method): Ignore interncalls.

svn path=/trunk/mono/; revision=11324
2003-02-07 17:58:08 +00:00
Martin Baulig 55abeb083e Cosmetic fixes.
svn path=/trunk/mcs/; revision=11322
2003-02-07 17:55:29 +00:00
Patrik Torstensson 9c32c4e70a 2003-02-07 Patrik Torstensson
* Exception.cs: Fixed formating.

svn path=/trunk/mcs/; revision=11315
2003-02-07 16:04:24 +00:00
Martin Baulig ca00eff4e6 Removed this debugging statement.
svn path=/trunk/mcs/; revision=11314
2003-02-07 15:10:32 +00:00
Martin Baulig 761d18aaec 2003-02-07 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): New public
	static method, returns null (without throwing an exception) if the
	assembly doesn't have any debugging info.

svn path=/trunk/mcs/; revision=11312
2003-02-07 15:07:48 +00:00
Martin Baulig 98bebaf7c7 Reflect latest API changes.
svn path=/trunk/mono/; revision=11311
2003-02-07 15:06:53 +00:00
Martin Baulig 9552f4e872 2003-02-07 Martin Baulig <[email protected]>
* debug-mono-symfile.c: Reflected latest symwriter changes.
	(mono_debug_create_mono_symbol_file): Removed.
	(mono_debug_open_mono_symbol_file): Take an argument which
	specifies whether to create a dynamic symbol file.

svn path=/trunk/mono/; revision=11310
2003-02-07 15:05:18 +00:00
Patrik Torstensson 701cbd7aa2 2003-02-07 Patrik Torstensson
* CADMessages.cs: Disable smuggeling of objects cross domain, still issues casing remoting
	  to fail. (fixed formating)

svn path=/trunk/mcs/; revision=11309
2003-02-07 14:59:31 +00:00
Patrik Torstensson bd252fb987 Oops, removed debuging writeline:s
svn path=/trunk/mcs/; revision=11308
2003-02-07 14:58:20 +00:00
Patrik Torstensson 3bdd57dd9d 2003-02-07 Patrik Torstensson
* RemotingServices.cs: Always marshal an object in GetObjectData

svn path=/trunk/mcs/; revision=11307
2003-02-07 14:56:31 +00:00
Dietmar Maurer 0da3eff54a 2003-02-07 Dietmar Maurer <[email protected]>
* class.c (mono_class_from_mono_type): added MONO_TYPE_TYPEDBYREF

svn path=/trunk/mono/; revision=11306
2003-02-07 13:46:08 +00:00
Martin Baulig e7da10fc99 2003-02-07 Martin Baulig <[email protected]>
* MonoSymbolWriter.cs (MonoSymbolWriter.Initialize): Removed the
	custom initialization function.

svn path=/trunk/mcs/; revision=11302
2003-02-07 12:12:58 +00:00
Martin Baulig 641e7690af 2003-02-07 Martin Baulig <[email protected]>
* driver.cs: Removed the `--debug-args' command line argument.

	* codegen.cs (CodeGen.SaveSymbols): Removed, this is now done
	automatically by the AsssemblyBuilder.
	(CodeGen.InitializeSymbolWriter): We don't need to call any
	initialization function on the symbol writer anymore.  This method
	doesn't take any arguments.

svn path=/trunk/mcs/; revision=11301
2003-02-07 12:12:39 +00:00
Martin Baulig 8b0ec138b9 Close() must not be called.
svn path=/trunk/mcs/; revision=11300
2003-02-07 12:03:56 +00:00
Martin Baulig 5d2fb1e870 2003-02-07 Martin Baulig <[email protected]>
* ModuleBuilder.cs (.ctor): Added `bool IsMainModule' argument.
	(Save): New internal method; creates the module's symbol file if
	we're compiling with debugging information.

	* AssemblyBuilder.cs (EmbedResource): Added internal overloaded
	version of this method which takes a `byte[] blob' instead of a file.
	(DefineDynamicMethod): If this is the first module, tell the
	ModuleBuilder that this is the main module.
	(Save): Call a new interncall `build_metadata' to create the final
	metadata and save all the symbol files before creating the actual
	output.

	* IMonoSymbolWriter.cs: New public class; it is in the namespace
	Mono.CSharp.Debugger.  The Mono symbol writer implements this interface.

svn path=/trunk/mcs/; revision=11299
2003-02-07 12:02:07 +00:00
Martin Baulig 3097649a23 2003-02-05 Martin Baulig <[email protected]>
* reflection.c (mono_image_build_metadata): Make this public,
	protect it against being called multiple times, don't create
	resources and don't build the compressed metadata here.
	(mono_image_create_pefile): Do this here.

	* icall.c
	("System.Reflection.Emit.AssemblyBuilder::build_metadata"): Added.

svn path=/trunk/mono/; revision=11298
2003-02-07 12:01:11 +00:00
Patrik Torstensson 2763585afc 2003-02-07 Patrik Torstensson
* Timer.cs: Set the background thread flag for the timer thread.

svn path=/trunk/mcs/; revision=11297
2003-02-07 11:50:06 +00:00
Martin Baulig d573355379 2003-02-07 Martin Baulig <[email protected]>
* MonoSymbolTableWriter.cs: Removed; the code is now in
	MonoSymbolFile.cs and MonoSymbolWriter.cs.

svn path=/trunk/mcs/; revision=11296
2003-02-07 11:42:08 +00:00
Martin Baulig 8776008885 2003-02-07 Martin Baulig <[email protected]>
* MonoSymbolFile.cs: The symbol file is now a resource in the
	assembly instead of a separate file.

	* MonoSymbolTable.cs: Did a few more cleanups, sort the line
	number table and remove duplicate line numbers.

svn path=/trunk/mcs/; revision=11295
2003-02-07 11:39:48 +00:00
Lluis Sanchez ad00cf6570 CADMessages.cs: Some minor changes that allow reuse of ObjRef methods.
svn path=/trunk/mcs/; revision=11294
2003-02-07 11:14:50 +00:00
Lluis Sanchez 36b567c8c9 * ChannelServices.cs: Added new constructor in ChannelInfoStore, that is used by
ObjRef to create a ChannelInfoStore with user provided channel info.

svn path=/trunk/mcs/; revision=11293
2003-02-07 11:14:23 +00:00
Lluis Sanchez 92b40c85a4 * Identity.cs: Added ObjRef attribute, that holds the objref of the object.
Removed implementation of CreateObjRef. Now it is implemented in the derived classes.
	* ServerIdentity.cs: Added implementation of CreateObjRef.
	* RemotingServices.cs: Changed implementation of GetRemoteObject and GetClientIdentity.
	  Now they only have and ObjRef as input parameter. This is the objref received from
	  the server. Unmarshal() also checks if the objref is for a well known object.
	  In this case, a proxy is always created, but if not, it tries to get the real object.
	* ObjRef.cs: Added some flags that have info for marshalling/unmarshalling.
	  Changed behavior of IsPossibleToCAD. Now returns false. Returning true makes serialization
	  of this ObjRef to fail in the target AD. Added method UpdateChannelInfo.

svn path=/trunk/mcs/; revision=11292
2003-02-07 11:12:12 +00:00
Jackson Harper 13999b6e73 * ILParser.jay: Allow assembly names to have lots of dashes.
svn path=/trunk/mcs/; revision=11291
2003-02-07 02:40:17 +00:00
Jackson Harper 82aa8b04de * ILParser.jay: Add dash token, allow assembly refs to have dashes in their names.
svn path=/trunk/mcs/; revision=11290
2003-02-07 02:36:20 +00:00
Jackson Harper 509c971225 * IlToken.cs: Add Dash Token (this is used for assembly names)
* ILTokenizer.cs: Return Dash token

svn path=/trunk/mcs/; revision=11289
2003-02-07 02:32:53 +00:00
Sebastien Pouliot 1fce1de9da 2003-02-06 Sebastien Pouliot <[email protected]>
* unix.args: Move some class from System.Security.Cryptography
	  into Mono.* for easier reuse.

svn path=/trunk/mcs/; revision=11287
2003-02-07 00:56:57 +00:00
Sebastien Pouliot bfae0b67e3 *** empty log message ***
svn path=/trunk/mcs/; revision=11286
2003-02-06 23:43:13 +00:00
Sebastien Pouliot 16151faef0 *** empty log message ***
svn path=/trunk/mcs/; revision=11285
2003-02-06 23:25:30 +00:00
Gonzalo Paniagua Javier 1fd1729bbd 2003-02-06 Gonzalo Paniagua Javier <[email protected]>
* Xml.cs: don't call MapPathSecure when setting DocumentSource.

svn path=/trunk/mcs/; revision=11282
2003-02-06 18:50:13 +00:00
Gonzalo Paniagua Javier a386153efc 2003-02-06 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: fixed bug #36322.

svn path=/trunk/mono/; revision=11280
2003-02-06 15:55:18 +00:00
Dick Porter 40fd4c2e1b Only look for iconv headers in well-defined locations
svn path=/trunk/mono/; revision=11279
2003-02-06 13:46:21 +00:00
Patrik Torstensson 304a621cd5 2002-02-06 Patrik Torstensson
* binwritter.cs : Tests binary writter and checks that correct data has been added to the array

svn path=/trunk/mono/; revision=11278
2003-02-06 13:25:47 +00:00
Patrik Torstensson 98ef547a55 Tests the binary writter functionality
svn path=/trunk/mono/; revision=11277
2003-02-06 12:34:49 +00:00
Jaime Anguiano Olarra 12d8f1b7c1 Little fixes.
svn path=/trunk/mcs/; revision=11276
2003-02-06 11:04:08 +00:00
Piers Haken e19a2f4016 2003-02-06 Piers Haken <[email protected]>
* appdomain.[ch]:
	* class.h:
	* debug-mono-symfile.c:
	* icall.c:
	* loader.c:
	* mono-config.c:
	* monosn.c:
	* reflection.c:
	* socket-io.c: warning cleanups

svn path=/trunk/mono/; revision=11275
2003-02-06 09:53:03 +00:00
Piers Haken afdfb23005 2003-02-06 Piers Haken <[email protected]>
* interp.c: warning cleanups

svn path=/trunk/mono/; revision=11274
2003-02-06 09:46:48 +00:00
Piers Haken fcc320c9f0 Thu Feb 6 02:43:23 PST 2003 Piers Haken <[email protected]>
* dump.c: more warning cleanups

svn path=/trunk/mono/; revision=11273
2003-02-06 09:45:01 +00:00
Piers Haken dbc3cd7b36 Thu Feb 6 02:43:23 PST 2003 Piers Haken <[email protected]>
* monograph.c: more warning cleanups

svn path=/trunk/mono/; revision=11272
2003-02-06 09:44:04 +00:00
Dietmar Maurer 437c186e60 2003-02-06 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_remoting_invoke_with_check): new
	function. works like remoting invoke, but does a check for the Proxy first.

svn path=/trunk/mono/; revision=11271
2003-02-06 08:56:50 +00:00
Miguel de Icaza 78f6ef1cce Commit kludges to get this to compile
svn path=/trunk/mcs/; revision=11270
2003-02-06 07:29:35 +00:00
Sebastien Pouliot bd02468d72 2003-02-05 Sebastien Pouliot <[email protected]>
* crypto: Updated for Mono.Security.Win32

svn path=/trunk/mono/; revision=11267
2003-02-06 03:56:29 +00:00
Sebastien Pouliot 40ab00b063 2003-02-05 Sebastien Pouliot <[email protected]>
* library.build: added Mono.Security.Win32 to build, test and
	clean. There's no makefile.gnu for this assembly as it is
	specific to Win32.

svn path=/trunk/mcs/; revision=11266
2003-02-06 03:46:37 +00:00
Dennis Hayes 13103b826e see last note
svn path=/trunk/mcs/; revision=11265
2003-02-06 03:45:10 +00:00
Dennis Hayes 0261aa4196 checkin for Alexandre Pigolkine, a lot more stuff working, see changelog for sample tests
svn path=/trunk/mcs/; revision=11264
2003-02-06 03:44:35 +00:00
Sebastien Pouliot 8b4eb21ba2 2003-02-05 Sebastien Pouliot <[email protected]>
* MD2CryptoServiceProviderTest.cs: New. Run the MD2Test
	unit tests using MD2CryptoServiceProvider class.
	* MD2Test.cs: New. Implement the test vectors included
	in RFC1319.
	* MD4CryptoServiceProviderTest.cs: New. Run the MD4Test
	unit tests using MD4CryptoServiceProvider class.
	* MD4Test.cs: New. Implement the test vectors included
	in RFC1320.
	* MD5CryptoServiceProviderTest.cs: New. Run the MD5Test
	unit tests using MD5CryptoServiceProvider class.
	* MD5Test.cs: New. Implement the test vectors included
	in RFC1321.
	* RandomNumberGeneratorTest.cs: New. FIPS140 randomness
	tests.
	* SHA1CryptoServiceProviderTest.cs: New. Run the SHA1Test
	unit tests using SHA1CryptoServiceProvider class.
	* SHA1Test.cs: New. Implement the test vectors included
	in FIPS186.

svn path=/trunk/mcs/; revision=11263
2003-02-06 03:42:35 +00:00
Sebastien Pouliot 968326449f 2003-02-05 Sebastien Pouliot <[email protected]>
* Mono.Security.Win32_test.build: New. NAnt build file
	for unit tests.

svn path=/trunk/mcs/; revision=11262
2003-02-06 03:36:45 +00:00
Gonzalo Paniagua Javier a02b43a1e8 2003-02-06 Gonzalo Paniagua Javier <[email protected]>
* HttpApplication.cs: display the error instead of hanging when we get
	any error before the last step of the request.

svn path=/trunk/mcs/; revision=11261
2003-02-06 03:32:28 +00:00
Gonzalo Paniagua Javier 47e29c2de0 2003-02-06 Gonzalo Paniagua Javier <[email protected]>
* error.c: added WSA_EHOSTUNREACH mapping.

svn path=/trunk/mono/; revision=11260
2003-02-06 03:28:26 +00:00
Sebastien Pouliot 84b1abff2e 2003-02-05 Sebastien Pouliot <[email protected]>
* CapiContext.cs: New. Class to acquire and release an
	  unmanaged context with CryptoAPI.
	* CapiHash.cs: New. Base class to handle hash algorithms.
	* CapiRandomNumberGenerator.cs: New. Base class to handle
	  random number generation.
	* CryptoAPI.cs: Wrapper class around CryptoAPI.
	* MD2.cs: Abstract class for Message Digest 2 (RFC1319).
	* MD2CryptoServiceProvider.cs: Unmanaged MD2 implementation.
	* MD4.cs: Abstract class for Message Digest 4 (RFC1320).
	* MD4CryptoServiceProvider.cs: Unmanaged MD4 implementation.
	* MD5CryptoServiceProvider.cs: Unmanaged MD5 implementation.
	* RNGCryptoServiceProvider.cs: Unmanaged RNG implementation.
	* MD2CryptoServiceProvider.cs: Unmanaged SHA1 implementation.

svn path=/trunk/mcs/; revision=11259
2003-02-06 03:27:34 +00:00
Sebastien Pouliot 7d71cacbf6 2003-02-05 Sebastien Pouliot <[email protected]>
* Mono.Security.Win32.build: New. NAnt build file. As this
	  assembly works only on Windows there are no makefile.gnu.
	* README: New. Describe how to use (and not to use) this
	  assembly.

svn path=/trunk/mcs/; revision=11258
2003-02-06 03:24:43 +00:00
Gonzalo Paniagua Javier 9019e3ef4c 2003-02-06 Gonzalo Paniagua Javier <[email protected]>
* Win32Exception.cs: added 10065 (WSA_EHOSTUNREACH).

svn path=/trunk/mcs/; revision=11257
2003-02-06 03:23:16 +00:00
Rafael Teixeira 1a9671a17d One more test file
svn path=/trunk/mcs/; revision=11256
2003-02-06 03:13:49 +00:00
Alvaro del Castillo fe14fa4e67 2003-02-05 Alvaro del Castillo <[email protected]>
* System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSink.cs:
        * System.Runtime.Remoting.Channels.Tcp/TcpMessageIO.cs:
        * System.Runtime.Remoting.Channels.Tcp/TcpServerChannel.cs:
        Change MessageType to MessageStatus so the code is
        more clear

svn path=/trunk/mcs/; revision=11254
2003-02-05 22:00:42 +00:00
Gonzalo Paniagua Javier 8471f1a9c4 Initial check-in
svn path=/trunk/mcs/; revision=11253
2003-02-05 21:14:53 +00:00
Miguel de Icaza 1a7bf72ecc 2003-02-05 Miguel de Icaza <[email protected]>
* appdomain.c (ves_icall_System_AppDomain_InternalUnload): Make it compiler.

svn path=/trunk/mono/; revision=11251
2003-02-05 19:54:50 +00:00
Miguel de Icaza 543db8aa8b Ilasm removal from the build for now
svn path=/trunk/mcs/; revision=11250
2003-02-05 19:51:25 +00:00
Dietmar Maurer bb511d6f99 new test
svn path=/trunk/mono/; revision=11249
2003-02-05 18:57:03 +00:00
Miguel de Icaza b611714b1a flus
svn path=/trunk/mono/; revision=11247
2003-02-05 17:58:52 +00:00
Ville Palo d3bb75b952 fixed little typo
svn path=/trunk/mcs/; revision=11246
2003-02-05 16:34:00 +00:00
Ville Palo 44a75306a6 2003-02-05 Alan Tam <[email protected]>
* DesignedCategoryAttribute.cs: Implemented DesignerCategoryAttribute

svn path=/trunk/mcs/; revision=11245
2003-02-05 16:07:23 +00:00
Ville Palo 79ed95c592 2003-02-05 Alan Tam <[email protected]>
* DataSet.cs: Added framework for DataSet.Update Implemented missing
	methods GetSchemaSerializable, GetSerializationData,
	ReadXmlSerializable, ShouldSerializeRelations and ShouldSerializeTables
	for DataSet
	* DataTable.cs: Implemented missing methods CreateInstance and
	GetRowType for DataTable

svn path=/trunk/mcs/; revision=11244
2003-02-05 15:48:57 +00:00
Dietmar Maurer f13f62ef20 added some docu
svn path=/trunk/mono/; revision=11243
2003-02-05 14:44:03 +00:00
Dietmar Maurer c60f8a4cd8 2003-02-05 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): only allocate an
	array of pointers.
	(mono_marshal_get_ldfld_wrapper): only generate necessary ldfld wrappers.
	(mono_marshal_get_stfld_wrapper): only generate necessary stfld wrappers.

svn path=/trunk/mono/; revision=11242
2003-02-05 14:34:18 +00:00
Dietmar Maurer 9d2fdc34b7 2003-02-05 Dietmar Maurer <[email protected]>
* object.c (mono_store_remote_field_new): used by the new jit
	instead of mono_store_remote_field
	(mono_load_remote_field_new): used by the new jit
	instead of mono_load_remote_field

svn path=/trunk/mono/; revision=11241
2003-02-05 13:12:20 +00:00
Gonzalo Paniagua Javier d68037daf4 InternalUnload is private
svn path=/trunk/mcs/; revision=11240
2003-02-05 10:45:18 +00:00
Patrik Torstensson 14c8194db3 2003-02-05 Patrik Torstensson
* ThreadPool.cs: Reformated and fixed issue that made all thread exit the pool.

svn path=/trunk/mcs/; revision=11239
2003-02-05 10:43:51 +00:00
Patrik Torstensson 3f3317a3fa 2003-02-05 Patrik Torstensson
* AppDomain.cs: Partly fixed the unload method

svn path=/trunk/mcs/; revision=11238
2003-02-05 10:18:03 +00:00
Patrik Torstensson 5d2b8cb11f 2003-02-05 Patrik Torstensson
* appdomain.c: changed unload to take the domain id instead
	of domain

	* icall.c: changed icall for AppDomain.Unload to AppDomain.InternalUnload

svn path=/trunk/mono/; revision=11237
2003-02-05 10:15:28 +00:00
Patrik Torstensson f367581fc6 2003-02-05 Patrik Torstensson
* appdomain3.cs: Added test for unload of a appdomain

svn path=/trunk/mono/; revision=11236
2003-02-05 10:10:37 +00:00
Gonzalo Paniagua Javier 3a7c87f7ec 2003-02-05 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: don't look for assemblies in ApplicationBase if
	PrivateBinPathProbe is set.

svn path=/trunk/mono/; revision=11232
2003-02-05 04:04:27 +00:00
Sebastien Pouliot fdc039e905 2003-03-04 Sebastien Pouliot <[email protected]>
* crypto: Updated crypto status page. Added some details.

svn path=/trunk/mono/; revision=11231
2003-02-05 03:59:12 +00:00
Gonzalo Paniagua Javier 602b47f906 2003-02-05 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: remove "file://" from the private bin path. Fixes
	bug #37628.

svn path=/trunk/mcs/; revision=11230
2003-02-05 03:49:19 +00:00
Sebastien Pouliot 572fe3eb74 2003-03-04 Sebastien Pouliot <[email protected]>
* CryptoConfigTest.cs: Added new tests for algorithms
	documented in book ".NET Framework Security".

svn path=/trunk/mcs/; revision=11229
2003-02-05 03:40:23 +00:00
Sebastien Pouliot 3f9d0cab18 2003-03-04 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Added initital support for "machine.config"
	(limited to algorithms, not OIDs). Modified CreateFromName to use
	the fully qualified class names (and removed xmldsig hack). Added
	algorithm names documented in book ".NET Framework Security".

svn path=/trunk/mcs/; revision=11228
2003-02-05 03:38:17 +00:00
Jackson Harper 7bbf9b93bf Add Header, put in a namespace
svn path=/trunk/mcs/; revision=11227
2003-02-05 02:58:25 +00:00
Jackson Harper 8f4c2fff01 Use .il files not .cs ;-)
svn path=/trunk/mcs/; revision=11226
2003-02-05 02:54:54 +00:00
Jackson Harper 1104e5742c * HelloWorld.il: Remove
* test-1.il: New test
        * makefile: Added file

svn path=/trunk/mcs/; revision=11225
2003-02-05 02:51:23 +00:00
Sebastien Pouliot adc6f48f54 2003-02-04 Sebastien Pouliot <[email protected]>
* Module.cs: Corrected indentation for class.

svn path=/trunk/mcs/; revision=11224
2003-02-05 02:27:03 +00:00
Martin Baulig 7dd3e6254e 2003-02-05 Martin Baulig <[email protected]>
Modified the symbol file format to speed up method looks by name
	and cleaned this up a lot.

	* MonoSymbolFile.cs: New public class.  This is now a public class
	and writes and reads the symbol file.

	* IMonoBinaryReader.cs: Removed.

	* MonoSymbolTable.cs: Set version number to 29.

svn path=/trunk/mcs/; revision=11223
2003-02-05 01:27:18 +00:00
Lluis Sanchez e1a95712c4 MessageFormatter.cs: Corrected some bugs that affected serialization of exceptions
svn path=/trunk/mcs/; revision=11222
2003-02-05 01:21:43 +00:00
Lluis Sanchez 53653fa9f7 CrossAppDomainChannel.cs: Corrected CADSerializer.DeserializeMessage.
Now it uses the method DeserializeMethodResponse to deserialize the message when the msg is provided.

svn path=/trunk/mcs/; revision=11221
2003-02-05 01:20:23 +00:00
Lluis Sanchez fbba486d1b ReturnMessage.cs, MethodResponse.cs: OutArgs initialized to an empty array when the the message returns an exception.
svn path=/trunk/mcs/; revision=11220
2003-02-05 01:19:35 +00:00
Gonzalo Paniagua Javier 751a50cc8f 2003-02-05 Gonzalo Paniagua Javier <[email protected]>
* object.c: make the first argument in main_args contain the absolute
	path to the assembly. Fixes bug #37511.

svn path=/trunk/mono/; revision=11219
2003-02-05 01:12:31 +00:00
Gonzalo Paniagua Javier b7312b9149 2003-02-05 Gonzalo Paniagua Javier <[email protected]>
* RangeValidator.cs: fixed bug #37577. Thanks to Stephane Tombeur
	for reporting the bug and providing the fix.

svn path=/trunk/mcs/; revision=11217
2003-02-05 00:02:45 +00:00
Gonzalo Paniagua Javier 6980211f12 2003-02-04 Gonzalo Paniagua Javier <[email protected]>
* icall.c: get correct UTC offset for countries not using daylight
	time saving. Fixes bug #30030.

svn path=/trunk/mono/; revision=11216
2003-02-04 22:55:28 +00:00
Gonzalo Paniagua Javier f423cb7491 oops.
svn path=/trunk/mcs/; revision=11215
2003-02-04 20:31:56 +00:00
Gonzalo Paniagua Javier f023ea9bdd 2003-02-04 Gonzalo Paniagua Javier <[email protected]>
* Binder.cs:
	(check_type): return true when the target type is object and the source
	is a value type.

svn path=/trunk/mcs/; revision=11214
2003-02-04 20:26:22 +00:00
Gonzalo Paniagua Javier a95e5d1b25 2003-02-04 Tim Haynes <[email protected]>
* System.Web/HttpApplicationFactory.cs: fixed HttpRuntime.Close() to
	decrement instance counter.

	* System.Web.Hosting/SimpleWorkerRequest.cs: changed the initialised
	values of _App{Install,Virtual}Path variables

svn path=/trunk/mcs/; revision=11212
2003-02-04 17:05:45 +00:00
Piers Haken ca26c4d1e9 2003-01-04 Piers Haken <[email protected]>
* Parser.*: Remove extraneous "using" that was stopping the build. Permanently thisi time ;-)

svn path=/trunk/mcs/; revision=11211
2003-02-04 16:06:11 +00:00
Nick Drochak a5a0060d0a 2003-02-05 Nick Drochak <[email protected]>
* StringBuilderTest.cs: Test for specific exception using Nunit verson
	2 style Attribute.

svn path=/trunk/mcs/; revision=11210
2003-02-04 15:27:38 +00:00
Nick Drochak c835b2ebb3 2003-02-05 Nick Drochak <[email protected]>
* FileTest.cs: Have setup remove files before testing as well in case
	tests were interrupted before TearDown could be called in a previous
	run. Also test for specific exception in TestGetCreationTime ().

svn path=/trunk/mcs/; revision=11209
2003-02-04 15:25:50 +00:00
Nick Drochak 5ef5d397e8 2003-02-05 Nick Drochak <[email protected]>
* StringTest.cs: Remove compiler warnings.

svn path=/trunk/mcs/; revision=11208
2003-02-04 15:22:23 +00:00
Gonzalo Paniagua Javier 04a0ff9629 2003-02-04 Gonzalo Paniagua Javier <[email protected]>
* configure.in: added check for sys/un.h.
	* mono/metadata/socket-io.c: support AF_UNIX and use the same layout as
	MS, not the one they documented (bytes 0 and 1 are the family).

svn path=/trunk/mono/; revision=11207
2003-02-04 15:20:14 +00:00
Gonzalo Paniagua Javier 29039ab97c 2003-02-04 Gonzalo Paniagua Javier <[email protected]>
* SocketAddress.cs: byte 1 of the data is the high byte of the family,
	not the size.

svn path=/trunk/mcs/; revision=11206
2003-02-04 15:19:52 +00:00
Lluis Sanchez 28045640e4 ThreadPool.cs: Implemented RegisterWaitForSingleObject methods.
svn path=/trunk/mcs/; revision=11205
2003-02-04 14:57:10 +00:00
Ville Palo b8a42023ba 2003-04-02 Ville Palo <[email protected]>
* DataColumnTest.cs: Added tests for Expression property

svn path=/trunk/mcs/; revision=11204
2003-02-04 14:14:45 +00:00
Patrik Torstensson 94b77d4c86 2002-02-04 Patrik Torstensson
* AppDomain.cs: Miss in last commit, fixed.

svn path=/trunk/mcs/; revision=11203
2003-02-04 13:59:39 +00:00
Patrik Torstensson de2c88c52b 2002-02-04 Patrik Torstensson
* AppDomain.cs : Fixed InitializeLifetimeServices

svn path=/trunk/mcs/; revision=11202
2003-02-04 13:43:34 +00:00
Lluis Sanchez 733b2baac6 unix.args: added ServerIdentity.cs, Lease.cs, LeaseManager.cs
svn path=/trunk/mcs/; revision=11201
2003-02-04 12:55:58 +00:00
Lluis Sanchez 1a0f25be2f MessageFormatter.cs: Implemented serialization of message properties.
svn path=/trunk/mcs/; revision=11200
2003-02-04 12:55:02 +00:00
Lluis Sanchez a07c9658be * ServerContextTerminatorSink.cs: Modified to work with new types of identities.
* ReturnMessage.cs: Removed internal dependence to MonoMethodMessage. It is not needed now.
* MonoMethodMessage.cs: Now only has method call keys in the dictionary.
* MethodReturnDictionary.cs, MethodCallDictionary.cs: Made public the list of
  method keys. This list is used in MessageFormatter.
* MethodDictionary.cs: Corrected some minor bugs.
* MethodCall.cs: minor correction on constructor.

svn path=/trunk/mcs/; revision=11199
2003-02-04 12:54:31 +00:00
Lluis Sanchez afe496c9cd * LifetimeServices.cs: Implemented all methods.
* LeaseSink.cs: implemented renewal of lease.
* Lease.cs: Added. It is an implementation of ILease.
* LeaseManager.cs: Added. Tracks lifetime of remote objects.

svn path=/trunk/mcs/; revision=11198
2003-02-04 12:53:28 +00:00
Lluis Sanchez 1a2726468d ChannelServices.cs: Modified to work with new types of identities.
svn path=/trunk/mcs/; revision=11197
2003-02-04 12:52:48 +00:00
Lluis Sanchez 92f56eacf1 * Identity.cs: created and identity class for each identity type. It is a more clear design.
* ServerIdentity.cs: added. Implements identity funtionality specific to server objects
* RemotingServices.cs: Modified to work with new types of identities.
* RemotingConfiguration.cs: Modified to work with new types of identities.
* ObjRef.cs: Added initialization of channel info in default constructor.
* Identity.cs: Added support for WellKnownService objects.

svn path=/trunk/mcs/; revision=11196
2003-02-04 12:52:16 +00:00
Lluis Sanchez 4ae27e4746 MarshalByRefObject.cs: Implemented GetLifetimeService() and
InitializeLifetimeService().

svn path=/trunk/mcs/; revision=11195
2003-02-04 12:50:59 +00:00
Dietmar Maurer 381cb28ed9 2003-02-04 Dietmar Maurer <[email protected]>
* icall.c (ves_icall_InternalExecute): removed wrong assertion

svn path=/trunk/mono/; revision=11194
2003-02-04 12:05:34 +00:00
Dietmar Maurer 143f8f0b56 2003-02-04 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_remoting_invoke): generate valid IL

svn path=/trunk/mono/; revision=11193
2003-02-04 11:31:22 +00:00
Zoltan Varga 291693e4c2 2003-02-04 Zoltan Varga <[email protected]>
* reflection.c: added support for SignatureHelper tokens, which is
	needed by the Calli opcode.

	* reflection.h: track changes to SignatureHelper class.

	* metadata.c (mono_metadata_parse_signature): handle dynamic tokens.

svn path=/trunk/mono/; revision=11192
2003-02-04 10:39:43 +00:00
Zoltan Varga 28c52a2734 2003-02-04 Zoltan Varga <[email protected]>
* AssemblyBuilder.cs: added GetToken (SignatureHelper).

	* ILGenerator.cs: implemented EmitCalli() methods

	* SignatureHelper.cs: implemented GetMethoSigHelper() methods.

svn path=/trunk/mcs/; revision=11191
2003-02-04 10:33:54 +00:00
Jackson Harper 977debae0a Remove some debugging info.
svn path=/trunk/mcs/; revision=11190
2003-02-04 05:50:08 +00:00
Jackson Harper ea5fdf9b78 Added file
svn path=/trunk/mcs/; revision=11189
2003-02-04 04:35:20 +00:00
Sebastien Pouliot f79cea3342 2003-02-03 Sebastien Pouliot <[email protected]>
* PasswordDeriveBytesTest.cs: Added some new tests to complete
	coverage.
	* RSAPKCS1SignatureDeformatterTest.cs: Added test for null and
	invalid	hash algorithm.

svn path=/trunk/mcs/; revision=11188
2003-02-04 03:15:55 +00:00
Sebastien Pouliot a910c16579 2003-02-03 Sebastien Pouliot <[email protected]>
* PasswordDeriveBytes.cs: Finally got the derivation right. The
	class can now derive keys up to 1000 * HashSize (same limit as MS).
	* RSAPKCS1SignatureDeformatter.cs: No need to create the hash object
	in this class - the OID is enough.

svn path=/trunk/mcs/; revision=11187
2003-02-04 03:15:02 +00:00
Gonzalo Paniagua Javier 26b9f436da 2003-02-04 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: fixed loading assemblies from PrivateBinPath.

svn path=/trunk/mono/; revision=11185
2003-02-04 00:40:42 +00:00
Miguel de Icaza 41d6cb2429 New changes from Daniel Campos
svn path=/trunk/mcs/; revision=11184
2003-02-03 23:31:15 +00:00
Ville Palo dc68c49234 2003-02-03 Ville Palo <[email protected]>
* DataSet.cs: Implemented private method MapType for
	mapping datatypes for XmlSchema

svn path=/trunk/mcs/; revision=11180
2003-02-03 19:04:16 +00:00
Rafael Teixeira 7c9544a066 2003/02/03 Rafael Teixeira <[email protected]>
* rootcontext.cs : added RootNamespace member
	* mb-parser.jay : use RootContext.RootNamespace to initialize outermost namespace
	* driver.cs : 
		- implement rootnamespace parameter, and defaults it to the output file name
		- like vbc if no source file name is provided just show help

svn path=/trunk/mcs/; revision=11179
2003-02-03 18:56:53 +00:00
Gonzalo Paniagua Javier 0aa568cbf4 2003-02-03 Gonzalo Paniagua Javier <[email protected]>
* RemotingServices.cs:
	(GetMethodBaseFromMethodMessage): fixed to make it also work with
	internal methods without MethodSignature (see ApplicationHost.cs).

svn path=/trunk/mcs/; revision=11178
2003-02-03 18:43:10 +00:00
Ville Palo 83ece2d548 2003-03-02 Ville Palo <[email protected]>
* DataTableTest.cs: More tests for Select

svn path=/trunk/mcs/; revision=11170
2003-02-03 15:02:52 +00:00
Patrik Torstensson ecfe611a06 2003-02-03 Patrik Torstensson
* corlib.build: fixes so corlib_cmp and corlib_res builds, need to
	  check if we need the libs and if they still are correct.

svn path=/trunk/mcs/; revision=11169
2003-02-03 13:42:54 +00:00
Gonzalo Paniagua Javier 3d026cf5f0 oops. this is a bug in mcs
svn path=/trunk/mono/; revision=11168
2003-02-03 12:15:29 +00:00
Gonzalo Paniagua Javier 96fb9d17c7 fixed typo
svn path=/trunk/mono/; revision=11167
2003-02-03 12:07:52 +00:00
Patrik Torstensson 14994a5e46 Ooops, missed one file.
svn path=/trunk/mcs/; revision=11166
2003-02-03 11:41:16 +00:00
Patrik Torstensson ca8a4053d8 2003-02-03 Patrik Torstensson
* unix.args: added CADMessages.cs

svn path=/trunk/mcs/; revision=11165
2003-02-03 11:39:57 +00:00
Patrik Torstensson 732cf985ac 2003-02-03 Patrik Torstensson
* TrackingServices.cs: Implemented

svn path=/trunk/mcs/; revision=11164
2003-02-03 11:39:13 +00:00
Patrik Torstensson c373391049 2003-02-03 Patrik Torstensson
* Context.cs : Changed order of fields to match the runtime implementation.

svn path=/trunk/mcs/; revision=11163
2003-02-03 11:38:36 +00:00
Patrik Torstensson 740b00069e 2003-02-03 Patrik Torstensson
* CrossAppDomainChannel.cs: Implemented cross appdomain marshalling via cross
	app domain messages (smuggling objects between domains)

svn path=/trunk/mcs/; revision=11162
2003-02-03 11:37:44 +00:00
Patrik Torstensson 920df63be7 2003-02-03 Patrik Torstensson
* MethodResponse.cs: Implemented
	* MethodCall.cs: added support for Cross appdomain messages, implemented some
	missing methods.
	* MethodDictionary.cs: made serializible and added methods to get internal properties.
	* MonoMethodMessage.cs: internal dictionary is now serializible
	* ReturnMessage.cs: made serializible
	* ErrorMessage.cs: typo fix

	* CADMessage.cs: new file, implements cross appdomain messages, both call and return.
	Princip of this classes is to move unmutable objects and primitivs between appdomains
	without marshalling. This increase performance a lot of the cross appdomain channel.

svn path=/trunk/mcs/; revision=11161
2003-02-03 11:36:55 +00:00
Patrik Torstensson f69d6386e1 2003-02-03 Patrik Torstensson
* ObjRef.cs: added copy constructor and two helpers for cross
	  appdomain message marshalling.
	* RemotingServices.cs: Added helper to create transparant proxy for appdomain, and
	  register internal cross appdomain channel.

svn path=/trunk/mcs/; revision=11160
2003-02-03 11:34:52 +00:00
Patrik Torstensson a48c6975d2 2003-02-03 Patrik Torstensson
* AppDomain.cs: New internalcalls for handling domain/context switches

	* AppDomain.cs (CreateDomain): Return transparant proxy for appdomain object

svn path=/trunk/mcs/; revision=11159
2003-02-03 11:33:04 +00:00
Patrik Torstensson 7da3e9a1bf 2002-02-03 Patrik Torstensson
* Appdomain1-2.cs: Updated tests to work on MS.Net
        * Remoting4.cs: real cross appdomain test case

svn path=/trunk/mono/; revision=11158
2003-02-03 11:31:22 +00:00
Patrik Torstensson d83b90fc3a 2003-02-03 Patrik Torstensson
* RealProxy.cs: changed excption behavior and added serialization helpers,
	  changed so it don't create a new TP for each gettp call.

	* RemotingProxy.cs: added functions to short cut calls to GetHashCode and GetType,
	same behavior as MS.

svn path=/trunk/mcs/; revision=11157
2003-02-03 11:22:13 +00:00
Patrik Torstensson da7de19756 2003-02-03 Patrik Torstensson
* appdomain.[c|h], domain.c :
	 - Added support for getting a domain via domain id
	 - Support for setting and getting domain from System.AppDomain
	   (used in cross appdomain channel)
	 - Added support for get/set for a MonoAppContext on a thread
	   (Context class in System.Runtime.Remoting.Contexts),
	 - Removed hack in Get/SetData and ExecuteAssembly.

	* icall.c : renamed GetTransparantProxy to InternalGetTransparantProxy to allow
	the managed world to get control when a proxy is created.

	* icall.c (ves_icall_InternalExecute) : bug fix, must return empty array

svn path=/trunk/mono/; revision=11156
2003-02-03 10:15:14 +00:00
Patrik Torstensson dc6eea68df 2003-02-03 Patrik Torstensson
* x86.brg, jit.c, jit.h: Add support for transparant proxies in non-virtual method calls.

svn path=/trunk/mono/; revision=11155
2003-02-03 10:01:24 +00:00
Patrik Torstensson 6ba0618bd1 2003-02-03 Patrik Torstensson
* Binder.cs: minimize locking time in DefaultBinder.

svn path=/trunk/mcs/; revision=11154
2003-02-03 09:55:49 +00:00
Miguel de Icaza 8d034a2489 Revert patch until I debug it properly
svn path=/trunk/mcs/; revision=11153
2003-02-03 08:51:09 +00:00
Miguel de Icaza d0f3e118b6 2003-02-03 Miguel de Icaza <[email protected]>
* driver.cs: (AddAssemblyAndDeps, LoadAssembly): Enter the types
	from referenced assemblies as well.

svn path=/trunk/mcs/; revision=11152
2003-02-03 08:37:36 +00:00
Miguel de Icaza da2c3a6148 2003-02-03 Miguel de Icaza <[email protected]>
* icall.c
	(ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
	Populate the codebase field as well.

svn path=/trunk/mono/; revision=11151
2003-02-03 08:12:15 +00:00
Piers Haken a1f3ff1b3c 2003-02-02 Piers Haken <[email protected]>
* Parser.jay: add token names
	* Tokenizer.cs: fix NCName tokenization

svn path=/trunk/mcs/; revision=11150
2003-02-03 04:44:09 +00:00
Gonzalo Paniagua Javier 4477135bd8 2003-02-03 Gonzalo Paniagua Javier <[email protected]>
* XmlTextWriter.cs: implemented WriteRaw (char[], int, int).

svn path=/trunk/mcs/; revision=11149
2003-02-03 02:43:09 +00:00
Gonzalo Paniagua Javier 96e4a7df36 2003-02-03 Gonzalo Paniagua Javier <[email protected]>
* DataView.cs: implemented Dispose.

svn path=/trunk/mcs/; revision=11148
2003-02-03 02:42:11 +00:00
Gonzalo Paniagua Javier 9119c83a15 2003-02-03 Gonzalo Paniagua Javier <[email protected]>
* System/AppDomain.cs: implemented AppendPrivatePath, ClearPrivatePath
	and ClearShadowCopyPath and fixed GetType ().

	* System/Attribute.cs: clean up.

	* System/Console.cs: removed UnixConsoleEncoding. Use Default.
	* System.IO/MemoryStream.cs: create the buffer of the specified capacity.
	* System.Text/Encoding.cs: removed UnixConsoleEncoding.

svn path=/trunk/mcs/; revision=11147
2003-02-03 02:38:48 +00:00
Gonzalo Paniagua Javier 3444afed80 2003-02-03 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspParser.cs: the parser fires events when it
	parses an element.

	* System.Web.UI/SimpleWebHandlerParser.cs:
	* System.Web.Compilation/GlobalAsaxCompiler.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/UserControlCompiler.cs:
	* System.Web.Compilation/AspElements.cs: modified to use the new parser
	interface.

	* System.Web.Compilation/AspGenerator.cs: modified to use the new
	parser. Merge multiple text strings into one single LiteralControl.

	* System.Web.Compilation/AspTokenizer.cs: added Line and Column properties.

svn path=/trunk/mcs/; revision=11146
2003-02-03 02:25:00 +00:00
Martin Baulig 56b1967181 2003-02-02 Martin Baulig <[email protected]>
* debug.c (mono_debug_add_wrapper): Lookup the wrapper method in a
	hash table; we need to provide the correct code_size.

svn path=/trunk/mono/; revision=11137
2003-02-02 22:03:54 +00:00
Martin Baulig 0d9f92981e 2003-02-02 Martin Baulig <[email protected]>
* jit.c (mono_jit_compile_method): Call mono_debug_add_wrapper()
	to add the interncall to the symbol file.

	* debug.c (mono_debug_add_wrapper): New public function.

svn path=/trunk/mono/; revision=11126
2003-02-02 21:16:23 +00:00
Martin Baulig 397438b8a3 2003-02-02 Martin Baulig <[email protected]>
* debug-mono-symfile.c
	(MonoSymbolFileMethodAddress): Added `wrapper_address' field.
	(mono_debug_symfile_add_method): Allow interncalls.

svn path=/trunk/mono/; revision=11125
2003-02-02 21:13:33 +00:00
Jackson Harper b23544072e Resolve parameter types in a more proper manner.
svn path=/trunk/mcs/; revision=11124
2003-02-02 21:00:14 +00:00
Jackson Harper 2edd8bd986 Add ChangeLog, Add HelloWorld.il test
svn path=/trunk/mcs/; revision=11123
2003-02-02 20:56:00 +00:00
Jackson Harper 33ebce22dd Makfile update
svn path=/trunk/mcs/; revision=11122
2003-02-02 20:42:47 +00:00
Jackson Harper fd98e6bc3a Use new Driver.cs instead of Main.cs
svn path=/trunk/mcs/; revision=11121
2003-02-02 20:40:27 +00:00
Jackson Harper 2addf865bd Add ChangeLog
svn path=/trunk/mcs/; revision=11120
2003-02-02 20:37:21 +00:00
Jackson Harper 498b451aaa * ILParser.jay: Add call instruction, other little fixes and additions
svn path=/trunk/mcs/; revision=11119
2003-02-02 20:35:26 +00:00
Jackson Harper 1316af00ea * Class.cs: Don't try to emit methods if we don't have any
* Class.cs: Test for entry point of methods, and set Assembly entrypoint
        * CodeGen.cs: Add method to set an Assemblys entry point
        * Method.cs: Add IsEntryPoint property
        * Method.cs Add MethodInfo property, and set this while Emiting
        * Instructions.cs: Add new InstrCall instruction

svn path=/trunk/mcs/; revision=11118
2003-02-02 20:34:05 +00:00
Jackson Harper 9e0c7f5d4a Addnew Driver, Add new tests directory
svn path=/trunk/mcs/; revision=11117
2003-02-02 20:32:05 +00:00
Jackson Harper 29f2c53ff9 Add ChangeLog
svn path=/trunk/mcs/; revision=11116
2003-02-02 20:30:12 +00:00
Atsushi Eno 09dfd131ee 2003-02-03 Atsushi Enomoto <[email protected]>
* XmlTextReaderTests.cs : added TestQuoteChar.

svn path=/trunk/mcs/; revision=11113
2003-02-02 15:50:48 +00:00
Atsushi Eno b2a88c3d96 2003-02-03 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : implemented QuoteChar.

svn path=/trunk/mcs/; revision=11112
2003-02-02 15:49:49 +00:00
Martin Baulig f41b9f3b0d 2003-02-02 Martin Baulig <[email protected]>
* debug.c (debug_update_il_offsets): Set the prologue end address
	to the address of the first source line.

svn path=/trunk/mono/; revision=11111
2003-02-02 12:21:02 +00:00
Sebastien Pouliot aac3846615 2003-02-01 Sebastien Pouliot <[email protected]>
* AsymmetricSignatureFormatter.cs: Call abstract SetHashAlgorithm
	when CreateSignature(hash) is called.
	* CryptoStream.cs: Fixed some issues in constructor.
	* DSACryptoServiceProvider.cs: Fixed a bug (1 chance in 256) that
	a signature could be less than 40 bytes (which is invalid).

svn path=/trunk/mcs/; revision=11107
2003-02-02 04:26:31 +00:00
Sebastien Pouliot 5d67a8951c 2003-02-01 Sebastien Pouliot <[email protected]>
* Modules.cs: Oups - not implemented. Added MonoTODO to most methods
	so it's real status get reflected correctly on the web site.

svn path=/trunk/mcs/; revision=11106
2003-02-02 01:42:26 +00:00
Gonzalo Paniagua Javier a2adff0968 2003-02-01 Gonzalo Paniagua Javier <[email protected]>
* Attribute.cs: fixed all IsDefined overloads. Gotta fix
	GetCustomAttributes later.

svn path=/trunk/mcs/; revision=11101
2003-02-01 20:26:25 +00:00
Jackson Harper db2ea89c64 Check access levels when resolving types
svn path=/trunk/mcs/; revision=11100
2003-02-01 18:40:51 +00:00
Gonzalo Paniagua Javier dc6a01e022 Added a few methods needed to compile s.w.f in *nix
svn path=/trunk/mcs/; revision=11094
2003-02-01 17:04:11 +00:00
Miguel de Icaza e6d2ec934b remove some warnings from now
svn path=/trunk/mcs/; revision=11093
2003-02-01 17:01:03 +00:00
Miguel de Icaza 5923d0b7e2 Add stub method
svn path=/trunk/mcs/; revision=11092
2003-02-01 17:00:51 +00:00
Marco Ridoni 41a116c1aa AddHandler is now a statement of its own and is no more emulated in the
grammar (even if it still needs a hook in the parser).
Event declaration has been added
Fixed a few bugs in the grammar and in FixuPtypes, a helper function used
to declare fields and local vars.

svn path=/trunk/mcs/; revision=11091
2003-02-01 13:02:49 +00:00
Paolo Molaro 70f5e65794 Sat Feb 1 10:59:31 CET 2003 Paolo Molaro <[email protected]>
* alpha/*: update from Laramie.

svn path=/trunk/mono/; revision=11090
2003-02-01 10:02:52 +00:00
Jackson Harper 439f02a687 Add parameters and locals set in catch blocks that might return to set vector
svn path=/trunk/mcs/; revision=11089
2003-02-01 06:25:42 +00:00
Dennis Hayes 51388d30b5 updates
svn path=/trunk/mcs/; revision=11088
2003-02-01 03:23:48 +00:00
Dennis Hayes a439987511 check in for Alexandre Pigolkine
svn path=/trunk/mcs/; revision=11087
2003-02-01 03:16:04 +00:00
Gonzalo Paniagua Javier c7a7abbd69 2003-01-31 Gonzalo Paniagua Javier <[email protected]>
* icall.c: throw parse exception if strtod fails or the string is empty.

svn path=/trunk/mono/; revision=11086
2003-01-31 18:38:14 +00:00
Dietmar Maurer 6b0ad0d55c 2003-01-31 Dietmar Maurer <[email protected]>
* jit.c (mono_analyze_stack): use the wrapper signature if necessary

svn path=/trunk/mono/; revision=11085
2003-01-31 16:25:27 +00:00
Zoltan Varga 1a82e8962d 2003-01-31 Zoltan Varga <[email protected]>
* debug.c (mono_debug_open_image): dynamic assemblies have no debug
	info.

svn path=/trunk/mono/; revision=11084
2003-01-31 16:06:42 +00:00
Paolo Molaro f9f4c98f73 Fri Jan 31 16:09:48 CET 2003 Paolo Molaro <[email protected]>
* marshal.c: handle object type separately from defined
	class types.

svn path=/trunk/mono/; revision=11082
2003-01-31 15:14:05 +00:00
Paolo Molaro 85303f3dbe Fri Jan 31 16:01:20 CET 2003 Paolo Molaro <[email protected]>
* marshal.c: handle NATIVE_LPSTR for strings when it's
	explicitly specified.

svn path=/trunk/mono/; revision=11081
2003-01-31 15:05:06 +00:00
Ville Palo 6f586f97a4 2003-31-01 Ville Palo <[email protected]>
* DataTableTest.cs: Added more tests for Select (string) -method

svn path=/trunk/mcs/; revision=11080
2003-01-31 14:58:11 +00:00
Paolo Molaro 4db261914c Fri Jan 31 11:51:43 CET 2003 Paolo Molaro <[email protected]>
* reflection.c, reflection.h, icall.c: setup the reflection
	handle cache for ModuleBuilders and AssemblyBuilders.

svn path=/trunk/mono/; revision=11078
2003-01-31 10:57:38 +00:00
Patrik Torstensson 13a1207724 2003-01-31 Patrik Torstensson
* MemoryStream.cs: use BlockCopyInternal instead of Array.Copy, this is
	the same way as MS does it (performance improvement)

svn path=/trunk/mcs/; revision=11077
2003-01-31 10:37:40 +00:00
Patrik Torstensson f9e42fda70 2003-01-31 Patrik Torstensson
* Buffer.cs: Changed access level of BlockCopyInternal

svn path=/trunk/mcs/; revision=11076
2003-01-31 10:36:05 +00:00
Zoltan Varga 31409415b5 2003-01-31 Zoltan Varga <[email protected]>
* ArrayList.cs (RemoveAt): duplicated the the code from RemoveRange
	here, since RemoveAt raises a different exception than RemoveRange
	when the index is out-of-range. Fixes the ArrayList unit tests.

	* ArrayList.cs (RemoveRange): fixed indentation.

svn path=/trunk/mcs/; revision=11075
2003-01-31 10:20:30 +00:00
John Sohn 873bdef67f * README: updated for latest WineLib and Mono
svn path=/trunk/mcs/; revision=11074
2003-01-31 07:24:27 +00:00
John Sohn 0be5e85d0c * makefile: cleaned and reduced dependencies to hard-coded paths
* monostub.c: updated for compliance with the latest Mono and WineLib

svn path=/trunk/mcs/; revision=11073
2003-01-31 07:22:30 +00:00
Sebastien Pouliot 1c316f3ee4 2003-01-30 Sebastien Pouliot <[email protected]>
* X509CertificateCollection.cs: Replaced the use of the private
	ArrayList by the protected InnerList (from CollectionBase) so
	Count property now works.

svn path=/trunk/mcs/; revision=11072
2003-01-31 03:14:33 +00:00
Sebastien Pouliot ba97f32797 2003-01-30 Sebastien Pouliot <[email protected]>
* TimeZoneTest.cs: Added "Eastern Standard Time" to the test.
	This won't be complete until all time zone are added (added a
	Fail for unsupported TimeZones).

svn path=/trunk/mcs/; revision=11071
2003-01-31 00:27:29 +00:00
Zoltan Varga 9a8769f38a 2003-01-30 Zoltan Varga <[email protected]>
* StringBuilderTest.cs: added test for passing a negative capacity to
	the constructor.

svn path=/trunk/mcs/; revision=11070
2003-01-30 19:47:59 +00:00
Zoltan Varga 4629b55cc5 2003-01-30 Zoltan Varga <[email protected]>
* StringBuilder.cs: fix the constructor: 'value' can be NULL,
	'capacity' must be >=0, use defaultCapacity only if capacity equals 0.
	This fixes the StringBuilder unit tests.

svn path=/trunk/mcs/; revision=11069
2003-01-30 19:37:56 +00:00
Paolo Molaro 4a445db052 Thu Jan 30 19:54:30 CET 2003 Paolo Molaro <[email protected]>
* String.cs, IntegerFormatter.cs: use const where appropriate.

svn path=/trunk/mcs/; revision=11068
2003-01-30 19:08:35 +00:00
Gaurav Vaish 25e5ba719d 2003-01-30 Gaurav Vaish <gvaish_mono AT lycos.com>
* ListDataHelper.cs      : Complete. Probably!

svn path=/trunk/mcs/; revision=11067
2003-01-30 18:57:12 +00:00
Gaurav Vaish bacc6ee527 2003-01-30 Gaurav Vaish <gvaish_mono AT lycos.com>
* MobileListItemCollection.cs
	                         : Stubbed Add(...) methods.

svn path=/trunk/mcs/; revision=11066
2003-01-30 18:54:20 +00:00
Gaurav Vaish 68824329d4 2003-01-30 Gaurav Vaish <gvaish_mono AT lycos.com>
* MobileListItemCollection.cs
	                         : Stubbed IStateManager methods.

svn path=/trunk/mcs/; revision=11065
2003-01-30 18:41:00 +00:00
Gaurav Vaish a28e80290f 2003-01-30 Gaurav Vaish <gvaish_mono AT lycos.com>
* ListDataHelper.cs      : Initial implementation.
	* DataSourceHelper.cs    : Initial implementation.

svn path=/trunk/mcs/; revision=11064
2003-01-30 17:04:07 +00:00
Gaurav Vaish 7b788c2964 2003-01-08 Gaurav Vaish <gvaish_mono AT lycos.com>
* System.Web.Mobile.Util                 : Added directory.

svn path=/trunk/mcs/; revision=11063
2003-01-30 16:52:26 +00:00
Gaurav Vaish c2a5683b86 2003-01-30 Gaurav Vaish <gvaish_mono AT lycos.com>
* ListDataHelperInternal.cs
	                         : Moved to Util namespace,
	                           as ListDataHelper.cs

svn path=/trunk/mcs/; revision=11062
2003-01-30 16:51:03 +00:00
Gaurav Vaish d26b7fb705 2003-01-30 Gaurav Vaish <gvaish_mono AT lycos.com>
* ListDataHelperInternal.cs
	                         : Added class.

svn path=/trunk/mcs/; revision=11061
2003-01-30 16:48:17 +00:00
Ville Palo 897df1464f 2003-01-30 Ville Palo <[email protected]>
* ExpressionElement.cs: Added new file. This file is for parsing
	  and DataData.Select () -methods and DataColumn.Expression -property
	* DataTable.cs: Implemented Select(string) -method

svn path=/trunk/mcs/; revision=11060
2003-01-30 16:24:39 +00:00
Ville Palo 06ca8bb8d6 2003-01-30 Ville Palo <[email protected]>
* list: Added new file ExpressionElement.cs

svn path=/trunk/mcs/; revision=11059
2003-01-30 16:20:30 +00:00
Gonzalo Paniagua Javier cfb922eacc 2003-01-30 Gonzalo Paniagua Javier <[email protected]>
* MonoCustomAttrs.cs: fixed GetBase () for Type. Thanks to Zoltan for
	reporting.

svn path=/trunk/mcs/; revision=11058
2003-01-30 15:29:42 +00:00
Rafael Teixeira e00ab844ac See changelog
svn path=/trunk/mcs/; revision=11057
2003-01-30 13:09:04 +00:00
Dietmar Maurer a7684f9aaa 2003-01-30 Dietmar Maurer <[email protected]>
* reflection.c (reflection_methodbuilder_to_mono_method): set
	pinvoke flag

svn path=/trunk/mono/; revision=11056
2003-01-30 12:10:56 +00:00
Paolo Molaro bc532b2897 Thu Jan 30 11:07:06 CET 2003 Paolo Molaro <[email protected]>
* helper.c: handle MONO_TYPE_ARRAY as well.

svn path=/trunk/mono/; revision=11053
2003-01-30 10:10:43 +00:00
Nick Drochak 2b30798947 Removed obsolete file.
svn path=/trunk/mcs/; revision=11052
2003-01-30 09:20:39 +00:00
Nick Drochak 6a7d01ec61 2003/01/30 Nick Drochak <[email protected]>
* corlib_test.build: AllTests.cs do not exist anymore. No need to
	excluded them.

svn path=/trunk/mcs/; revision=11051
2003-01-30 09:16:54 +00:00
Gonzalo Paniagua Javier aa92bc6044 2003-01-30 Gonzalo Paniagua Javier <[email protected]>
* StringBuilder.cs: fixed typo in set_Length.

svn path=/trunk/mcs/; revision=11041
2003-01-30 02:32:51 +00:00
Sebastien Pouliot febc5e8dfc 2003-01-29 Sebastien Pouliot <[email protected]>
* ByteTest.cs: Updated Setup to support my Locale. Better but
	probably still incomplete.
	* DoubleTest.cs: Updated Setup to support my Locale. You can now
	use a comma (or anything else) instead of a dot (.).
	* ConvertTest.cs: Updated TestToDecimal and TestToDouble to
	support my Locale. You can now use a comma (or anything else)
	instead of a dot (.).

svn path=/trunk/mcs/; revision=11037
2003-01-30 01:36:24 +00:00
Gonzalo Paniagua Javier 7aed5ead71 2003-01-30 Gonzalo Paniagua Javier <[email protected]>
* BrowsableAttribute.cs: this attribute applies to All. Since the fix
	to bug #37380, mcs complained about this when compiling System.Data.

svn path=/trunk/mcs/; revision=11036
2003-01-30 00:57:31 +00:00
Gonzalo Paniagua Javier 151739af64 2003-01-30 Gonzalo Paniagua Javier <[email protected]>
* System/MonoCustomAttrs.cs: fixed shortcut in GetCustomAttributes.
	The argument ICustomAttributeProvider can be of other types different
	from Type. Handle it.

	* System.Reflection/MonoMethod.cs: implemented GetBaseDefinition ().
	* System.Reflection.Emit/MethodBuilder.cs: GetBaseDefinition () returns
	this.

	Fixes bug #37380.

svn path=/trunk/mcs/; revision=11035
2003-01-30 00:55:23 +00:00
Gonzalo Paniagua Javier 1add88c582 2003-01-30 Gonzalo Paniagua Javier <[email protected]>
* icall.c: implemented ves_icall_MonoMethod_get_base_definition.

svn path=/trunk/mono/; revision=11033
2003-01-30 00:48:26 +00:00
Patrik Torstensson dca075e463 Updated
svn path=/trunk/mcs/; revision=11031
2003-01-29 22:16:15 +00:00
Patrik Torstensson 2f52562d4f 2003-01-28 Patrik Torstensson
* MonoMethod.cs: Added support for serialization for MonoMethod and MonoCMethod
	* ReflectionSerializationHolder.cs: Support class for serialization

svn path=/trunk/mcs/; revision=11030
2003-01-29 22:14:58 +00:00
Zoltan Varga 0edc507181 2003-01-29 Zoltan Varga <[email protected]>
* Directory.cs (GetFileSystemEntries): moved error handling to the
	correct instance of GetFileSystemEntries so all callers can enjoy it.

svn path=/trunk/mcs/; revision=11029
2003-01-29 21:50:50 +00:00
Zoltan Varga cb03ca33c0 2003-01-29 Zoltan Varga <[email protected]>
* makefile.gnu: compile and run with debugging enabled.

	* makefile.gnu: added SUBDIR variable to enable building a subset of
	the tests, saving on compilation time during development.

	* run_test.sh: updated to nunit2.

svn path=/trunk/mcs/; revision=11028
2003-01-29 20:52:41 +00:00
Gonzalo Paniagua Javier 50b945fca5 2003-01-29 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRequest.cs: added BaseVirtualDir property and use it
	in MapPath.

	* System.Web.UI.HtmlControls/HtmlControl.cs: _tagName is now internal.
	* System.Web.UI.HtmlControls/HtmlGenericControl.cs: use the field in
	HtmlControl to keep the tag name.

	* System.Web.Util/UrlUtils.cs: fixed Combine ().

svn path=/trunk/mcs/; revision=11027
2003-01-29 19:16:39 +00:00
Lluis Sanchez 2e8b8c7700 Added RemoteActivator.cs
svn path=/trunk/mcs/; revision=11026
2003-01-29 18:11:33 +00:00
Lluis Sanchez e2eb08af71 * ServerContextTerminatorSink.cs: now it forwards messages to the target identity,
which knows how to manage each type of service.
* StackBuilderSink.cs: added a reference to the target object.

svn path=/trunk/mcs/; revision=11025
2003-01-29 18:06:49 +00:00
Lluis Sanchez 483cc1a41f * LifetimeServices.cs: Implemented some basic properties.
svn path=/trunk/mcs/; revision=11024
2003-01-29 18:06:01 +00:00
Lluis Sanchez adab27e955 * Context.cs: Object sinks must be created for each object
(they can contain object-specific info).

svn path=/trunk/mcs/; revision=11023
2003-01-29 18:05:40 +00:00
Lluis Sanchez 6c3765168b * ChannelServices.cs: corrected generation
of exception in SyncDispatchMessage.

svn path=/trunk/mcs/; revision=11022
2003-01-29 18:04:36 +00:00
Lluis Sanchez e2ed296e94 * RemoteActivator.cs: Added.
svn path=/trunk/mcs/; revision=11021
2003-01-29 18:04:02 +00:00
Lluis Sanchez 43e5ee938a * RemotingServices.cs: Added support for WellKnownService objects.
* RemotingConfiguration.cs: Implemented most of methods (Configure is not working yet).
* ObjRef.cs: Added initialization of channel info in default constructor.
* Identity.cs: Added support for WellKnownService objects.

svn path=/trunk/mcs/; revision=11020
2003-01-29 18:03:33 +00:00
Dietmar Maurer e69e98877a (mono_analyze_stack): RETOBJ always returns native sized objects
svn path=/trunk/mono/; revision=11019
2003-01-29 17:53:09 +00:00
Dietmar Maurer 1cb652450e (*): correctly set sig->pinvoke, we need to memdup the signature
to do that

svn path=/trunk/mono/; revision=11018
2003-01-29 17:33:41 +00:00
Dick Porter b88bea2774 2003-01-29 Dick Porter <[email protected]>
* threads.c: No need for the fake_thread kludge now that Thread
	doesn't run a class constructor

svn path=/trunk/mono/; revision=11017
2003-01-29 16:51:40 +00:00
Dick Porter f814e25cd8 Renamed mono_new_thread_init() to mono_thread_new_init() to conform to
the proper naming scheme

svn path=/trunk/mono/; revision=11016
2003-01-29 16:42:29 +00:00
Dick Porter d68cc2b8cd 2003-01-29 Dick Porter <[email protected]>
* threads.c: Use g_direct_hash instead of the rather bogus
	g_int_hash

svn path=/trunk/mono/; revision=11015
2003-01-29 16:16:09 +00:00
Dick Porter df3a04ff65 Added a book about threading.
svn path=/trunk/mono/; revision=11014
2003-01-29 16:15:37 +00:00
Dietmar Maurer a6a6697c13 (mono_marshal_get_struct_to_ptr): generate valid IL code
(mono_marshal_get_ptr_to_struct): generate valid IL code

svn path=/trunk/mono/; revision=11013
2003-01-29 15:23:56 +00:00
Dietmar Maurer d2f39c830f fix for the previous fix
svn path=/trunk/mono/; revision=11012
2003-01-29 13:44:01 +00:00
Dietmar Maurer 34e032e567 2003-01-29 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): add check for null
	(fix pinvoke12.exe)

svn path=/trunk/mono/; revision=11011
2003-01-29 13:41:44 +00:00
Daniel Morgan af653b483b 2003-01-29 Daniel Morgan <[email protected]>
* doc/postgresql
	* doc/mysql
	* doc/ado-net: updates to web pages

	* man/sqlsharp.1: update to man page

svn path=/trunk/mono/; revision=11010
2003-01-29 13:09:12 +00:00
Dietmar Maurer b621d08f4a 2003-01-29 Dietmar Maurer <[email protected]>
* jit.c (mono_analyze_stack): impl. CEE_MONO_LDNATIVEOBJ

svn path=/trunk/mono/; revision=11009
2003-01-29 12:59:13 +00:00
Nick Drochak 91de9c3719 Removed unneeded files. Legacy from nunit v1.
svn path=/trunk/mcs/; revision=11008
2003-01-29 10:51:45 +00:00
Miguel de Icaza 266a33fbe7 Add some missing spaces
svn path=/trunk/mono/; revision=11006
2003-01-29 07:17:34 +00:00
Gonzalo Paniagua Javier c0ea39b2d6 compilation fix
svn path=/trunk/mcs/; revision=11003
2003-01-28 22:20:32 +00:00
Paolo Molaro d7c5179cb2 Tue Jan 28 22:57:57 CET 2003 Paolo Molaro <[email protected]>
* marshal.c, marshal.h: use larger integers in mono_mb_emit_add_to_local()
	to avoid overflows (bug spotted and fixed by Jerome Laban <[email protected]>).

svn path=/trunk/mono/; revision=11002
2003-01-28 22:04:01 +00:00
Daniel Morgan dbe0577640 2003-01-28 Daniel Morgan <[email protected]>
* Npgsql.build: got it to work for Windows build

	* Npgsql/Npgsql.build
	* Npgsql/Npgsql.cmbx
	* Npgsql/Npgsql.prjx: removed files not needed

svn path=/trunk/mcs/; revision=11001
2003-01-28 19:41:17 +00:00
Daniel Morgan af70c73dcf 2003-01-28 Daniel Morgan <[email protected]>
* added the Npgsql (Npgsql is a .Net Data Provider for PostgreSQL)
	  from http://gborg.postgresql.org/project/npgsql/projdisplay.php
	  by adding the following files and directories to the mcs module
	  in mono-cvs.ximian.com at mcs/class:

      Npgsql (directory)
      ChangeLog
      Makefile
      Npgsql.build
      RELEASENOTES.txt
      TODO.txt
      makefile.gnu
      LICENSE.txt
      README.txt
      STATUS.txt
      list
	  Npgsql/Npgsql (directory)
	  Npgsql/AssemblyInfo.cs
	  Npgsql/NpgsqlAsciiRow.cs
	  Npgsql/NpgsqlBackEndKeyData.cs
	  Npgsql/NpgsqlClosedState.cs
	  Npgsql/NpgsqlCommand.cs
	  Npgsql/NpgsqlConnectedState.cs
	  Npgsql/NpgsqlConnection.cs
	  Npgsql/NpgsqlConnector.cs
	  Npgsql/NpgsqlConnectorPool.cs
	  Npgsql/NpgsqlDataAdapter.cs
	  Npgsql/NpgsqlDataReader.cs
	  Npgsql/NpgsqlEventLog.cs
	  Npgsql/NpgsqlException.cs
	  Npgsql/NpgsqlMediator.cs
	  Npgsql/NpgsqlMessageTypes.cs
	  Npgsql/NpgsqlParameter.cs
	  Npgsql/NpgsqlParameterCollection.cs
	  Npgsql/NpgsqlPasswordPacket.cs
	  Npgsql/NpgsqlQuery.cs
	  Npgsql/NpgsqlReadyState.cs
	  Npgsql/NpgsqlResultSet.cs
	  Npgsql/NpgsqlRowDescription.cs
	  Npgsql/NpgsqlStartupPacket.cs
	  Npgsql/NpgsqlStartupState.cs
	  Npgsql/NpgsqlState.cs
	  Npgsql/NpgsqlTransaction.cs
	  Npgsql/PGUtil.cs

svn path=/trunk/mcs/; revision=11000
2003-01-28 18:42:47 +00:00
Paolo Molaro 5d77c9903f Tue Jan 28 18:55:19 CET 2003 Paolo Molaro <[email protected]>
* profiler.c: provide more callers information.

svn path=/trunk/mono/; revision=10998
2003-01-28 17:58:55 +00:00
Paolo Molaro 59af8f7ea8 Tue Jan 28 18:53:08 CET 2003 Paolo Molaro <[email protected]>
* monograph.c: more stats added.

svn path=/trunk/mono/; revision=10997
2003-01-28 17:57:11 +00:00
Ville Palo be149e5918 2003-01-28 Ville Palo <[email protected]>
* XmlDataDocumentTest.cs: Fixed some tests

svn path=/trunk/mcs/; revision=10996
2003-01-28 17:55:37 +00:00
Ville Palo fedbec797e 2003-01-28 Ville Palo <[email protected]>
* DataSet.cs: One little fix to writing xml

svn path=/trunk/mcs/; revision=10995
2003-01-28 17:53:07 +00:00
Gonzalo Paniagua Javier 9e3a398571 2003-01-28 Gonzalo Paniagua Javier <[email protected]>
* configure.in: added WIN32_THREADS flag when building under windows.
	It seems that the header files of the gc do not always define it when
	GC_WIN32_THREADS is defined.

svn path=/trunk/mono/; revision=10993
2003-01-28 17:25:52 +00:00
Paolo Molaro 170f6075a1 Tue Jan 28 17:55:59 CET 2003 Paolo Molaro <[email protected]>
* Thread.cs: delay-init datastorehash.

svn path=/trunk/mcs/; revision=10992
2003-01-28 16:59:53 +00:00
Paolo Molaro f265becc38 Tue Jan 28 17:30:57 CET 2003 Paolo Molaro <[email protected]>
* statement.cs: small memory and time optimization in FlowBranching.

svn path=/trunk/mcs/; revision=10991
2003-01-28 16:41:41 +00:00
Atsushi Eno ccc7255252 2003-01-29 Atsushi Enomoto <[email protected]>
* WebClient.cs : hacked OpenRead, DownloadData and DownloadFile.

svn path=/trunk/mcs/; revision=10990
2003-01-28 16:33:04 +00:00
Zoltan Varga cd8981fa4b 2003-01-28 Zoltan Varga <[email protected]>
* x86.brg (mono_ldintftn): use <= instead of <, since the
	interface_offsets array is max_interface_id + 1 long.

svn path=/trunk/mono/; revision=10988
2003-01-28 15:53:29 +00:00
Zoltan Varga c1cf0c392a 2003-01-28 Zoltan Varga <[email protected]>
* FileTest.cs: Added tests for GetCreationTime.

svn path=/trunk/mcs/; revision=10987
2003-01-28 15:32:17 +00:00
Zoltan Varga a8426777d4 2003-01-28 Zoltan Varga <[email protected]>
* File.cs: add error handling to Get...Time methods.

svn path=/trunk/mcs/; revision=10986
2003-01-28 15:31:02 +00:00
Zoltan Varga 4f3228c1cc 2003-01-28 Zoltan Varga <[email protected]>
* DateTime.cs: fix FromFileTime so the time returned by
	File::GetLastModificationTime etc. is in the correct timezone.

svn path=/trunk/mcs/; revision=10985
2003-01-28 15:28:13 +00:00
Gonzalo Paniagua Javier 2c425e442f 2003-01-28 Gonzalo Paniagua Javier <[email protected]>
* RealProxy.cs: fixed compilation by adding missing GetObjectData ().

svn path=/trunk/mcs/; revision=10984
2003-01-28 15:23:19 +00:00
Patrik Torstensson 2c09768a7c Update
svn path=/trunk/mcs/; revision=10983
2003-01-28 14:53:01 +00:00
Patrik Torstensson 1efc648ec1 2003-01-28 Patrik Torstensson
* Exception.cs: reverted formating/endline changes (sorry guys)

svn path=/trunk/mcs/; revision=10982
2003-01-28 14:48:37 +00:00
Patrik Torstensson 8599efdc84 Flush
svn path=/trunk/mcs/; revision=10981
2003-01-28 14:45:27 +00:00
Patrik Torstensson 8171eef6ce 2002-12-28 Patrik Torstensson
* CrossAppDomainChannel.cs: First version, without support for "going" into the right domain

svn path=/trunk/mcs/; revision=10980
2003-01-28 14:45:06 +00:00
Patrik Torstensson 714d056936 2002-12-28 Patrik Torstensson
* RemotingSurrogateSelector.cs: Added serialization support for MBR's.
	* RemotingSurrogate.cs: Moved ObjRefSurrogate and MBRSurrogate to new file.
	* ErrorMessage.cs: Dummy used when an exception occours.
	* MonoMethodMessage.cs: Added Serializable and support for be created with null methods

svn path=/trunk/mcs/; revision=10979
2003-01-28 14:44:13 +00:00
Dietmar Maurer b415a5dc91 2003-01-28 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_managed_wrapper): generate valid IL code

svn path=/trunk/mono/; revision=10978
2003-01-28 14:17:54 +00:00
Dietmar Maurer f3138e4011 2003-01-28 Dietmar Maurer <[email protected]>
* appdomain.h:added fix from Patrik: _MonoAppDomain is a MBR object

svn path=/trunk/mono/; revision=10977
2003-01-28 13:09:24 +00:00
Patrik Torstensson 2962d0c78a 2003-01-28 Patrik Torstensson
* MarshalByRefObject.cs: implemented GetObjectIdentity
	* Exception.cs: added support for remote exceptions

svn path=/trunk/mcs/; revision=10976
2003-01-28 12:15:37 +00:00
Piers Haken 500abbf531 *** empty log message ***
svn path=/trunk/mcs/; revision=10975
2003-01-28 12:13:34 +00:00
Patrik Torstensson 9deca5ed3b Oops
svn path=/trunk/mcs/; revision=10974
2003-01-28 12:10:39 +00:00
Patrik Torstensson 28a0061cbf 2003-01-28 Patrik Torstensson
* ObjRef.cs: Fixed Objref marshalling flags

svn path=/trunk/mcs/; revision=10973
2003-01-28 12:10:08 +00:00
Dietmar Maurer 244f8f450a 2003-01-28 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): generate valid IL code

svn path=/trunk/mono/; revision=10972
2003-01-28 12:00:50 +00:00
Nick Drochak b7c320ab07 2003-01-28 Nick Drochak <[email protected]>
* MutexTest.cs: Ignore tests that hang mono.
        * ThreadTest.cs: Ignore tests that hang mono.

svn path=/trunk/mcs/; revision=10971
2003-01-28 09:52:07 +00:00
Nick Drochak 7d3b0290b8 2003-01-28 Nick Drochak <[email protected]>
* ResourceReaderTest.cs: Ignore part of a test that hangs mono.

svn path=/trunk/mcs/; revision=10970
2003-01-28 09:43:32 +00:00
Nick Drochak 6aca35f5ef 2003-01-28 Nick Drochak <[email protected]>
* ArrayTest.cs: Avoid nulls in arrays. This crashes mono.
        * ConsoleTest.cs: Ignore some tests that hang mono.
        * ConvertTest.cs: Ignore some tests that hang mono.

svn path=/trunk/mcs/; revision=10969
2003-01-28 09:36:28 +00:00
Dietmar Maurer 2d337c0b86 2003-01-28 Dietmar Maurer <[email protected]>
* x86.brg (mono_ldintftn): fix from Zoltan: use max_interface_id

svn path=/trunk/mono/; revision=10968
2003-01-28 08:51:49 +00:00
Miguel de Icaza ad3903d69f Improve with get/set
svn path=/trunk/mcs/; revision=10967
2003-01-28 06:53:54 +00:00
Gonzalo Paniagua Javier 0fd2755b2d 2003-01-28 Gonzalo Paniagua Javier <[email protected]>
* DateTime.cs: fixed bug #37225.

svn path=/trunk/mcs/; revision=10964
2003-01-28 00:27:11 +00:00
Lluis Sanchez 192e07c742 ObjectManager.cs: Corrected a problem with IObjectReferece objects.
svn path=/trunk/mcs/; revision=10963
2003-01-27 20:33:05 +00:00
Zoltan Varga 6195eddf66 2003-01-27 Zoltan Varga <[email protected]>
* StackTraceTest.cs: Added test for unthrown exceptions.

svn path=/trunk/mcs/; revision=10962
2003-01-27 20:26:33 +00:00
Zoltan Varga 400cc93483 2003-01-27 Zoltan Varga <[email protected]>
* StringTest.cs: Added tests for out-of-bounds indexes in GetChars().

svn path=/trunk/mcs/; revision=10961
2003-01-27 20:14:02 +00:00
Zoltan Varga d3db0f7d01 2003-01-27 Zoltan Varga <[email protected]>
* exception.c (ves_icall_get_trace): avoid crash if the exception is
	not yet thrown.

	* exception.c (ves_icall_get_trace): avoid crash on unmanaged frames.

svn path=/trunk/mono/; revision=10960
2003-01-27 20:11:29 +00:00
Zoltan Varga 6958993879 2003-01-27 Zoltan Varga <[email protected]>
* icall.c: (ves_icall_System_CurrentTimeZone_GetTimeZoneData): raise an
	exception instead of going into an infinite loop on dates which it
	can't yet handle.

	* string-icalls.c (ves_icall_System_String_get_Chars): raise
	out-of-range exception if needed.

	* class.c (mono_class_setup_vtable): allow a virtual method to provide
	an implementation for an interface method and to override an inherited
	method at the same time.
	Imagine a scenario when a virtual method is used to override a
	virtual abstract method in a parent class, and this same method
	provides an implementation for an method inherited from an interface.
	In this case, the interface resolution code will set im->slot, which
	means that the virtual method override pass will skip this method
	which means a pointer to the abstract method inherited from the parent
	will remain in the vtable of this non-abstract class.

	* class.c: (mono_class_setup_vtable): continue search for a real
	method if only an abstract method is found.

svn path=/trunk/mono/; revision=10959
2003-01-27 20:04:27 +00:00
Ville Palo f907e73a74 2003-01-27 Ville Palo <[email protected]>
* XmlSchemaMapper.cs: Some fixes.
	* DatSet.cs: Some XmlFixes and BeginInit ()/ EndInit () -fix

svn path=/trunk/mcs/; revision=10958
2003-01-27 19:30:28 +00:00
Ville Palo 81918784ee 2003-01-27 Ville Palo <[email protected]>
* ChangeLog: Added this file.
	* XmlDataDocument.cs: Some little fixes.

svn path=/trunk/mcs/; revision=10957
2003-01-27 19:01:47 +00:00
Marco Ridoni 05afe78770 Attributes have been added to the grammar and seem to work, even if to a
limited extent
A few fixes for local variable delcalarations
A few fixes for array syntax
Added CType()

svn path=/trunk/mcs/; revision=10956
2003-01-27 18:16:45 +00:00
Gaurav Vaish 6de48fe73b 2003-01-27 Gaurav Vaish <gvaish_mono AT lycos.com>
* IListControl.cs        : A private class hacked.
	* PagedControl.cs        : Fixed typo error (OnPageChange)
	* List.cs                : Stubbed almost all methods. Will
	                           implement tommorrow. Time to sleep.
	* MobileListItemCollection.cs
	                         : Finally, a collection class will bite
	                           me all. ;-)

svn path=/trunk/mcs/; revision=10955
2003-01-27 18:02:33 +00:00
Gaurav Vaish 10b45d730e 2003-01-27 Gaurav Vaish <gvaish_mono AT lycos.com>
* List.cs, PagedControl.cs
	                         : Was I drunk? or Sleeping when I wrote
	                           the classes? I mixed up the methods.
	                           Reorganizing.
	* PagedControl.cs        : Completed.

svn path=/trunk/mcs/; revision=10954
2003-01-27 17:28:33 +00:00
Paolo Molaro c472ce8fe7 Mon Jan 27 17:16:50 CET 2003 Paolo Molaro <[email protected]>
* get.c: decode also the size info in get_marshal_info()
	for ByValStr and ByValArray.

svn path=/trunk/mono/; revision=10953
2003-01-27 16:20:41 +00:00
Paolo Molaro e44e3d645e Mon Jan 27 17:12:19 CET 2003 Paolo Molaro <[email protected]>
* reflection.c: add size to encoding for ByValStr and ByValArray
	marshal blob (from "Jerome Laban" <[email protected]>).

svn path=/trunk/mono/; revision=10952
2003-01-27 16:18:44 +00:00
Paolo Molaro 203a062db9 Mon Jan 27 17:07:38 CET 2003 Paolo Molaro <[email protected]>
* CustomAttributeBuilder.cs, FieldBuilder.cs: applied
	(reformatted) patch from "Jerome Laban" <[email protected]>
	to fix ByValStr and ByValArray encodings.

svn path=/trunk/mcs/; revision=10951
2003-01-27 16:14:12 +00:00
Gaurav Vaish e9b60cc8ef 2003-01-26 Gaurav Vaish <gvaish_mono AT lycos.com>
* Form.cs                : HasActiveHandler()       - Stubbed.
	* List.cs                : Initial implementation.
	* ItemPager.cs,
	* Image.cs,
	* Link.cs,
	* ListDataBindEventArgs.cs,
	* ListDataBindEventHandler.cs,
	* ListCommandEventArgs.cs,
	* ListCommandEventHandler.cs,
	* LoadItemsEventArgs.cs,
	* LoadItemsEventHandler.cs
	                         : Completed.
	* MobilePage.cs          : ActivePage { get; set; } - Stubbed.
	                         : GetForm(string)          - Stubbed.
	* PagedControl.cs        : Initial implementation.

svn path=/trunk/mcs/; revision=10950
2003-01-27 16:01:03 +00:00
Zoltan Varga 67402210bd 2003-01-27 Zoltan Varga <[email protected]>
* class.c (mono_class_setup_vtable): pass the override info as an
	argument.

	* class.c (mono_class_setup_vtable): set the slot of overriding methods
	correctly.

	* reflection.c (ensure_runtime_vtable); add support for method
	overrides.

svn path=/trunk/mono/; revision=10949
2003-01-27 15:34:33 +00:00
Zoltan Varga 85ca6f7891 2003-01-27 Zoltan Varga <[email protected]>
* reflection.c (resolution_scope_from_image): Hack to work to work with
	dynamic assemblies.

	* reflection.c (mono_image_typedef_or_ref): renamed to ..._aux and
	added a 'force_ref' argument to force this function to allways return
	a TypeRef. This is needed by mono_image_get_memberref_token ().

svn path=/trunk/mono/; revision=10948
2003-01-27 14:59:52 +00:00
Ville Palo 7cd4a73e4a 2003-27-01 Ville Palo <[email protected]>
* DataRelationTest.cs: Added more tests

svn path=/trunk/mcs/; revision=10947
2003-01-27 14:24:11 +00:00
Zoltan Varga c79a25d626 2003-01-27 Zoltan Varga <[email protected]>
* reflection.c (mono_image_get_type_info): interfaces really don't have
	a parent.

	* reflection.c (mono_image_basic_init): fill out missing fields of
	image structure.

	* reflection.c (mono_image_basic_init): Invoke assembly load hooks for
	dynamic assemblies. This is required so dynamic assemblies show up in
	AppDomain.GetAssemblies (), emit an AssembyLoadEvent, gets searched by
	Type::GetType() etc. This is consistent with MS behaviour.

	* image.c image.h reflection.c: add newly created classes to the name
	cache so mono_class_get () will find them.

svn path=/trunk/mono/; revision=10946
2003-01-27 14:17:32 +00:00
Ville Palo 46fa64be6e 2003-27-01 Ville Palo <[email protected]>
* DataTableTest.cs: Added test for DataTable.Select ()

svn path=/trunk/mcs/; revision=10945
2003-01-27 13:56:48 +00:00
Zoltan Varga c9866ad0aa 2003-01-27 Zoltan Varga <[email protected]>
First part of changes to get IKVM.NET running under mono.

	* appdomain.h, appdomain.c: added new function
	mono_domain_try_type_resolve() which will emit TypeResolve events.
	This function will call AppDomain::DoTypeResolve to do the actual work.

	* class.h, class.c, loader.c, object.c, reflection.h, reflection.c:
	moved existing code dealing with dynamic tokens to a new function
	called mono_reflection_lookup_dynamic_token (). This function will
	raise TypeResolve events when appropriate. Since reflection.c is not
	part of libmetadata, a new hook function called
	mono_lookup_dynamic_token() is added to class.c which will call this.

	* assembly.h assembly.c: make the invoke_load_hook function public,
	so it can be called for dynamic assemblies.

	* icall.c (ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor): skip interfaces since they do not have initializers.

	* icall.c (ves_icall_type_from_name): emit a TypeResolve event if the
	type isn't found.

	* reflection.c reflection.h: change MonoDynamicAssembly.tokens to a
	MonoGHashTable, since it contains pointers to objects which the GC
	needs to track.

	* assembly.c (search_loaded): remove unused variable.

svn path=/trunk/mono/; revision=10944
2003-01-27 13:31:59 +00:00
Gonzalo Paniagua Javier bda714c5f4 2003-01-27 Gonzalo Paniagua Javier <[email protected]>
* driver.cs: fixed bug #37187.

svn path=/trunk/mcs/; revision=10943
2003-01-27 13:20:09 +00:00
Paolo Molaro 866abd70e2 Mon Jan 27 12:49:10 CET 2003 Paolo Molaro <[email protected]>
* alpha/*: start of the port to the alpha architecture by
	Laramie Leavitt (<[email protected]>).

svn path=/trunk/mono/; revision=10942
2003-01-27 11:54:14 +00:00
Paolo Molaro 3921d48ab8 Mon Jan 27 12:18:45 CET 2003 Paolo Molaro <[email protected]>
* object.c: fixed issue exposed by gcc-generated IL programs
	that use RVA data for pointers.

svn path=/trunk/mono/; revision=10941
2003-01-27 11:24:12 +00:00
Gonzalo Paniagua Javier 5aaa18a3ba 2003-01-27 Gonzalo Paniagua Javier <[email protected]>
* Enum.cs: Clone the arrays in GetNames and GetValues. Thanks lupus!

svn path=/trunk/mcs/; revision=10940
2003-01-27 11:01:59 +00:00
Lluis Sanchez 856d3d578e * TcpServerChannel.cs: Changed management of listener threads.
* TcpConnectionPool.cs: Add shutdown method.
* TcpChannel.cs: Corrected shutdown method.

svn path=/trunk/mcs/; revision=10939
2003-01-27 10:49:16 +00:00
Zoltan Varga ed204851f7 2003-01-27 Zoltan Varga <[email protected]>
* AppDomain.cs: Added DoTypeResolve method which will be called by
	the runtime to raise TypeResolve events.

svn path=/trunk/mcs/; revision=10938
2003-01-27 10:37:01 +00:00
Duncan Mak 4b3e1fe6bf (ToType): Implement this using Convert.ToType.
svn path=/trunk/mcs/; revision=10937
2003-01-27 08:22:31 +00:00
Gonzalo Paniagua Javier 60976a8a9d 2003-01-27 Gonzalo Paniagua Javier <[email protected]>
* AssemblyBuilder.cs: fixed compilation with csc.

svn path=/trunk/mcs/; revision=10935
2003-01-27 04:23:43 +00:00
Miguel de Icaza 77165fb514 updated makefile
svn path=/trunk/mcs/; revision=10934
2003-01-27 02:12:27 +00:00
Miguel de Icaza c720502ac9 Rename test
svn path=/trunk/mcs/; revision=10933
2003-01-27 02:12:14 +00:00
Miguel de Icaza 5c6fb36c72 2003-01-27 Pedro Martinez Juli� <[email protected]>
* expression.cs (IndexerAccess.DoResolve): Before trying to resolve
	any indexer, it's needed to build a list with all the indexers in the
	hierarchy (AllGetters), else we have problems. Fixes #35653.

svn path=/trunk/mcs/; revision=10932
2003-01-27 02:07:36 +00:00
Miguel de Icaza c0c6bae9c8 Makefile updates
svn path=/trunk/mcs/; revision=10931
2003-01-27 02:05:46 +00:00
Miguel de Icaza 09ee06aead Add new test to handle overloaded indexers
svn path=/trunk/mcs/; revision=10930
2003-01-27 02:05:18 +00:00
Miguel de Icaza ffb0cad5a6 Mailing lists
svn path=/trunk/mono/; revision=10929
2003-01-26 20:29:50 +00:00
Miguel de Icaza 4cda6b53b4 2003-01-26 Miguel de Icaza <[email protected]>
* AssemblyBuilder.cs (Save): Set the executable bit at the end.
	This uses a non-official enumeration value to call SetFileAttributes.

svn path=/trunk/mcs/; revision=10928
2003-01-26 20:11:30 +00:00
Zoltan Varga 9c9225173b 2003-01-26 Zoltan Varga <[email protected]>
* Directory.cs: fix GetParent so it actually works.

svn path=/trunk/mcs/; revision=10927
2003-01-26 20:09:19 +00:00
Miguel de Icaza e36affda3a 2003-01-26 Miguel de Icaza <[email protected]>
* io.c (SetFileAttributes): This routine is not currently
	implemented for the general case, but I added a special case to
	set the executable bit on Linux.

svn path=/trunk/mono/; revision=10926
2003-01-26 20:01:39 +00:00
Lluis Sanchez 913fe3e70b * TcpServerChannel.cs: Changed default formatter sink to BinaryFormatterSink
* TcpMessageIO.cs: warning corrected.
* TcpConnectionPool.cs: changed default value of MaxOpenConnections.
* TcpClientTransportSink.cs: implemented support for one way calls.
* TcpClientChannel.cs: Changed default formatter sink to BinaryFormatterSink.
* TcpChannel.cs: corrected Parse method. Now can parse channel uris.
* BinaryServerFormatterSink.cs: Implemented.
* BinaryClientFormatterSink.cs: Implemented.

svn path=/trunk/mcs/; revision=10925
2003-01-26 18:11:18 +00:00
Lluis Sanchez 28783cbcd0 * unix.args: added System.Runtime.Remoting.Messaging/ArgInfo.cs,
System.Runtime.Remoting.Messaging/MethodCallDictionary.cs
  System.Runtime.Remoting.Messaging/MethodDictionary.cs
  System.Runtime.Remoting.Messaging/MethodReturnDictionary.cs

svn path=/trunk/mcs/; revision=10924
2003-01-26 17:59:56 +00:00
Lluis Sanchez 44d2993bc3 * ReturnMessage.cs: Implemented property Properties
* RemotingSurrogateSelector.cs: Implemented serialization support for ObjRef.
* MonoMethodMessage.cs: Implemented Properties and MethodSignature properties.
* MethodReturnMessageWrapper.cs: Implemented.
* MethodCallMessageWrapper.cs: Implemented.
* MethodCall.cs: Implemented.
* Header.cs: Small corrections to make it work.
* MethodDictionary.cs: Added.
* MethodCallDictionary.cs: Added.
* MethodReturnDictionary.cs: Added.
* ArgInfo.cs: Added.

svn path=/trunk/mcs/; revision=10923
2003-01-26 17:58:01 +00:00
Lluis Sanchez 6bcf280a36 * ChannelServices.cs: small correction in CreateClientChannelSinkChain.
* ChannelDataStore.cs: added Serializable attribute.

svn path=/trunk/mcs/; revision=10922
2003-01-26 17:30:22 +00:00
Daniel Morgan 726fef391c 2003-01-26 Daniel Morgan <[email protected]>
* doc/index
	* doc/ado-net
	* doc/firebird
	* doc/ibmdb2
	* doc/mysql
	* doc/odbc
	* doc/oledb
	* doc/oracle
	* doc/postgresql
	* doc/sqlclient
	* doc/sqlite
	* doc/sybase
	* doc/tdsclient: corrections

svn path=/trunk/mono/; revision=10921
2003-01-26 17:15:39 +00:00
Daniel Morgan 004900840b 2003-01-26 Daniel Morgan <[email protected]>
* sqlsharpgtk.cs: added support for providers:
	 MySQLNet, Npgsql, DB2Client, and Oracle

svn path=/trunk/mcs/; revision=10919
2003-01-26 14:15:36 +00:00
Daniel Morgan 91ed885051 2003-01-26 Daniel Morgan <[email protected]>
* System.Data/DataColumn.cs: fix to not check for DataType being set

	* System.Data/DataRow.cs: misc fixes

	* Test/SqlTest.cs: accept connection parameters from
	command line instead of being hard coded

	* Test/System.Data_test.build: exclude building SqlTest.cs

	* Test/System.Data/DataRowTest.cs
	* Test/System.Data/DataColumnTest.cs: added new tests and numbered
	all the tests so they can be easily identified

	* Test/System.Data/DataRelationTest.cs: commented code that calls
	DataSet's BeginEdit() and EndEdit() which causes a compile error

svn path=/trunk/mcs/; revision=10916
2003-01-26 13:38:41 +00:00
Daniel Morgan 84b02c1a8f 2003-01-26 Daniel Morgan <[email protected]>
* SqlSharpCli.cs: fixes contributed by
	Francisco Figueiredo Jr. fxjrlists a-t yahoo.com.br

svn path=/trunk/mcs/; revision=10915
2003-01-26 09:26:55 +00:00
Gonzalo Paniagua Javier 72ebbb608f 2003-01-26 Gonzalo Paniagua Javier <[email protected]>
* DbEnumerator.cs: why does the runtime throw an invalid cast here? The
	object is an Int16... Gotta fill a bug report and when fixed undo this
	patch.

svn path=/trunk/mcs/; revision=10914
2003-01-26 08:31:53 +00:00
Atsushi Eno 6594be4e6d 2003-01-26 Atsushi Enomoto <[email protected]>
* XmlNodeTests.cs : added TestReplaceChild.
	* XmlNodeReaderTests.cs : modified TestReadString more complex.
	* XmlNamespaceManagerTests.cs : added TestLookupPrefix.
	* XmlTextTests.cs : added TestSplitText.

svn path=/trunk/mcs/; revision=10913
2003-01-26 08:09:19 +00:00
Atsushi Eno 4e426ccecd 2003-01-26 Atsushi Enomoto <[email protected]>
* XmlSerializer.cs : some fix handling xml node object more correct.

svn path=/trunk/mcs/; revision=10912
2003-01-26 08:07:53 +00:00
Atsushi Eno 2a6da5d6f1 2003-01-26 Atsushi Enomoto <[email protected]>
* XmlNode.cs : implemented ReplaceChild.
	  removed DocElem checking at InsertBefore.
	* XmlNodeReader.cs : fixed ReadString and Read for correct node info.
	* XmlText.cs : implemented CloneNode and SplitText.

svn path=/trunk/mcs/; revision=10911
2003-01-26 08:06:56 +00:00
Gonzalo Paniagua Javier 339e5c416c 2003-01-26 Gonzalo Paniagua Javier <[email protected]>
* DataGrid.cs: AutoGenerateColumns defaults to true. Fixed
	CreateColumnSet. Set the owner of the column when auto generated.
	In PrepareControlHierarchyForItem, fixed for loop bound.

	* LinkButtonInternal.cs: fixed infinite recursion bug.

	Fixes bug #37124.

svn path=/trunk/mcs/; revision=10910
2003-01-26 07:43:03 +00:00
Duncan Mak a93abb929c Update the links. Thanks for Andy Oliver for the report.
svn path=/trunk/mono/; revision=10909
2003-01-26 06:05:21 +00:00
Miguel de Icaza b2ba55ae18 Flush
svn path=/trunk/mono/; revision=10908
2003-01-26 05:55:59 +00:00
Martin Baulig 4adba32a0d 2003-01-26 Martin Baulig <[email protected]>
* debug.c (mono_debug_init): Take a boolean argument which
	specifies whether we're running in the Mono Debugger.

svn path=/trunk/mono/; revision=10890
2003-01-25 23:30:04 +00:00
Sebastien Pouliot bb95b6dced 2003-01-25 Sebastien Pouliot <[email protected]>
* CryptographicException.cs: Default HResult to CORSEC_E_CRYPTO
	(0x80131430) as documented.
	* CryptographicUnexpectedOperationException.cs: Default HResult
	to CORSEC_E_CRYPTO_UNEX_OPER (0x80131431) as documented.

svn path=/trunk/mcs/; revision=10887
2003-01-25 21:19:35 +00:00
Martin Baulig 10b3252091 2003-01-25 Martin Baulig <[email protected]>
* threads.c (start_wrapper): Moved the initialization of
	`start_func' above the mono_new_thread_init() call to which we
	pass it as argument.

svn path=/trunk/mono/; revision=10886
2003-01-25 19:43:45 +00:00
Christopher Bockner 11c71516de Some structural changes to implement Prepared Statements (prepared statements won't be done until I finish the parameter support though).
Added SQLNumParams and SQLDescribeParam to DB2ClientPrototypes.

svn path=/trunk/mcs/; revision=10885
2003-01-25 19:10:13 +00:00
Gaurav Vaish fcccc24e23 2003-01-25 Gaurav Vaish <gvaish_mono AT lycos.com>
* ControlPager.cs        : Completed.
	* ItemPager.cs           : Initial implementation.

svn path=/trunk/mcs/; revision=10884
2003-01-25 16:25:05 +00:00
Gaurav Vaish 876b85a756 2003-01-24 Gaurav Vaish <gvaish_mono AT lycos.com>
* ControlPager.cs        : PageCount { get; set; }   - Stubbed.
	* MobileControl.cs       : EnablePagination { get; set; }
	                                                     - Completed
	                         : SetControlPageRecursive   - Stubbed.
	* Panel.cs               : Completed.

svn path=/trunk/mcs/; revision=10883
2003-01-25 10:53:45 +00:00
Daniel Morgan 8c6910d366 2003-01-24 Daniel Morgan <[email protected]>
* System.Data/DataColumn.cs: fixes to be like .NET -
	when setting AllowDBNull to false, determine if there is
	any data that has DBNull.Value, implement AutoIncrement, do not
	allow changing the DataType of the column if data has already been
	set, check if the DataType is supported,

	* System.Data/DataColumnCollection.cs: handle default ColumnName
	like .NET

	* System.Data/DataRow.cs: fixes to be like .NET - a
	data column gets initialized to all DBNull.Values not null,
	implement AutoIncrement, when setting ItemArray if the item array being
	set has less items than the number of columns in the table set those last
	columns to DBNull.Value, after setting ItemArray values do an EndEdit(),
	both a null and DBNull.Value get set to a DBNull.Value, only use DefaultValue
	and AutoIncrement if the value is set to null while DBNull.Value only gets set
	to DBNull.Value

svn path=/trunk/mcs/; revision=10882
2003-01-24 22:32:49 +00:00
Gonzalo Paniagua Javier 9e41b7ec74 forgot this
svn path=/trunk/mcs/; revision=10881
2003-01-24 20:24:24 +00:00
Gonzalo Paniagua Javier aa7ae681b0 2003-01-24 Gonzalo Paniagua Javier <[email protected]>
* Path.cs: fixlet to ChangeExtension for the case when the path is
	empty.

svn path=/trunk/mcs/; revision=10880
2003-01-24 19:09:28 +00:00
Martin Baulig 1dc5cb17b9 2003-01-24 Martin Baulig <[email protected]>
* threads.h (MonoThreadCallbacks): Pass the thread ID instead of
	the MonoThread pointer.

svn path=/trunk/mono/; revision=10878
2003-01-24 16:54:52 +00:00
Martin Baulig fb551ca201 2003-01-24 Martin Baulig <[email protected]>
* debug.c (mono_debug_io_layer): Disable this on Windows.

svn path=/trunk/mono/; revision=10874
2003-01-24 16:39:19 +00:00
Martin Baulig b2cc52a35e 2003-01-24 Martin Baulig <[email protected]>
* ObjectReader.cs (ReadNextObject): Call
	RaiseDeserializationEvent() on the ObjectManager when we're done
	reading the whole graph.

svn path=/trunk/mcs/; revision=10873
2003-01-24 16:36:29 +00:00
Martin Baulig 33792aae6e 2003-01-24 Martin Baulig <[email protected]>
* ObjectManager.cs (RaiseDeserializationEvent): Walk the object
	list in the correct order.

svn path=/trunk/mcs/; revision=10872
2003-01-24 16:34:40 +00:00
Miguel de Icaza e9a71ceeb4 Update this
svn path=/trunk/mcs/; revision=10871
2003-01-24 16:14:06 +00:00
Miguel de Icaza 2eb361050d oops, make this public
svn path=/trunk/mcs/; revision=10870
2003-01-24 16:10:01 +00:00
Miguel de Icaza 98833b0ff9 2003-01-21 Miguel de Icaza <[email protected]>
* Math.cs: Remove Pow's implementation body as it was wrong.  The
	C code does the right thing.  The code was trying to handle a
	number of cases, and that was incorrect.

svn path=/trunk/mcs/; revision=10869
2003-01-24 15:37:35 +00:00
Miguel de Icaza 93537be4a8 2003-01-21 Miguel de Icaza <[email protected]>
* icall.c: Rename `PowImpl' to Pow.

svn path=/trunk/mono/; revision=10868
2003-01-24 15:35:11 +00:00
Ville Palo 1b239ee0eb 2003-01-24 Ville Palo <[email protected]>
* UniqueConstraint.cs: Do not set columns Unique property true
	as a default.
	* ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table

svn path=/trunk/mcs/; revision=10867
2003-01-24 15:27:37 +00:00
Ville Palo cdbd5a9c22 2003-24-01 Ville Palo <[email protected]>
* UniqueConstraint.cs: More tests

svn path=/trunk/mcs/; revision=10866
2003-01-24 13:31:51 +00:00
Lluis Sanchez e8014227ca * unix.args: added System.Runtime.Remoting/TypeInfo.cs and
System.Runtime.Serialization.Formatters.Binary/MessageFormatter.cs

svn path=/trunk/mcs/; revision=10865
2003-01-24 11:22:26 +00:00
Lluis Sanchez 5195d4cfc0 * ObjectWriter.cs, ObjectReader.cs: Added suport for headers.
Corrected encoding of primitive types. Corrected a bug about zero-length arrays.
* MessageFormatter.cs: Added. Implements serialization of messages.
* BinaryFormatter.cs: Added serialization of messages.
* BinaryCommon.cs: Added enum of codes of primitive types.

svn path=/trunk/mcs/; revision=10864
2003-01-24 11:21:30 +00:00
Lluis Sanchez 72e6c4348f RemotingServices.cs: Implemented some missing methods: IsMethodOverloaded,
SetObjectUriForMarshal, IsOneWay, IsObjectOutOfAppDomain,
 IsObjectOutOfContext, GetObjRefForProxy, GetObjectData,
GetMethodBaseFromMethodMessage.

TypeInfo.cs: Added.

ObjRef.cs: Implemented serialization and added support
for IRemotingTypeInfo.

svn path=/trunk/mcs/; revision=10863
2003-01-24 11:19:39 +00:00
Gonzalo Paniagua Javier 5ef88c7ac5 2003-01-24 Gonzalo Paniagua Javier <[email protected]>
* XmlCharacterData.cs: added XPathNodeType property.

svn path=/trunk/mcs/; revision=10859
2003-01-24 06:30:54 +00:00
Gonzalo Paniagua Javier 5c538ee58e 2003-01-24 Gonzalo Paniagua Javier <[email protected]>
* XslTransform.cs: don't free the xml document used for the style sheet.
	xmlFreeStylesheet already does it. Correctly close the element tag for
	elements that don't have children. Added a couple of checks more.

svn path=/trunk/mcs/; revision=10858
2003-01-24 06:29:49 +00:00
Gonzalo Paniagua Javier 75416f91c2 oops
svn path=/trunk/mcs/; revision=10857
2003-01-24 03:13:49 +00:00
Gonzalo Paniagua Javier a26ebb5aa7 2003-01-24 Gonzalo Paniagua Javier <[email protected]>
* CharEnumerator.cs: completed the prior patch.

svn path=/trunk/mcs/; revision=10856
2003-01-24 03:07:36 +00:00
Sebastien Pouliot d04a876547 2003-01-23 Sebastien Pouliot <[email protected]>
* cert2spc.1: man page for cert2spc tool
	* secutil.1: man page for secutil tool

svn path=/trunk/mono/; revision=10855
2003-01-24 02:47:00 +00:00
Gonzalo Paniagua Javier cf13915eb7 2003-01-24 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs: fixed bug #36929.

svn path=/trunk/mcs/; revision=10854
2003-01-24 02:06:35 +00:00
Gonzalo Paniagua Javier 1915761fde 2003-01-24 Gonzalo Paniagua Javier <[email protected]>
* CharEnumerator.cs: fix to Current by [email protected]. Closes
	bug #37113.

svn path=/trunk/mcs/; revision=10853
2003-01-24 01:16:48 +00:00
Gonzalo Paniagua Javier 65a2ace011 2003-01-24 Gonzalo Paniagua Javier <[email protected]>
* Enum.cs: added caching to GetInfo.

svn path=/trunk/mcs/; revision=10850
2003-01-23 23:59:51 +00:00
Marco Ridoni 3cc7f9d629 Enums are supported and working
Cast functions (CStr(), CBool(), etc) supported
ByRef parameters now work
A few fixes for optional parameters and structure declaration
String concatenation operator supported (to be debugged)

svn path=/trunk/mcs/; revision=10849
2003-01-23 23:07:09 +00:00
Gaurav Vaish 9c1a912c8a 2003-01-23 Gaurav Vaish <gvaish_mono AT lycos.com>
* Command.cs             : Completed.
	* Form.cs                : CurrentPage { get; set; } - Stubbed.

svn path=/trunk/mcs/; revision=10842
2003-01-23 18:17:29 +00:00
Gonzalo Paniagua Javier 981441bd4f 2003-01-23 Gonzalo Paniagua Javier <[email protected]>
* XslTransform.cs: fixed a couple of Transform overloads and changed the
	library name in DllImport to make it work on windows too.

svn path=/trunk/mcs/; revision=10841
2003-01-23 18:14:27 +00:00
Gonzalo Paniagua Javier c842bdee36 2003-01-23 Gonzalo Paniagua Javier <[email protected]>
* Makefile.am:
	* libtest.c:
	* pinvoke12.cs: added new test for string [] marshaling.

svn path=/trunk/mono/; revision=10840
2003-01-23 18:08:18 +00:00
Dick Porter 1018fa070e 2003-01-23 Dick Porter <[email protected]>
* Environment.cs (System): Implemented ExitCode

svn path=/trunk/mcs/; revision=10839
2003-01-23 17:57:47 +00:00
Dick Porter 9b5c149aec Run all managed code in a subthread. Re-enable GC threaded finalisation.
Fixes bugs 34263 and 31333.

(All tests still behave the same way - 4 fails)

2003-01-23  Dick Porter  <[email protected]>

	* threads.c (start_wrapper): Create a Thread object if needed, so
	the Main() thread can do the class initialisation in a subthread
	that has been set up to allow managed code execution.

	Pass the thread ID instead of the MonoThread pointer to the thread
	start and attach callbacks.  This change is required, because the
	jit thread start callback must be called _before_ the Thread
	object can be created.

	(mono_thread_init): Removed much object creation code that is no
	longer needed.  No managed code is called from here now.

	* object.c (mono_runtime_exec_managed_code): Create a subthread
	for Main, and call back to the runtime to use it.
	Set the exit code when Main exits.

	* gc.c: Make sure domain finalisation happens in a subthread.
	Re-enable threaded GC, fixing bug 31333 (again).

	* environment.c: System.Environment internall calls (so far just
	ExitCode is here, the others are still in icall.c)

	* appdomain.c (mono_runtime_cleanup): All threads running managed
	code should have finished before mono_runtime_cleanup() is
	reached, so no need to clean up threads.


2003-01-23  Dick Porter  <[email protected]>

	* mono.c: Use mono_runtime_exec_managed_code() to run all managed
	code in a subthread.

	* jit.c: Changed thread start and attach callbacks to pass the
	thread ID, not the MonoThread pointer.  Arrange that managed code
	execution will fail an assertion in the main thread, just to be
	sure.


2003-01-23  Dick Porter  <[email protected]>

	* interp.c: Use mono_runtime_exec_managed_code() to run all
	managed code in a subthread.

svn path=/trunk/mono/; revision=10838
2003-01-23 17:46:26 +00:00
Zoltan Varga 7f33ba9dd9 2003-01-23 Zoltan Varga <[email protected]>
* Type.cs (IsInstanceOfType): fixed regression caused by the change
	to IsSubclassOf().

svn path=/trunk/mcs/; revision=10836
2003-01-23 15:40:23 +00:00
Ville Palo b2810b60d6 uups
svn path=/trunk/mcs/; revision=10835
2003-01-23 15:30:21 +00:00
Ville Palo 68016bf599 2003-23-01 Ville Palo <[email protected]>
* ForeignKeyConstraint.cs: More tests

svn path=/trunk/mcs/; revision=10834
2003-01-23 14:55:43 +00:00
Rafael Teixeira e8df4f6375 MonoBASIC Compiler 1.0.0.0 - (c)2002 Rafael Teixeira
This is a compiler for the MonoBASIC language,
which is a superset of Visual Basic.NET

Usage: mbas [options] SOURCE-FILES
Options:
  -? --help             Show this help list
     --about            About the MonoBASIC compiler
     --addmodule=PARAM  [NOT IMPLEMENTED YET]Reference metadata from specified module
     --baseaddress=PARAM [NOT IMPLEMENTED YET]The base address for a library or module (hex)
     --bugreport=PARAM  [NOT IMPLEMENTED YET]Create bug report file
     --checked          [Mono] Set default context to checked
  -d --define=PARAM     [NOT IMPLEMENTED YET]Declares global conditional compilation symbol(s). symbol list:name=value,...
     --debug            Emit debugging information
     --debug-args=PARAM [Mono] Debugger arguments
     --debug:full       Emit full debugging information (default)
     --debug:pdbonly    [IGNORED]Emit PDB file only
     --delaysign        [NOT IMPLEMENTED YET]Delay-sign the assembly using only the public portion of the strong name key
     --fatal            [Mono] Makes errors fatal
     --ignorewarn=PARAM [Mono] Ignores warning number PARAM
     --imports=PARAM    [NOT IMPLEMENTED YET]Declare global Imports for namespaces in referenced metadata files. import list:namespace,...
     --keycontainer=PARAM [NOT IMPLEMENTED YET]Specifies a strong name key container
     --keyfile=PARAM    [NOT IMPLEMENTED YET]Specifies a strong name key file
     --libpath=PARAM    [NOT IMPLEMENTED YET]List of directories to search for metada references (semi-colon delimited)
     --linkpaths=PARAM  [Mono] Adds path to the assembly link path
     --linkresource=PARAM [NOT IMPLEMENTED YET]Adds the specified file as an embedded assembly resource
  -m --main=PARAM       Specifies the Class or Module that contains Sub Main.It can also be a Class that inherits from System.Windows.Forms.Form.
     --noconfig         [Mono] Disables implicit references to assemblies
     --nologo           [NOT IMPLEMENTED YET]Do not display compiler copyright banner
     --nostdlib         [Mono] Don't assume the standard library
     --nowarn           Disable warnings
  -o --out=PARAM        Specifies the output file name
     --optimize         [NOT IMPLEMENTED YET]Enable optimizations
     --optioncompare:binary [NOT IMPLEMENTED YET]Specifies binary-style string comparisons. This is the default
     --optioncompare:text [NOT IMPLEMENTED YET]Specifies text-style string comparisons.
     --optionexplicit   [NOT IMPLEMENTED YET]Require explicit declaration of variables
     --optionstrict     [NOT IMPLEMENTED YET]Enforce strict language semantics
     --parse            [Mono] Only parses the source file (for debugging the tokenizer)
     --quiet            [NOT IMPLEMENTED YET]Quiet output mode
     --recurse=PARAM    [NOT IMPLEMENTED YET]Include all files in the current directory and subdirectories according to the wildcard
     --removeintchecks  [NOT IMPLEMENTED YET]Remove integer checks. Default off.
     --resource=PARAM   Adds the specified file as an embedded assembly resource
     --rootnamespace=PARAM [NOT IMPLEMENTED YET]Specifies de root namespace for all type declarations
  -r --reference=PARAM  References metadata from the specified assembly
     --stacktrace       [Mono] Shows stack trace at Error location
     --target=PARAM     Specifies the target type for the output file (exe [default], winexe, library, module)
     --timestamp        [Mono] Displays time stamps of various compiler events
     --tokenize         [Mono] Only tokenizes source files
     --unsafe           [Mono] Allows unsafe code
     --usage            Show usage syntax and exit
     --utf8output       [NOT IMPLEMENTED YET]Emit compiler output in UTF8 character encoding
  -v --verbose          Display verbose messages
     --warnaserror      Treat warnings as errors
     --win32icon=PARAM  [NOT IMPLEMENTED YET]Specifies a Win32 icon file (.ico) for the default Win32 resources
     --win32resource=PARAM [NOT IMPLEMENTED YET]Specifies a Win32 resource file (.res)
     --wlevel=PARAM     [Mono] Sets warning level (the highest is 4, the default)

svn path=/trunk/mcs/; revision=10833
2003-01-23 14:25:50 +00:00
Dick Porter 77581d9878 Build Mono.Data.DB2Client with nant
svn path=/trunk/mcs/; revision=10832
2003-01-23 13:27:25 +00:00
Nick Drochak 39dffe4aa0 install dbg files only if they exist...
svn path=/trunk/mcs/; revision=10831
2003-01-23 09:12:26 +00:00
Nick Drochak 85de469f3d 2003-01-23 Nick Drochak <[email protected]>
* makefile: install the .dbg files too so the debugger can use them.

svn path=/trunk/mcs/; revision=10827
2003-01-23 08:38:36 +00:00
Nick Drochak 78bfcc7744 2003/01/23 Nick Drochak <[email protected]>
* ThreadTest.cs: Test for alternate possibilities

svn path=/trunk/mcs/; revision=10826
2003-01-23 07:22:16 +00:00
Gonzalo Paniagua Javier e796ecc0a2 2003-01-23 Gonzalo Paniagua Javier <[email protected]>
* System/System.Net.Sockets/NetworkStream.cs: the check for disposed
	should not be done in the finally clause.

	* corlib/System.IO/BufferedStream.cs: don't try to write a 0 sized
	array on when flushing the stream.

	Fixes bug #37045.

svn path=/trunk/mcs/; revision=10825
2003-01-23 05:30:47 +00:00
Marco Ridoni 43ab67e8a3 Structure declaration added to grammar. Seems to work fine.
svn path=/trunk/mcs/; revision=10822
2003-01-22 23:02:29 +00:00
Gonzalo Paniagua Javier 352db0d1d5 2003-01-22 Gonzalo Paniagua Javier <[email protected]>
* driver.cs: use assembly.Location instead of Codebase (the latest
	patch made mcs fail when using MS assemblies).

svn path=/trunk/mcs/; revision=10821
2003-01-22 20:59:25 +00:00
Ville Palo 82d15cacb4 2003-22-01 Ville Palo <[email protected]>
* DataRelationTest.cs: More tests and little clean up.

svn path=/trunk/mcs/; revision=10820
2003-01-22 19:08:00 +00:00
Rafael Teixeira eaf6f3104e author list correction
svn path=/trunk/mcs/; revision=10819
2003-01-22 19:03:18 +00:00
Rafael Teixeira cad2588a50 house cleaning
svn path=/trunk/mcs/; revision=10818
2003-01-22 19:01:31 +00:00
Martin Baulig b2794569ee Ooops, this was just for debugging.
svn path=/trunk/mono/; revision=10813
2003-01-22 12:41:13 +00:00
Martin Baulig b71d3cacdc 2003-01-22 Martin Baulig <[email protected]>
* debug.c: Reverted Gonzalo's last change since it is wrong.
	We're also using the debugging code on Windows, for instance the
	stabs stuff when running in gdb.  I hope this code still builds on
	Windows; if not, we need to fix this.
	Moved all the mono debugger support code into the debugger itself;
	when debugging a managed application, the debugger new launches a
	small unmanaged wrapper application which contains this stuff.

	* debug.h (MonoDebuggerIOLayer): New public typedef; this is just
	initialized to an array of function pointers to the io-layer
	function; they don't seem to be public in the `libmono' library.
	(mono_debugger_event): New public function.  Sends the debugger an
	event if we're running in the Mono Debugger and does nothing otherwise.

	* mono.c: Don't initialize the Mono Debugger here.

	* jit.c (mono_debug_insert_breakpoint): Removed, this isn't used anymore.
	(mono_thread_start_cb, mono_thread_attach_cb): Call
	mono_debugger_event() to send the debugger a callback.

svn path=/trunk/mono/; revision=10807
2003-01-22 12:16:53 +00:00
Martin Baulig 3064d4052d 2003-01-22 Martin Baulig <[email protected]>
* appdomain.h (MonoThreadStartCB): Added `MonoThread *thread' and
	`gpointer func' arguments.
	(MonoThreadAttachCB): New typedef; like the old MonoThreadStartCB,
	but added `MonoThread *thread' argument.
	(mono_runtime_init): The last argument is now a MonoThreadAttachCB.

	* threads.c (mono_new_thread_init): Added `gpointer func' argument
	and pass it to the mono_thread_start_cb callback.
	(mono_install_thread_callbacks): New public function to install a
	set of callbacks which are set by the debugger.
	(mono_thread_init): The last argument is now a MonoThreadAttachCB.

svn path=/trunk/mono/; revision=10806
2003-01-22 12:11:00 +00:00
Martin Baulig bca39d3b1e 2003-01-22 Martin Baulig <[email protected]>
* Makefile.am: Install debug-mono-symfile.h.

svn path=/trunk/mono/; revision=10805
2003-01-22 12:06:27 +00:00
Martin Baulig 6297dcd141 **** Reverted this ****
2003-01-16  Martin Baulig  <[email protected]>

	Added special support for the Mono Debugger to send it a
	notification each time a thread is created or exited.

	* timed-thread.h (TimedThread): Added `pid' and `start_sem'.

	* timed-thread.c (timed_thread_start_routine): If
	`mono_debugger_threads_debug' is non-zero, set `thread->pid' and
	post the `thread->start_sem'.
	(_wapi_timed_thread_create): If `mono_debugger_threads_debug' is
	non-zero, wait for the `thread->start_sem' before returning.

	* threads.c (mono_debugger_threads_debug): New global variable
	which is set by the Mono Debugger.
	(mono_debugger_thread_info): New global variable.
	(update_debugger_thread_info): When running inside the Mono
	Debugger (`mono_debugger_threads_debug' is non-zero), update the
	`mono_debugger_thread_info' array.  This function is called (while
	owning the `thread_hash_mutex') each time the `thread_hash' is
	modified.

svn path=/trunk/mono/; revision=10804
2003-01-22 12:05:14 +00:00
Martin Baulig 34a6a36d40 2003-01-22 Martin Baulig <[email protected]>
* configure.in: Set version number to 0.19.1.

	Heads up: I'm going to commit some changes to the debugger
	which'll require you to use this new runtime, so if you update the
	debugger from CVS, you also need this new runtime.

svn path=/trunk/mono/; revision=10803
2003-01-22 12:02:54 +00:00
Gonzalo Paniagua Javier 60a8df88d7 fixed CS0642s
svn path=/trunk/mcs/; revision=10801
2003-01-22 11:45:37 +00:00
Gonzalo Paniagua Javier 14367a46dd 2003-01-22 Gonzalo Paniagua Javier <[email protected]>
* XslTransform.cs: implemented all Load and Transform methods. It uses
	libxml2 and libxslt. No more temp files. It's slow and memory consuming,
	but, well, that's XSLT... ;-). Idea from Zdravko Tashev.

	Now the Xsl web control works.

svn path=/trunk/mcs/; revision=10800
2003-01-22 11:35:49 +00:00
Gonzalo Paniagua Javier e396af4615 2003-01-22 Gonzalo Paniagua Javier <[email protected]>
* System.Xml/XmlTextWriter.cs: throw an exception if WriteEndDocument is
	called without a prior call to WriteStartDocument.

svn path=/trunk/mcs/; revision=10799
2003-01-22 11:31:28 +00:00
Gonzalo Paniagua Javier 38910ee49d 2003-01-22 Zdravko Tashev <[email protected]>
* Xml.cs: a few fixes.

svn path=/trunk/mcs/; revision=10798
2003-01-22 11:14:12 +00:00
Nick Drochak e212862a20 2003/01/22 Nick Drochak <[email protected]>
* makefile: assume csc for makefile, and mcs for makfile.gnu.

svn path=/trunk/mcs/; revision=10797
2003-01-22 06:08:51 +00:00
Nick Drochak 5ad2fa6d9c 2003/01/22 Nick Drochak <[email protected]>
* makefile: Use csc compiler in here. makefile.gnu assumes mono/mcs

svn path=/trunk/mcs/; revision=10796
2003-01-22 04:16:09 +00:00
Lluis Sanchez 6d6fe4d6fe binary serialization format.htm: Added to CVS
svn path=/trunk/mcs/; revision=10795
2003-01-22 00:39:04 +00:00
Marco Ridoni df12c40dca Interface should work for methods and properties
svn path=/trunk/mcs/; revision=10794
2003-01-21 23:39:11 +00:00
Marco Ridoni e802a9c910 A few minor fixes
svn path=/trunk/mcs/; revision=10788
2003-01-21 21:20:39 +00:00
Gonzalo Paniagua Javier 5367deb9e7 2003-01-21 Aleksey Demakov <[email protected]>
* marshal.c: fixed copy_from_managed and copy_to_unmanaged for 0 length.

svn path=/trunk/mono/; revision=10787
2003-01-21 21:07:02 +00:00
Marco Ridoni e1309ef9d6 A fix for return values in functions and another step towards
implementation of Interfaces

svn path=/trunk/mcs/; revision=10785
2003-01-21 19:42:23 +00:00
Atsushi Eno c8fafc3e01 2003-01-22 Atsushi Enomoto <[email protected]>
*  added recent tests below to System.XML_linux_test.args

svn path=/trunk/mcs/; revision=10784
2003-01-21 19:34:04 +00:00
Johannes Roith a625dc3965 fix typo
svn path=/trunk/mono/; revision=10782
2003-01-21 19:13:36 +00:00
Gonzalo Paniagua Javier b74156c766 2003-01-21 Tim Haynes <[email protected]>
* driver.cs: use DirectorySeparatorChar instead of a hardcoded "/" to
	get the path to *corlib.dll.

svn path=/trunk/mcs/; revision=10781
2003-01-21 19:01:48 +00:00
Gonzalo Paniagua Javier d127318010 2003-01-21 Tim Haynes <[email protected]>
* AspGenerator.cs:
	* BaseCompiler.cs:
	* CachingCompiler.cs: changes to work around spaces and
        directory-separators in the local filesystem.

svn path=/trunk/mcs/; revision=10780
2003-01-21 18:44:21 +00:00
Gonzalo Paniagua Javier 45982eab2c removed type-reflector from install
svn path=/trunk/mcs/; revision=10779
2003-01-21 18:21:21 +00:00
Paolo Molaro 2007e3095d Tue Jan 21 17:29:53 CET 2003 Paolo Molaro <[email protected]>
* ppc/ppc-codegen.h: completed ppc native code generation by
	Taylor Christopher P <[email protected]>.

svn path=/trunk/mono/; revision=10778
2003-01-21 16:33:33 +00:00
Miguel de Icaza aa40261df4 Flush from work
svn path=/trunk/mono/; revision=10777
2003-01-21 13:49:17 +00:00
Dietmar Maurer 8b540999cf another test
svn path=/trunk/mono/; revision=10772
2003-01-21 09:30:46 +00:00
Dietmar Maurer 3eb0642aba 2003-01-21 Dietmar Maurer <[email protected]>
* added the following fix from Jackson Harper <[email protected]>
	* class.c (mono_ptr_class_get): correctly set access levels of pointers
	(mono_array_class_get): correctly set access levels of arrays

svn path=/trunk/mono/; revision=10771
2003-01-21 09:27:40 +00:00
Miguel de Icaza c069366220 Update
svn path=/trunk/mcs/; revision=10770
2003-01-21 06:32:50 +00:00
Nick Drochak 70292a398b 2003-01-21 Nick Drochak <[email protected]>
* cs-tokenizer.cs:
	* pending.cs:
	* typemanager.cs: Remove compiler warnings

svn path=/trunk/mcs/; revision=10767
2003-01-21 04:17:14 +00:00
Atsushi Eno 5671e092b3 sorry, forgot to add it.
svn path=/trunk/mcs/; revision=10766
2003-01-21 03:24:41 +00:00
Atsushi Eno 33b1f7ac3a 2003-01-21 Atsushi Enomoto <[email protected]>
*  added XmlNodeReaderTests.cs file and added it to AllTests.cs

svn path=/trunk/mcs/; revision=10765
2003-01-21 03:23:58 +00:00
Atsushi Eno daa30f4735 2003-01-21 Atsushi Enomoto <[email protected]>
* XmlNodeReader.cs : several fix to get more compatible with MS.NET.

svn path=/trunk/mcs/; revision=10764
2003-01-21 03:22:54 +00:00
Miguel de Icaza 1b431c9b78 Update
svn path=/trunk/mono/; revision=10763
2003-01-21 02:46:06 +00:00
Jaime Anguiano Olarra 33bc8c4d79 Added a readme for the newcomers.
svn path=/trunk/mcs/; revision=10761
2003-01-21 00:51:10 +00:00
Patrik Torstensson 8f1f6f47ba 2003-01-20 Patrik Torstensson
* image.h (MonoAssemblyName): changed major, minor, build, revision
	from signed to unsigned.

svn path=/trunk/mono/; revision=10759
2003-01-20 23:36:26 +00:00
Miguel de Icaza 9a06c42fc4 More screenshots
svn path=/trunk/mono/; revision=10758
2003-01-20 23:33:40 +00:00
Miguel de Icaza 28fdafd85b Add screenshots section.
Move screenshots from main page
Prepare for release.
Update JIT debug information

svn path=/trunk/mono/; revision=10757
2003-01-20 23:25:58 +00:00
Duncan Mak 2c25334dab 2003-01-20 Duncan Mak <[email protected]>
* configure.in: Bump the release number to 0.19.

svn path=/trunk/mono/; revision=10756
2003-01-20 23:17:15 +00:00
Daniel Morgan a387d1d5f6 2003-01-20 Daniel Morgan <[email protected]>
* README: updated notes on connection strings and providers
	* SqlSharpCli.cs: fixes for other providers:
	OracleClient, DB2Client, Npgsql, MySqlNet

svn path=/trunk/mcs/; revision=10755
2003-01-20 23:14:46 +00:00
Duncan Mak 8302a4cdf2 ~head -4 ChangeLog~
svn path=/trunk/mcs/; revision=10754
2003-01-20 23:10:53 +00:00
Miguel de Icaza e2f8e143d5 Final touches
svn path=/trunk/mcs/; revision=10753
2003-01-20 23:01:13 +00:00
Gonzalo Paniagua Javier 0e5ece6919 2003-01-20 Gonzalo Paniagua Javier <[email protected]>
* debug.c: make all public symbols just dummy for windows.

svn path=/trunk/mono/; revision=10752
2003-01-20 23:01:09 +00:00
Miguel de Icaza 57045a4722 target for windows build
svn path=/trunk/mcs/; revision=10751
2003-01-20 22:55:05 +00:00
Miguel de Icaza 0243e76a79 Make mbas compile
svn path=/trunk/mcs/; revision=10750
2003-01-20 22:50:11 +00:00
Miguel de Icaza 2930bfc0c1 Remove dependency
svn path=/trunk/mcs/; revision=10749
2003-01-20 22:49:55 +00:00
Miguel de Icaza ccac5f0c5a Put back mbas
svn path=/trunk/mcs/; revision=10748
2003-01-20 22:45:22 +00:00
Miguel de Icaza 83cd9cde53 Also avoid SIGKILL for Windows
svn path=/trunk/mono/; revision=10747
2003-01-20 22:40:23 +00:00
Miguel de Icaza a02e1fed0c 2003-01-20 Miguel de Icaza <[email protected]>
* debug.c (initialize_debugger_support): ifdef out the call to
	mono_debugger_init_thread_debug for the release.

	Someone should look into why its not defined.  I think the problem
	is what Dick pointed out somewhere: code in io-layer is not
	supposed to ever be used in Windows, so code for the debugger that
	lives there must be moved elsewhere.

svn path=/trunk/mono/; revision=10746
2003-01-20 22:33:55 +00:00
Miguel de Icaza 950c405b0f 2003-01-20 sean kasun <[email protected]>
* reflection.c (load_cattr_value): Now this handles
	MONO_TYPE_SZARRAY.  Fixes bug #35629

svn path=/trunk/mono/; revision=10745
2003-01-20 20:43:04 +00:00
Miguel de Icaza 794b145a19 Flush
svn path=/trunk/mono/; revision=10744
2003-01-20 20:13:17 +00:00
Miguel de Icaza 265528cc6c Remove mbas from the build for now, it has a cyclic dependency
svn path=/trunk/mcs/; revision=10743
2003-01-20 20:04:52 +00:00
Miguel de Icaza cb96c08125 Flush debugger announcement
svn path=/trunk/mono/; revision=10741
2003-01-20 19:06:53 +00:00
Gonzalo Paniagua Javier 210cff6e1f 2003-01-20 Gonzalo Paniagua Javier <[email protected]>
* cs-tokenizer.cs: little fixes to line numbering when #line is used.

svn path=/trunk/mcs/; revision=10739
2003-01-20 18:42:08 +00:00
Miguel de Icaza 1cc6caed3e Update with Dick's comments
svn path=/trunk/mono/; revision=10738
2003-01-20 18:11:10 +00:00
Miguel de Icaza fe75e1b8d3 2003-01-20 Miguel de Icaza <[email protected]>
* marshal.c (emit_struct_conv): Handle MONO_TYPE_PTR as an
	integer value

svn path=/trunk/mono/; revision=10737
2003-01-20 18:06:01 +00:00
Gonzalo Paniagua Javier 81f764072e 2003-01-20 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: make the generated file compile with csc after last
	change.

svn path=/trunk/mcs/; revision=10736
2003-01-20 17:57:55 +00:00
Gonzalo Paniagua Javier 341c7420f0 2003-01-20 Gonzalo Paniagua Javier <[email protected]>
* Tds70.cs:
	(FormatParameter): send input/output parameter names. This way we don't
	depend on the parameter position being different of the index in the
	parameter collection.

svn path=/trunk/mcs/; revision=10735
2003-01-20 17:57:06 +00:00
Gonzalo Paniagua Javier 26bab89059 2003-01-20 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspGenerator.cs: removed unused variable. Added
	support for properties/fields of type string [].

	* System.Web.UI.WebControls/DataList.cs: handle the exception when
	adding new keys to DataKeysArray.

svn path=/trunk/mcs/; revision=10734
2003-01-20 15:03:32 +00:00
Duncan Mak b741b03a5a 2003-01-20 Duncan Mak <[email protected]>
* list.unix: Remove the extra reference to ArgumentProcessorAttribute.cs

svn path=/trunk/mcs/; revision=10732
2003-01-20 14:34:04 +00:00
Rafael Teixeira c79b907d10 house cleaning
svn path=/trunk/mcs/; revision=10731
2003-01-20 13:41:55 +00:00
nobody 4e4824afab This commit was manufactured by cvs2svn to create branch 'SAVANNAH_CVS'.
svn path=/branches/SAVANNAH_CVS/mcs/; revision=6844
2002-08-21 10:08:33 +00:00
Martin Baulig 7f0542b133 Importing NUnit 1.11.
svn path=/branches/NUNIT/mcs/; revision=2713
2002-02-27 09:38:21 +00:00
nobody 9f187b5dd0 This commit was manufactured by cvs2svn to create branch 'NUNIT'.
svn path=/branches/NUNIT/mcs/; revision=2712
2002-02-27 09:38:18 +00:00
1109 changed files with 100737 additions and 72316 deletions

No files matched your search

+98
View File
@@ -1,3 +1,101 @@
2003-02-17 Daniel Morgan <[email protected]>
* doc/provider-factory: add new web page
about Mono.Data's ProviderFactory
* doc/web/commands
* doc/web/makefile: add provider-factory web page to build
* doc/ado-net
* doc/ibmdb2
* doc/postgresql
* doc/sqlclient
* doc/tdsclient
* doc/sybase
* doc/mysql
* doc/firebird
* doc/oracle
* doc/oledb
* doc/odbc
* doc/sqlite: updated web pages
2003-02-16 Martin Baulig <[email protected]>
* doc/jit-debug-sample
* doc/jit-debug-sample2: Removed.
* doc/jit-debug: Updated.
2003-02-13 Daniel Morgan <[email protected]>
* doc/screenshots
* doc/ado-net
* doc/oracle
* doc/gtk-sharp: update web pages
2003-02-13 Gonzalo Paniagua Javier <[email protected]>
* data/machine.config: added sample globalization section.
2003-02-12 Gonzalo Paniagua Javier <[email protected]>
* data/machine.config: added UrlAuthorizationModule and
AuthenticationConfigHandler.
2003-02-11 Tim Coleman <[email protected]>
* data/config.in: Add mapping for Oracle call interface
(OCI) native libraries.
2003-02-04 Gonzalo Paniagua Javier <[email protected]>
* configure.in: added check for sys/un.h.
2003-01-29 Daniel Morgan <[email protected]>
* doc/postgresql
* doc/mysql
* doc/ado-net: updates to web pages
* man/sqlsharp.1: update to man page
2003-01-28 Gonzalo Paniagua Javier <[email protected]>
* configure.in: added WIN32_THREADS flag when building under windows.
It seems that the header files of the gc do not always define it when
GC_WIN32_THREADS is defined.
2003-01-26 Daniel Morgan <[email protected]>
* doc/index
* doc/ado-net
* doc/firebird
* doc/ibmdb2
* doc/mysql
* doc/odbc
* doc/oledb
* doc/oracle
* doc/postgresql
* doc/sqlclient
* doc/sqlite
* doc/sybase
* doc/tdsclient: corrections
2003-01-26 Duncan Mak <[email protected]>
* doc/jit-debug: Update the links. Thanks for Andy Oliver for the report.
2003-01-22 Martin Baulig <[email protected]>
* configure.in: Set version number to 0.19.1.
Heads up: I'm going to commit some changes to the debugger
which'll require you to use this new runtime, so if you update the
debugger from CVS, you also need this new runtime.
2003-01-20 Duncan Mak <[email protected]>
* configure.in: Bump the release number to 0.19.
2003-01-19 Daniel Morgan <[email protected]>
* doc/ibmdb2: added file which is new web page
+430
View File
@@ -1,3 +1,433 @@
Hello everyone!
The Mono Team introduces the best Mono release so far we have
done. Thanks to everyone who contributed fixes, code, ideas, and bug
reports.
Mono 0.20 has been released, it is available at the usual location:
http://www.go-mono.com/download.html
This is a truly heroic release of Mono. Major architectural
chunks that were missing, or were miss-implemented have been fixed in
this release, and we are very proud of it. Please see the list of
features, because there is no short way of introducing just how good
this release is. A big thanks goes to Piers for setting up a
Tinderbox that monitors problems with the Mono CVS repository.
We released packages for SuSE 8.0, Mandrake 8.2, and various
Red Hat releases. It is also available from Red Carpet on the Mono
channel.
Source code for Mono, MCS, the Mono Debugger, XSP is available as
well from that web page. The sources are:
MCS package (Class Libraries, C# and VB.NET compiler and managed tools):
http://www.go-mono.com/archive/mcs-0.20.tar.gz
Mono package (Runtime engine, JIT compiler):
http://www.go-mono.com/archive/mono-0.20.tar.gz
XSP package (XSP test web server for ASP.NET webforms):
http://www.go-mono.com/archive/xsp-0.3.tar.gz
This release is brought to you by: Alvaro del Castillo, Alan Tam,
Alp Toker, Alejandro Sánchez, Alexandre Pigolkin, Atsushi Enomoto,
Brian Ritchie, Christopher Bockner, Daniel Lopez, Daniel Morgan,
Dennis Hayes, Dick Porter, Dietmar Maurer, Duncan Mak, Gaurav Vaish,
Gonzalo Paniagua, Jackson Harper, Jaime Anguiano, Jeff Stedfast,
Johannes Roith, John Sohn, Jonathan Pryor, "Lee Mallabone, "Lluis
Sanchez, "Marco Ridoni, Mark Crichton, Martin Baulig, Martin Willemoes
Hansen, Miguel de Icaza, Mike Kestner, Nick Drochak, Paolo Molaro,
Patrik Torstensson, Pedro Martinez, Per Arneng, Peter Williams, Petr
Danecek, Piers Haken, Radek Doulik, Rafael Teixeira, Rodrigo Moya,
Sebastien Pouliot, Tim Coleman, Ville Palo, and Zoltan Varga.
They commited 1810 changes to CVS patches in the past 33 days.
* New in this release
* Zoltan and IKVM
Zoltan's patches to run Jeroen's IKVM (the Java VM that
translates JVM bytecodes into .NET bytecodes) are in.
* Remoting.
The remoting team's patches that were held off on the previous
release are here. Lluis and Patrik have done a fantastic job
in getting remoting to work. Many low-level runtime engine
changes, and plenty of work on the class-library stuff.
Lluis has posted a couple of sample applications to the
mailing list, you can try those out.
The new release includes a working BinaryFormatter and
BinaryFormatterSink. It means that together with TcpChannel
it is possible to make remote calls with any type of
parameters and return values, including value types,
MarshalByRefObject types (that are properly
marshalled/unmarshalled), delegates, enums, etc.
RemotingConfiguration is partially implemented. It cannot read
from config files, but manual configuration using the api is
fully working.
Implemented full support for client activated types and for
well known objects (both singleton and single call).
Lease manager fully working (it manages the lifetime of server
objects).
Implemented interception of the new operator, so it is
possible to create a remote object using "new", if the type is
properly registered in RemotingConfiguration.
In Lluis' words: `Basically, 0.20 will have almost all needed
for a distributed application with Remoting'
* New threading semantics, IO-layer
Dick Porter in a couple of weeks has heroically redone much of
the threading support to match the .NET behavior (details are
on the .NET threading book as posted on the Mono site).
He also did a lot of bug fixes in the IO/threading space. The
threading implementation now contains a new and faster Monitor
implementation, as well as a correct Pulse()/Wait()
implementation.
GC thread finalization has been re-enabled. This means that
finalizers will be ran on a separate thread, as done in the
Microsoft.NET Framework. This might expose some bugs on
existing finalizer code.
* Moved to NUnit2
Nick and Gonzalo helped us move to the new NUnit2 platform for
all of our tests. A big applause goes to them.
* Cross Appdomain invocations work now.
ASP.NET and NUnit2 both used cross appdomain invocations, we
have fixed a number of problems, and they are now functional.
The AppDomain fixes and the Remoting fixes have allowed us to
remove a number of hacks in the ASP.NET implementation that
were previously there.
Implemented CrossAppDomainChannel, for calls between domains.
* C# Compiler and Debugging.
When generating debugging information in the compiler (with
-debug, -g or -debug+) the compiler will embed the debugging
information into the resulting executable instead of
generating a separate file. Very nice.
Generating debugging information has also improved vastly
performance-wise, and now it is possible to always use
debugging builds for software development.
A number of bugs were fixed on the compiler as well and
by using the Mono profiler we have reduced the memory
consumption and accelerated the compiler.
Thanks to Jackson, Martin, Paolo and for helping here.
* VB.NET Compiler.
Plenty of new features are included in the compiler in our
path to conformance. See <FIXME:get-url-for-posting> for
details on the status of the compiler, and the pieces missing.
* ILasm and Mono.PEToolkit.
Work on the IL assembler has resumed, but it is not yet ready
for production use. The Mono IL Assembler uses the
Mono.PEToolkit library done by Sergey and Jackson to
manipulate CIL image files.
* Cryptographic work.
Sebastien has provided a cert2spc and secutil tools for
certificate management. This is the first release that ships
an assembly for System.Security
Also a new internal assembly used only on Windows allows Mono
users to use the unmanaged crypto providers.
* System.XML
Atsushi has continued to improve the work on our XML
implementation: fixing bugs and more closely matching the
Microsoft implementation.
* More PowerPC/Alpha support.
Taylor Christopher has contributed more code generation macros
for PPC and Laramie Leavitt for Alpha.
* System.XML.Xsl
Gonzalo continued the implementation of our XSLT transformation
API (custom .NET functions are still missing though). It no
longer uses temporary files to apply transformations. Thanks
to an idea from Zdravko Tashev. Xslt Web controls work as
part of this fix.
* ASP.NET
Gonzalo has cleaned up a lot the code base, and now our test
server supports a --root and --virtual command line options
for better control.
Also, now we generate a much nicer error page on errors. We
are looking for volunteers to improve the default look of this
page.
Authentication is now supported
* Mobile Controls.
Gaurav Vaish continues on his quest to complete the
implementation of the Mobile controls. These controls are
required to run a stock IBuySpy application.
* Class Libraries:
New Mono.Posix class library that contains classes for working
on a Posix systems. Things like Unix domain sockets are here.
* System.Windows.Forms
Alexandre Pigolkine continues to contribute more code to our
Windows.Forms implementation. Currently it only runs on
Windows (or in Linux without GC enabled, due to the
pthread/Wine threading library mismatch. This is being
actively addressed as part of the Wine work due to the
movement to the new thread implementation available in RH 8.1).
* Database providers
Christopher Bockner has updated his DB2 database provider (now
with prepared statement functionality) and Tim Coleman has
continued work on the Oracle database provider (welcome back
Tim!)
* Database code.
Dan Morgan continues to develop core components in System.Data
(and now we welcome Alan Tam to the System.Data core hackers)
The SQL# tool now supports MySQLNet, Npgsql, DB2Client, and
Oracle clients.
* Runtime
mono --profile now performs memory allocation profiling too.
* Runtime fixes.
We now support multi-module with external file reference
assemblies.
The above in English means that we can now run Eiffel.NET code
in Mono.
* Monograph:
More statistics supported now.
* System.Web.Mail
Per has contributed the code for this namespace.
* Bugs
Plenty of bugs were closed.
-------------------------------------------------------------------------
Hello everyone!
We have made a new release of Mono available. Despite the fact
that we just did Mono 0.18, this release is packed with new features.
* Availability.
Mono 0.19 is available in package format from:
http://www.go-mono.com/download.html
We released packages for SuSE 8.0, Mandrake 8.2, Debian and various
Red Hat releases. It is also available from Red Carpet on the Mono
channel.
Source code for Mono, MCS, the Mono Debugger, XSP is available as
well from that web page.
* New in this release
* Remoting news:
Lluis has implemented and documented the Binary formatter
Woohoo! He has done a lot of work as well to support
remoting.
Patrik has also been working heavily on fixing a
number of remoting related bugs and missing features.
Ajay also implemented 1-d array serialization in System.Xml
* New database provider: IBM DB2
Christopher Bockner has contributed a DB2 data
provider for System.Data. We have a very complete
range of data providers.
* System.Web.Mobile
Gaurav has started work on this assembly, this will
allow us to run the unmodified reference ASP.NET
applications that were designed to support Mobile
browsing.
* System.Data and System.XML:
More implementation work on XmlDataDocument from Ville
and plenty of fixes from Atsushi.
* MacOS patches:
Paolo integrated John Duncan's and Benjamin Reed
patches to make Mono run on MacOS X out of the box.
* IsolatedStorage
The initial implementation of it was done by Jonathan
Pryor and included in this release.
* Compilers:
More work on the Mono Visual Basic compiler (it is now
included in the packages).
Plenty of bug fixes from Jackson, Miguel to the C#
compiler.
Patches from Francesco and Daniel to the VB.NET
support runtime.
* Debugger support
Plenty of updates to run the new Mono Debugger from Martin.
* Main missing bits:
Some of everyone's favorite patches or code chunks have not yet
been integrated, hopefully Mono 0.20 will have them:
* Zoltan's patch to run IKVM is not yet on this release
* Some parts of Patrik's remoting code did not make it to the
release either.
* Reggie's MySQL native provider is also missing.
Enjoy!
Miguel.
-------------------------------------------------------------------------
Hello everyone!
We have made a new release of Mono available. Despite the fact
that we just did Mono 0.18, this release is packed with new features.
* Availability.
Mono 0.19 is available in package format from:
http://www.go-mono.com/download.html
We released packages for SuSE 8.0, Mandrake 8.2, Debian and various
Red Hat releases. It is also available from Red Carpet on the Mono
channel.
Source code for Mono, MCS, the Mono Debugger, XSP is available as
well from that web page.
* New in this release
* Remoting news:
Lluis has implemented and documented the Binary formatter
Woohoo! He has done a lot of work as well to support
remoting.
Patrik has also been working heavily on fixing a
number of remoting related bugs and missing features.
Ajay also implemented 1-d array serialization in System.Xml
* New database provider: IBM DB2
Christopher Bockner has contributed a DB2 data
provider for System.Data. We have a very complete
range of data providers.
* System.Web.Mobile
Gaurav has started work on this assembly, this will
allow us to run the unmodified reference ASP.NET
applications that were designed to support Mobile
browsing.
* System.Data and System.XML:
More implementation work on XmlDataDocument from Ville
and plenty of fixes from Atsushi.
* MacOS patches:
Paolo integrated John Duncan's and Benjamin Reed
patches to make Mono run on MacOS X out of the box.
* IsolatedStorage
The initial implementation of it was done by Jonathan
Pryor and included in this release.
* Compilers:
More work on the Mono Visual Basic compiler (it is now
included in the packages).
Plenty of bug fixes from Jackson, Miguel to the C#
compiler.
Patches from Francesco and Daniel to the VB.NET
support runtime.
* Debugger support
Plenty of updates to run the new Mono Debugger from Martin.
* Main missing bits:
Some of everyone's favorite patches or code chunks have not yet
been integrated, hopefully Mono 0.20 will have them:
* Zoltan's patch to run IKVM is not yet on this release
* Some parts of Patrik's remoting code did not make it to the
release either.
* Reggie's MySQL native provider is also missing.
Enjoy!
Miguel.
------------------------------------------------------------------------------
Happy new year!
The Mono team is proud to release Mono 0.18, with plenty of bug
+10 -3
View File
@@ -1,7 +1,7 @@
AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mono, 0.18)
AM_INIT_AUTOMAKE(mono, 0.21)
AM_MAINTAINER_MODE
#
@@ -9,7 +9,9 @@ AM_MAINTAINER_MODE
# compiling code that will embed Mono
#
libmono_cflags=""
libmono_ldflags=""
AC_SUBST(libmono_cflags)
AC_SUBST(libmono_ldflags)
# Thread configuration inspired by sleepycat's db
AC_MSG_CHECKING([host platform characteristics])
@@ -19,7 +21,7 @@ case "$host" in
AC_DEFINE(PLATFORM_WIN32)
CC="gcc -mno-cygwin"
HOST_CC="gcc"
CPPFLAGS="$CPPFLAGS -DGC_WIN32_THREADS"
CPPFLAGS="$CPPFLAGS -DGC_WIN32_THREADS -DWIN32_THREADS"
libdl=
;;
*-*-*bsd*)
@@ -27,6 +29,7 @@ case "$host" in
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
libmono_cflags="-D_THREAD_SAFE"
LDFLAGS="$LDFLAGS -pthread"
libmono_ldflags="-pthread"
AC_DEFINE(NEED_LINK_UNLINK)
AC_DEFINE(PTHREAD_POINTER_ID)
libdl=
@@ -35,6 +38,7 @@ case "$host" in
platform_win32=no
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -DMONO_USE_EXC_TABLES -D_GNU_SOURCE -D_REENTRANT -fexceptions"
libmono_cflags="-DMONO_USE_EXC_TABLES -fexceptions -D_REENTRANT"
libmono_ldflags="-lpthread"
libdl="-ldl"
;;
*-*-solaris*)
@@ -48,6 +52,7 @@ case "$host" in
CPPFLAGS="$CPPFLAGS -no-cpp-precomp -D_THREAD_SAFE"
libmono_cflags="-D_THREAD_SAFE"
LDFLAGS="$LDFLAGS -pthread"
libmono_ldflags="-pthread"
AC_DEFINE(NEED_LINK_UNLINK)
AC_DEFINE(PTHREAD_POINTER_ID)
libdl=
@@ -90,7 +95,7 @@ AC_HEADER_STDC
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h semaphore.h)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h semaphore.h sys/un.h)
# for mono/metadata/debug-symfile.c
AC_CHECK_HEADERS(elf.h)
@@ -526,6 +531,7 @@ AC_SUBST(LIBC)
AC_SUBST(arch_target)
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
AC_OUTPUT([
Makefile
@@ -544,6 +550,7 @@ mono/arch/ppc/Makefile
mono/arch/sparc/Makefile
mono/arch/s390/Makefile
mono/arch/arm/Makefile
mono/arch/alpha/Makefile
mono/interpreter/Makefile
mono/tests/Makefile
mono/benchmark/Makefile
+3 -1
View File
@@ -9,6 +9,8 @@
<dllmap dll="libpango-1.0-0.dll" target="libpango-1.0.so" />
<dllmap dll="libatk-1.0-0.dll" target="libatk-1.0.so" />
<dllmap dll="libgdk-win32-2.0-0.dll" target="libgdk-x11-2.0.so" />
<dllmap dll="libgdk_pixbuf-2.0-0.dll" target="libgdk-pixbuf-2.0.so" />
<dllmap dll="libgdk_pixbuf-2.0-0.dll" target="libgdk_pixbuf-2.0.so" />
<dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so" />
<dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so" />
<dllmap dll="oci" target="clntsh" />
</configuration>
+20 -4
View File
@@ -7,10 +7,18 @@
<section name="system.diagnostics" type="System.Diagnostics.DiagnosticsConfigurationHandler, System" />
<sectionGroup name="system.web">
<section name="httpHandlers" type="System.Web.Configuration.HttpHandlersSectionHandler, System.Web" />
<section name="httpModules" type="System.Web.Configuration.HttpModulesConfigurationHandler, System.Web" />
<section name="machineKey" type="System.Web.Configuration.MachineKeyConfigHandler, System.Web" />
<section name="authentication" type="System.Web.Configuration.AuthenticationConfigHandler, System.Web" />
<section name="httpHandlers"
type="System.Web.Configuration.HttpHandlersSectionHandler, System.Web" />
<section name="httpModules"
type="System.Web.Configuration.HttpModulesConfigurationHandler, System.Web" />
<section name="machineKey"
type="System.Web.Configuration.MachineKeyConfigHandler, System.Web" />
<section name="authentication"
type="System.Web.Configuration.AuthenticationConfigHandler, System.Web" />
<section name="authorization"
type="System.Web.Configuration.AuthorizationConfigHandler, System.Web" />
<section name="globalization"
type="System.Web.Configuration.GlobalizationConfigurationHandler, System.Web" />
</sectionGroup>
</configSections>
<system.web>
@@ -24,6 +32,7 @@
</httpHandlers>
<httpModules>
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule, System.Web" />
</httpModules>
<authentication mode="Forms">
<forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
@@ -33,6 +42,13 @@
</forms>
</authentication>
<machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
<!-- Sample globalization settings
<globalization requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
fileEncoding="iso-8859-1"
culture="en-US"
uiculture="en-US" />
-->
</system.web>
<appSettings>
+30
View File
@@ -15,3 +15,33 @@ To publish changes:
cd web
make push
############## Samples
If you want to add a new item in the left menu
you have to edit mono/doc/web/commands and add
the entry there.
For new files you can add something as:
level,entry,path_to_the_file,file.src
ex: 1,COBOL#,cobol.html,cobol.src
If you just want to add a link to the menu:
1,MyEntry,URL
ex: 1,About Linux,http://www.linux.org
To test the results under Linux:
1. Edit mono/doc/web/makefile
Delete all the references to class status
and the deploy/index.rss as well as the
mono.exe commands.
2. make
3. Open your browser and point to the
file:///(YOUR PATH HERE)mono/doc/web/deploy/index.html
+316 -110
View File
@@ -1,96 +1,235 @@
* ADO.NET
<p>Mono's ADO.NET Developers:
<ul>
<li>rodrigo -AT- ximian.comNOSPAM - <b>Rodrigo Moya</b> - coordinator
for the ADO.NET implementation and works on the OLE DB provider</li>
<li>danmorg -AT- sc.rr.comNOSPAM - <b>Daniel Morgan</b> - works on
the MySQL, PostgreSQL, and Oracle providers</li>
<li>tim -AT- timcoleman.comNOSPAM - <b>Tim Coleman</b> - works on
the Microsoft SQL Server, Sybase, and TDS providers</li>
<li>brianlritchie -AT- hotmail.comNOSPAM - <b>Brian Ritchie</b> - works on
the ODBC provider and the ProviderFactory</li>
<li>vladimir -AT- pobox.comNOSPAM - <b>Vladimir Vukicevic</b> - works on
the SQL Lite provider</li>
<li>cleared -AT- rogers.comNOSPAM - <b>Christopher Bockner</b> - works on
the IBM DB2 provider</li>
<li>vi64pa -AT- koti.soon.fiNOSPAM - <b>Ville Palo</b> - works on XML stuff in System.Data
including DataSet, XmlDataDocument, and has done lots of testing</li>
</ul>
<p>Mono's ADO.NET Developers:
<table border=1>
<tr>
<td><b>Developer</b></td>
<td><b>Email</b></td>
<td><b>Contribution</b></td>
</tr>
<tr>
<td>Rodrigo Moya</td>
<td>rodrigo -AT-<br> ximian.comNOSPAM</td>
<td>ADO.NET coordinator,<br> OLE DB provider,<br> and tests</td>
</tr>
<tr>
<td>Daniel Morgan</td>
<td>danmorg -AT-<br> sc.rr.comNOSPAM</td>
<td>MySQL, PostgreSQL, <br>Oracle providers,<br> and tests</td>
</tr>
<tr>
<td>Tim Coleman</td>
<td>tim -AT- <br>timcoleman.comNOSPAM</td>
<td>Microsoft SQL Server, <br>Sybase, <br>TDS providers,<br> Oracle,
<br>and tests.<br>
He has
contributed <br>to other parts <br>of Mono too, <br>such as,
<br>EnterpriseServices,
XML, <br>and WebServices.</td>
</tr>
<tr>
<td>Brian Ritchie</td>
<td>brianlritchie -AT-<br> hotmail.comNOSPAM</td>
<td>ODBC provider <br>and the ProviderFactory <br>in Mono.Data</td>
</tr>
<tr>
<td>Vladimir Vukicevic</td>
<td>vladimir -AT-<br> pobox.comNOSPAM</td>
<td>SQL Lite provider. <br> He has contributed to GTK# <br>and mPhoto too.</td>
</tr>
<tr>
<td>Christopher Bockner</td>
<td>cleared -AT-<br> rogers.comNOSPAM</td>
<td>IBM DB2 Universal <br>Database provider</td>
</tr>
<tr>
<td>Ville Palo</td>
<td>vi64pa -AT-<br> koti.soon.fiNOSPAM</td>
<td>XML stuff <br>in System.Data <br>including DataSet <br>
and XmlDataDocument, <br>and tests</td>
</tr>
<tr>
<td>Gonzalo Paniagua Javier</td>
<td>gonzalo -AT-<br> ximian.comNOSPAM</td>
<td>Integration between <br>System.Web and <br>System.Data</td>
</tr>
<tr>
<td>Gaurav Vaish</td>
<td>gvaish -AT-<br> iitk.ac.inNOSPAM</td>
<td>Web controls</td>
</tr>
<tr>
<td>Phillip Jerkins</td>
<td>Phillip.Jerkins -AT-<br> morgankeegan.comNOSPAM</td>
<td>Named Instance support <br>in System.Data.SqlClient</td>
</tr>
</table>
** Bugs and Feature Requests
<ul>
<li>Bugs with Mono or any data provider in Mono should be reported
in Mono's Bugzilla <a href="http://bugzilla.ximian.com/">here</a>. If you
do not have a Bugzilla user account, it is free
and easy to create
one <a href="http://bugzilla.ximian.com/createaccount.cgi">here</a>.</li>
* Action plan
<li>Any RFE (Request For Enhancement) for features missing or new functionality
should be entered as a bug in Bugzilla too</li>
<p>The current plan to implement ADO.NET is as follows:
</ul>
** ADO.NET Data Providers
<p>List of ADO.NET Data Providers working in Mono:
<ul>
<li><a href="http://www.go-mono.com/ibmdb2.html">IBM DB2 Universal Database</a></li>
<li><a href="http://www.go-mono.com/mysql.html">MySQL</a></li>
<li><a href="http://www.go-mono.com/odbc.html">ODBC</a></li>
<li><a href="http://www.go-mono.com/oracle.html">Oracle</a></li>
<li><a href="http://www.go-mono.com/oledb.html">OLE DB</a></li>
<li><a href="http://www.go-mono.com/postgresql.html">PostgreSQL</a></li>
<li><a href="http://www.go-mono.com/sqlclient.html">Microsoft SQL Server</a></li>
<li><a href="http://www.go-mono.com/sqlite.html">SQL Lite</a></li>
<li><a href="http://www.go-mono.com/sybase.html">Sybase</a></li>
<li><a href="http://www.go-mono.com/tdsclient.html">TDS Generic</a></li>
</ul>
<ul>
<li>Either create ADO.NET providers or modify pre-exiting ADO.NET providers to
work with Mono</li>
<ul>
<li>Create ADO.NET Providers
<p>Providers which we do not have, but we would like to have. Currently,
some of these databases are supported via the ODBC or OLE DB providers.
<ul>
<li><a href="http://msdn.microsoft.com/library/en-us/dnsql2k/html/sqlxml_intromanagedclasses.asp?frame=true">Managed Classes for SqlXml</a> which is
a .NET data provider for retrieving XML data from a Microsoft SQL Server 2000 database. The System.Data.SqlClient provider
in Mono can be used as a starting point at mcs/class/System.Data/System.Data.SqlClient.</li>
<li><a href="http://www.hughes.com.au/">miniSQL</a></li>
<li><a href="http://www.sleepycat.com/">BerkeleyDB (Sleepycat)</a></li>
<li><a href="http://www.sapdb.org/">SapDB</a></li>
<li><a href="http://www-3.ibm.com/software/data/informix/">Informix</a></li>
<li><a href="http://msdn.microsoft.com/vfoxpro/">Foxpro</a></li>
<li>Microsoft Access - could be done by creating C# bindings to <a href="http://mdbtools.sourceforge.net">MDB Tools</a></li>
<li>dbase or xbase type database files</li>
<li>Others are welcome</li>
</ul>
<p>External Projects that have created ADO.NET Providers that work on Mono:
<ul>
<li><a href="http://www.go-mono.com/firebird.html">Firebird Interbase</a></li> is a
Firebird SQL Managed data provider. It can be used with Interbase databases too. It
is written in 100%C# and does not require a client library. Works on .NET and Mono.</a>
<li><a href="http://gborg.postgresql.org/project/npgsql/projdisplay.php">Npgsql</a> is a
PostgreSQL Managed data provider written
in 100% C#, does not require a client library, and works on .NET and Mono</li>
<li><a href="http://sourceforge.net/projects/mysqlnet/">MySQLNet</a> is a
MySQL Managed data provider written in 100% C#, does not
require a client library, and works on .NET and Mono</li>
</ul>
** Tools
<p>Some tools that can be used for ADO.NET and other technologies (ASP.NET, XML, etc).
<ul>
<li><b>SQL# CLI</b> - a SQL query tool with a command-line interface.
It can be used to enter and execute SQL statements or
execute a batch of SQL commands from a file. It can
be used to test connection strings, connect to various ADO.NET
providers, save output to text, html, or xml. It is a work-in-progress.
The SQL# CLI is distributed with the
Mono runtime and class libraries as an executable assembly sqlsharp.exe.
The source to SQL# CLI can be found in the mcs source at
mcs/tools/SqlSharp/SqlSharpCli.cs
</li>
<li><p><b>SQL# GUI - a graphical SQL query tool</b> allows a user
to enter SQL commands in a top panel which is a text editor. It
has a toolbar and menu for various tasks, such as, executing
SQL commands one-at-a-time or in a batch. The results would appear
in a bottom panel in a grid or could be saved to a file (xml, html, csv).
Also, the bottom panel would allow logging of SQL command executed.
Currently, there is a <a href="http://go-mono.com/images/sqlsharp.png">SQL# For GTK#</a> which
provides a GUI interface using the <a href="http://gtk-sharp.sourceforge.net">Gtk#</a> toolkit. SQL# For GTK#
is a work-in-progress and can be found in the mcs source at
mcs/tools/SqlSharp/gui/gtk-sharp</li>
</ul>
<p>Tools we would like to have, but they have not been created yet:
<ul>
<li><b>XML Schema Definition tool</b> <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpconxmlschemadefinitiontoolxsdexe.asp">xsd.exe</a> needs
to be created. Maybe this TODO item should be at the System.XML web page instead.
<ul>
<li><a href="http://www.go-mono.com/ibmdb2.html">IBM DB2 Universal Database</a></li>
<li><a href="http://www.go-mono.com/mysql.html">MySQL</a></li>
<li><a href="http://www.go-mono.com/odbc.html">ODBC</a></li>
<li><a href="http://www.go-mono.com/oracle.html">Oracle</a></li>
<li><a href="http://www.go-mono.com/oledb.html">OLE DB</a></li>
<li><a href="http://www.go-mono.com/postgresql.html">PostgreSQL</a></li>
<li><a href="http://www.go-mono.com/sqlclient.html">Microsoft SQL Server</a></li>
<li><a href="http://www.go-mono.com/sqlite.html">SQL Lite</a></li>
<li><a href="http://www.go-mono.com/sybase.html">Sybase</a></li>
<li><a href="http://www.go-mono.com/tdsclient.html">TDS Generic</a></li>
<li>Providers which we do not have, but we would like to have. Currently,
some of these databases are supported via the ODBC or OLEDB providers.</li>
<ul>
<li><a href="http://msdn.microsoft.com/library/en-us/dnsql2k/html/sqlxml_intromanagedclasses.asp?frame=true">Managed Classes for SqlXml</a> which is
a .NET data provider for retrieving XML data from a Microsoft SQL Server 2000 database. The System.Data.SqlClient provider
in Mono can be used as a starting point at mcs/class/System.Data/System.Data.SqlClient.</li>
<li><a href="http://www.hughes.com.au/">miniSQL</a></li>
<li><a href="http://www.sleepycat.com/">BerkeleyDB (Sleepycat)</a></li>
<li><a href="http://www.sapdb.org/">SapDB</a></li>
<li>Microsoft Access - could be done by creating C# bindings to <a href="http://mdbtools.sourceforge.net">MDB Tools</a></li>
<li>dbase or xbase type database files</li>
<li>Others are welcome</li>
</ul>
</ul></li>
<br>
<li>Modify Pre-existing ADO.NET Providers to work with Mono. This may
require fixing or implementing areas of Mono too.
<ul>
<li><a href="http://www.go-mono.com/firebird.html">Firebird Interbase</a></li>
<li><a href="http://gborg.postgresql.org/project/npgsql/projdisplay.php">Npgsql</a> is a
PostgreSQL Managed data provider written
in 100% C#, does not require a client library, and works on Mono</li>
<li><a href="http://sourceforge.net/projects/mysqlnet/">MySQLNet</a> is a
MySQL Manager data provider written in 100% C#, does not
require a client library, and works on Mono</li>
</ul>
<li>This tool
would work like the xsd.exe tool included with
the .NET Framework. The Xsd.exe tools has the
following uses:
<ul>
<li><b>XDR to XSD</b> - used to generate an XML schema from an XDR (XML Data Reduced schema) file.
XDR was used by Microsoft prior to XSD becoming a W3C recommendation. So, this needs
to be supported for legacy reasons</li>
<li><b>XML to XSD</b> - used to generate an XML schema from an XML file</li>
<li><b>XSD to DataSet</b> - used to generate DataSet classes from an XSD schema file. The
DataSet classes created can then be used with XML data</li>
<li><b>XSD to Classes</b> - used to generate classes from an XSD schema file. The
classes created can be used with System.XML.Serialization.XMLSerializer
to read and write XML code that follows the schema</li>
<li><b>Classes to XSD</b> - used to generate an XML schema
from type(s) in a assembly file. The
XML schema created by the tool defines the XML format used
by System.XML.Serialization.XMLSerializer</li>
</ul>
<li>Xsd.exe is used to manipulate XML schemas that
follow the http://www.w3.org/XML/Schema">XML Schema Definition (XSD)</a> language
recommended by the <a href="http://w3.org/">World Wide Web Consortium (W3C)</a></li>
<li>How this tool could be created:
<ul>
<li>Write xsd.exe in C# and run on Mono</li>
<li>Make sure we have XML Schema support in System.Xml.Schema. Currently,
it is wrapped around libxlst</li>
<li>XML serialization support in System.Data classes</li>
<li>Create the TypedDataSetGenerator class in System.Data</li>
<li>Using CodeDOM or Reflection.Emit to create code</li>
<li>Make sure DataSet, XmlDataDocument, and related classes
are implemented fully</li>
</ul>
</li>
</li>
</ul>
<br>
<li>Create Tools for Configuration, Testing, and Entering SQL Queries
<ul>
<li><b>SQL# CLI - a command-line tool</b> written in C# to
execute SQL commands,
test connection strings, and connect to various ADO.NET
providers in Mono. The SQL# CLI can be found in
mcs/tools/SqlSharp/SqlSharpCli.cs</li>
<li><p><b>SQL# GUI - a GUI tool</b> written in C# to
execute SQL commands.
Currently, there is SQL# For GTK# which
can be found at
mcs/tools/SqlSharp/gui/gtk-sharp
It has a SQL editor with
syntax hi lighting of SQL keywords. This will be
moving to its own cvs modeul sqlsharpgtk.</li>
</ul>
</li>
<li><b>Application XML Configuration File Editor</b> - a tool
to create and edit an application configuration file, such as,
we have a .net application named Accouting.exe, the tool could edit
the application configuration file Accounting.exe.config so a user could
connect to the database used by the program. This tool has not
been created.</li>
<li><b>Configuration Command-Line and GUI Tools for ADO.NET</b>.
These tools have not been started. The tools would be written in
C# and run on Mono. The
configuration tool can be used to do the following:
<ul>
<li>bebased on the Application XML Configuration File Editor</li>
<li>setup DSNs for the ODBC and OLE-DB
providers and configurations for
their underlying libraries (unixODBC and libgda)</li>
@@ -100,22 +239,39 @@
freetds.conf for Microsoft SQL Server and Sybase</li>
</ul>
</li>
</ul>
</ul>
* Current Status
<p>Variouls ADO.NET Providers have been created: PostgreSQL, MySQL, Sybase, SQL Lite,
Microsoft SQL Server, OLE DB, ODBC, and TDS Generic. See their respective web page for
more information.
</ul>
** Extra Classes in Mono ADO.NET
<p>An ADO.NET <a href="http://www.go-mono.com/provider-factory.html">Provider Factory</a>
was created by Brian Ritchie. The
Provider Factory is a way to dynamically create
connections, commands, parameters, and data adapters based on configuration
information.
<p>Constraints need lots of work
** Current Status
<p>Various ADO.NET Providers have been created at various stages of
development including:
Firebird/Interbase, IBM DB2 Universal Database, MySQL, ODBC, OLE DB, Oracle,
PostgreSQL, SQL Lite, Sybase, Microsoft SQL Server, and TDS Generic.
See their respective web page for more information.
<p>TypeDataSetGenerator needs to be stubbed and implemented.
<p><b>Data Relations</b> via DataRelation, DataRelationCollection, and
other classes have not been implemented
<p><b>Constraints</b> need lots of work
<p><b>XML Schema Definition tool</b> xsd.exe that is included
in the .NET Framework has not been created for Mono
<p><b>TypeDataSetGenerator</b> needs to be stubbed and implemented.
<p><b>DataSet, DataAdaptor, DataTable, DataRelation, DataRow, DataColumn,
DataColumnCollection, DataRowCollection, and others</b> need more work. There are
many classes that are just stubs and need to be implemented.
many classes that are just stubs and need to be implemented. Ville Palo has been
doing much testing here.
<p><b>XML support in System.Data</b> needs work. This involves working on
the classes: DataSet, XmlDataDocument, and the method ExecuteXmlReader() that
@@ -123,22 +279,13 @@
Stuart Caborn has started the XML support in a DataSet. Tim Coleman started
XML support in the ExecuteXmlReader() in a SqlCommand. Ville Palo has been
heavily modifying DataSet, XmlDataDocument, and other classes for reading
and writing XML.
<p><b>ADO.NET Provider Factory</b> has been started by Brian Ritchie. The
Provider Factory is way to dynamically create
connections, commands, parameters, and data adapters based on configuration information. The
provider factory also provides utility functions needed by a lot of
providers but are not exposed via the provider. The ProviderFactory
is found at mcs/class/Mono.Data and includes a test named test.cs for it in
mcs/class/Mono.Data/Test. Also, take a look at the sample .config file for the
test.exe application named test.exe.config. The .config file is automatically
read when you use the Mono.Data.ProviderFactory or Mono.Data.DataTools.
and writing XML. XML Serialization support in DataSet needs to be implemented.
<p><b>Integration with ASP.NET</b> has not been started, such as, data binding
to a System.Web.UI.WebControls.DataGrid. This may involve implementing many classes
in System.Web and System.Data. If you want to help,
contact Gonzalo Paniagua Javier. Here is information about using ADO.NET in ASP.NET:
<p><b>Integration with ASP.NET</b> has been created. Data binding of
a DataTable in a DataSet to a System.Web.UI.WebControls.DataGrid works. Data binding
of other types works too.
<p><b>Database Access from ASP.NET</b>:
<ul>
<li>Take a look at xsp in cvs and look at the examples in test: dbpage1.aspx
and dbpage2.aspx:
@@ -180,7 +327,7 @@
has not been started, such as, data binding
to a GtkTreeView. This may involve creating new classes
to go between the glist data model and the ADO.NET data model.
Mike Kestner would be the best person to ask for help on GTK#.
Mike Kestner or Rachel Hestilov would be the best people to ask for help on GTK#.
<p><b>Integration with QT#</b> has not been started. Any information on
how this can be done is appreciated. Adam Treat would be the best
@@ -229,12 +376,71 @@
</pre>
</ul>
* Testing
** Testing
<ul>
<li>Testing connection-oriented classes are done via the provider specific tests
<li>Testing connection-oriented classes are done
via the provider specific tests
found in the mcs source at mcs/class</br>
<table border=1>
<tr>
<td><b>Name</b></td>
<td><b>Assembly /</br> Namespace</b></td>
<td><b>Test</b></td>
</tr>
<tr>
<td>Microsoft</br> SQL</br> Server</br></td>
<td>System.Data /</br> System.Data.SqlClient</td>
<td>SqlTest.cs at</br> System.Data/Test</td>
</tr>
<tr>
<td>PostgreSQL</br> (Mono)</td>
<td>Mono.Data.PostgreSqlClient /</br> Mono.Data.PostgreSqlClient</td>
<td>PostgresTest.cs at</br> System.Data/Test</td>
</tr>
<tr>
<td>MySQL</br> (Mono)</td>
<td>Mono.Data.MySql /</br> Mono.Data.MySql</td>
<td>MySqlTest.cs at</br> Mono.Data.MySql/Test</td>
</tr>
<tr>
<td>Oracle</br> (Mono)</td>
<td>System.Data.OracleClient /</br> System.Data.OracleClient</td>
<td>TestOracleClient.cs at</br> System.Data.OracleClient</td>
</tr>
<tr>
<td>ODBC</br> (Mono)</td>
<td>System.Data.OracleClient /</br> System.Data.OracleClient</td>
<td>TestOracleClient.cs at</br> System.Data.OracleClient</td>
</tr>
</table>
<li><a href="http://www.go-mono.com/testing.html">Testing non-connection classes</a> are
done via mono's modified version of NUnit.</li>
done via mono's modified version of NUnit.
<ul>
<li>To run all the NUnit tests for Mono, you need the mcs source. cd to the root
of the mcs source. To run it:
<ul>
<li>On Linux: make -f makefile test</li>
<li>On Windows: make test</li>
</ul>
</li>
<li>If you just want to run the NUnit tests for System.Data, you would cd into
the mcs source at class/System.Data/Test and run it:
<ul>
<li>On Linux: make -f makefile test</li>
<li>On Windows: make test</li>
</ul>
</li>
</ul>
</li>
</ul>
+5 -1
View File
@@ -19,6 +19,10 @@
A Retargetable C Compiler - Design and Implementation: C. Fraser, David
Hanson
* Threading
.NET Multithreading: Alan L. Dennis (ISBN 1-930110-54-5)
* Reference Manuals
<a
@@ -34,4 +38,4 @@
MIPS Processor supplement</a>
<a href="http://www.sparc.org/standards/V8.pdf">The SPARC Architecture
Manual Version 8</a>
Manual Version 8</a>
+3
View File
@@ -35,6 +35,9 @@
<li><a
href="http://www.go-mono.com/class-status-System.Runtime.Serialization.Formatters.Soap.html">System.Runtime.Serialization.Formatters.Soap</a>.
<li><a
href="http://www.go-mono.com/class-status-System.Security.html">System.Security</a>:
Xml Signature Security classes, also check the <a href="crypto.html">Cryptography status pages</a>
</ul>
+11 -33
View File
@@ -8,53 +8,31 @@
multilingual documentation makes for significant additional text.
With these considerations in mind, Mono will use external XML files
for type documentation, rather than documenting the source inline.
for type documentation, rather than documenting the source
inline. The XML file format used is inspired by the XML format used
to document the ECMA APIs.
Several tools will be created for managing, verifying, generating,
and updating class library documentation, including:
<ul>
<li><a href="#monodoc">MonoDoc - A graphical documentation editor and viewer.</a></li>
<li><a href="#mkmaster">MkMaster - A command line tool to feed stub information to MonoDoc.</a></li>
<li><a href="#aspnet">An ASP.NET documentation editor.</a></li>
<li><a href="#xsltool">An xsl tool to convert monodoc xml to html documentation.</a></li>
<li><a href="#monodoc">monodoc - A graphical documentation viewer.</a></li>
<li>xmllint: a tool used to validate a proper XML document.
</ul>
** XML Documentation Files and Formats
You can download the tools to document Mono from the CVS
repository from module `monodoc'.
*** Monodoc XML
This XML is Mono's documentation format. Documentation and a DTD/Schema
for Monodoc XML is located in cvs and can be found <a href="http://go-mono.org/monodoc.dtd">here</a>.
This XML could be generated by MonoDoc or the ASP.NET client.
More about the XML format <a href="http://go-mono.org/monodoc-xml.html">here</a>.
** Documentation Tools
*** <a name="monodoc">MonoDoc</a>
A graphical documentation editor and viewer. Currently, MonoDoc
consists of a Qt# application and is in heavy development.
*** <a name="mkmaster">MkMaster</a>
This tool creates the Master.xml file that MonoDoc uses as a reference
for documentation generation. This is a reflection engine that is used
to gather metadata from assemblies and create an xml representation.
*** <a name="aspnet">ASP.NET</a>
This tool is planned.
*** <a name="xsltool">An XSL converter</a>
This tool is planned. If someone wants to step forward and adopt this
project, it would be very helpful ;)
A graphical documentation viewer written in Gtk#. In the
future we will have an ASP.NET front-end to present the
documentation on the web as well.
** Status and Roadmap
*** 16, September 2002
A preliminary version of MonoDoc is in Mono's cvs. It is under heavy development.
Once this is complete we will start documenting the API!
** Get Involved
Help us develop Mono's documentation tools! Subscribe to
+44 -29
View File
@@ -20,23 +20,25 @@
**** TODO
<ul>
* Support for adding/modifying algorithms and OID using the
<code>machine.config</code> configuration file (in progress).
* Support for adding/modifying OID using the
<code>machine.config</code> configuration file (algorithms
are done).
* RNGCryptoServiceProvider is currently only working on Linux.
The current implementation reside in Mono's runtime and use
the <code>/dev/[u]random</code> device (which do not exists
under Windows). A Windows alternative is in the work...
under Windows). A Windows alternative is in the work (see
Mono.Security.Win32 assembly section).
* Keypair persistance for RSA and DSA. This persistance must
somehow be linked with X509 certificate stores (in planning).
* <code>PasswordDeriveBytes</code> is currently limited to
generating keys with the maximum length equals to the hash
output (as specified in PKCS #5). However the framework
implementation allows for longer keys to be generated. Also
the algorithms used by CryptDeriveKey (used by Windows
applications) are unknown.
* <code>PasswordDeriveBytes.CryptDeriveKey</code> is included
in the BCL to provide compatibility with existing Windows
applications. The main problem is that the key derivation
algorithm can be different for every CSP (Crypto Service
Provider). However for compatibility we should provide an
implementation compatible with the MS CSP (most likely used).
* Analyse the current coverage of the unit tests on the
cryptographic classes and complete the unit tests.
@@ -59,7 +61,8 @@
**** Status
<ul>
* X.509 certificates are parsed using 100% managed code.
* X.509 certificates are parsed using 100% managed code
(using an internal ASN.1 class).
* Software Publisher Certificates (SPC) used by Authenticode
(tm) to sign assemblies are supported (extraction from PE
@@ -77,7 +80,7 @@
* Authenticode(tm) support is incomplete. We can extract the
certificates from PE files but cannot validate the signature
nor the certificate chain (and we're still missing some trust
anchors).
anchors). See Tools section for more information.
* Integration with CryptoAPI (on Windows) isn't possible as
long as the <code>X509Certificate(IntPtr)</code> constructor
@@ -89,15 +92,16 @@
* <b>There's no validation of the certificates</b> done in this
class (this isn't a restriction of Mono!). This means that
certificate signatures and validity dates are <b>never</b>
checked!
checked (except when used for Authenticode, i.e.
<code>CreateFromSignedFile</code>).
* The newer X509Certificate class included in Microsoft's Web
Service Enhancement (WSE) is a little better (as it includes
CryptoAPI's validation) when <code>IsCurrent</code> is called.
* Microsoft implementation of <code>X509Certificate</code> is
done by using CryptoAPI. From the exceptions thrown
Authenticode(tm) support is done via COM.
done by using CryptoAPI (unmanaged). From the exceptions
thrown Authenticode(tm) support is done via COM.
</ul>
<hr>
@@ -111,7 +115,8 @@
**** Status
<ul>
* All classes are present but some are only stubbed.
* All classes are present but some (Transforms) are only
stubbed.
* Most classes have their unit tests.
@@ -124,7 +129,9 @@
* All the transforms needs to be done. But this requires far
more XML knowledge than crypto. Note: Most tests runs because
the feeded XML is pre-c14n (by hand in the code) before
signing (not because the transforms works).
signing (not because the transforms works). In the short
term <code>libxml2</code> could be used to provide C14N, but
in the long term a fully managed class would be much better.
* Makefile for building under non-Windows operating systems.
</ul>
@@ -147,17 +154,22 @@
<ul>
* A RNGCryptoServiceProvider built on top of CryptoAPI.
* Not (yet) commited in CVS - i'm still playing with the base
classes so I can easily add other CryptoAPI-based algorithms.
* Wrapper classes for unmanaged versions of hash algorithms:
MD2, MD4, MD5 and SHA1 are supported. <b>note</b>: some
algorithms shouldn't be used in new design (MD4 is broken and
MD2 isn't considered safe). They are included to preserve
interoperability with older applications (e.g. some old, but
still valid, X.509 certificates use MD2).
</ul>
**** TODO
<ul>
* Unmanaged versions of hash algorithms (SHA1 and MD5).
* Unmanaged versions of symmetric encryption algorithms
(like DES, TripleDES, RC2 and others present in CryptoAPI).
* Unmanaged versions of asymmetric algorithms (like DSA and
RSA) which persist their keypair into the specified CSP.
* Wrapper classes for unmanaged versions of symmetric
encryption algorithms (like DES, TripleDES, RC2 and others
present in default CSP).
* Wrapper classes for unmanaged versions of asymmetric
algorithms (like DSA and RSA) which persist their keypair
into the specified CSP.
</ul>
<hr>
@@ -219,6 +231,8 @@
There are many tools in the .NET framework that indirectly interacts
with some cryptographic classes. Mono will eventually need these tools.
Unless noted the tools should work on any CLR (tested with both Mono
and Microsoft).
**** Status
@@ -229,8 +243,8 @@
re-used in source code (C# or VB.NET syntax).
* <code>cert2spc</code> is a tool to transform multiple X.509
certificates (a chain) into a Software Publisher Certificate
(SPC) - which is a long name for a simple PKCS#7 file.
certificates and CRLs into a Software Publisher Certificate
(SPC) file - which is a long name for a simple PKCS#7 file.
</ul>
**** TODO
@@ -238,10 +252,11 @@
<ul>
* <code>monosn</code> is a clone of the <code>sn</code> to manage
strongnames. This tools is part of the runtime (not the class
library) and as such is written in C.
library) and as such is written in C and won't run without Mono.
* <code>signcode</code> and <code>chktrust</code> for signing
and validating Authenticode(tm) signatures on assemblies.
* <code>signcode</code> and <code>chktrust</code> (in progress)
for signing and validating Authenticode(tm) signatures on
assemblies (or any PE file).
* <code>makecert</code> to create X.509 test certificates that
can be used (once transformed in SPC) to sign assemblies.
@@ -272,4 +287,4 @@
informations about the status of the cryptographic classes.
<hr>
Last reviewed: January 19, 2003 (post mono 0.18)
Last reviewed: February 5, 2003 (post mono 0.19)
+192 -3
View File
@@ -14,13 +14,16 @@
<ul>
* The development tools (compilers, assembler tools,
language reference, design time features).
language reference, design time features): these
live in the `monodoc' CVS module.
* Frequently Asked Question compilations.
* HOWTO documents.
* The Class Libraries
* The Class Libraries (Both the original .NET class
libraries as well as the class libraries produced by
the project).
* Tutorials on Mono and the specifics of running it.
@@ -29,11 +32,197 @@
</ul>
** Class Library documentation
* Class Library documentation
We are moving to a new setup for documenting the class libraries,
and you can read about it <a href="classlib-doc.html">here</a>.
There are two classes of documentation: free documentation for
existing .NET classes and documentation for the classes that
we have developed on top of .NET.
There is a large body of documentation that came from the ECMA
standarization effort that has been checked into CVS. It does
not contain everything Mono and .NET have, so they need to be
updated and augmented.
** Gtk# documentation
We also have a large body of class libraries that are specific
to Mono, for example the documentation for Gtk#.
We have checked in stub documentation for Gtk# into the CVS
repository (on gtk-sharp/doc) and we need volunteers to help
populate the documentation for it. Since Gtk# is a wrapper
for Gtk, plenty of documentation exists in the <a
href="http://developer.gnome.org/doc/API">Gnome developer
site</a>.
To get started:
You need to download Gtk# from the CVS repository. The module
name is `gtk-sharp'. You can obtain a copy from both the CVS
repository or the anonymous CVS repository.
To pull your copy type:
<pre>
cvs co gtk-sharp
</pre>
Documentation lives in gtk-sharp/doc/en. The "en" indicates the
English language, the first one we are targeting. We can later
do translations, but for now we are focusing on a single
language.
In that directory you will find the documentation organized by
namespaces. One directory per namespace. In the directories
you will find one XML file per class that needs to be
documented. The mission is to fill in the data with useful
information. Feel free to grab liberally information from the
Gtk documentation from:
<a href="http://developer.gnome.org/doc/API/">http://developer.gnome.org/doc/API/</a>
Of course, the API does not apply directly. It only applies at
a foundational level, so you can not really just copy and
paste. Summaries, and remarks sections can probably be lifted
with little or no effort.
Gtk# uses properties to represent get/set operations in the C
API, so you can also use some bits from there.
Most of the documentation contains already place holders for
text, we use the internationally approved phrase for this
purpose, `To be added'. So the quest is to remove all of the
"To be added" strings with information with resembles as closely
as possible the toolkit reality.
*** The pieces to be filled.
Summaries are one or two line descriptions of the element
(class, struct, interface, method, field, event, delegate), and
its used to render summary pages. So it has to be short.
The "remarks" section is used to describe in detail the element.
**** Tags.
As you document Gtk# you will have a number of tags that you can
use inside the summary and remarks sections, these are:
<pre>
&lt;para&gt; &lt;/para&gt;
</pre>
Used to separate paragraphs.
<pre>
&lt;paramref name="param_name"/&gt;
</pre>
Used to reference a formal parameter to a function.
<pre>
&lt;see cref="T:SomeTypeName"/&gt;
</pre>
Use this to reference a type, this will include an hyper
link to the page for type SomeTypeName.
For example, to reference "System.Enum", do:
<pre>
&lt;see cref="T:System.Enum"/&gt;
</pre>
<pre>
&lt;see cref="P:SomeTypeName.Property"/&gt;
</pre>
Use this to reference a property, this will include an hyper
link to the page for the property `Property' of type `SomeTypeName'.
For example, to reference the BaseType property in System.Type, do:
<pre>
&lt;see cref="P:System.Type.BaseType"/&gt;
</pre>
<pre>
&lt;see cref="M:SomeTypeName.Method(type,type)"/&gt;
</pre>
Use this to reference a method, this will include an hyper
link to the page for the method `Method' of type `SomeTypeName'.
For example, to reference the ToString method in System.Object, do:
<pre>
&lt;see cref="M:System.Object.ToString()"/&gt;
</pre>
<pre>
&lt;see langword="keyword"/&gt;
</pre>
Use this to link to a keyword in the C# language, for
example to link to `true', do:
<pre>
&lt;see langword="true"/&gt;
</pre>
<pre>
&lt;example&gt; ... &lt;/example&gt;
</pre>
Use example to insert an example. The example can
contain explanatory text and code.
<pre>
&lt;code lang="C#"&gt;.. &lt;/code&gt;
</pre>
Use this to provide a sample C# program, typically used
within the &lt;example&gt; tags.
When providing examples, try to provide a full example,
we would like to be able to have a button to compile and
run samples embedded into the documentation, or pop up
an editor to let the user play with the sample.
You can link to an example like this:
<pre>
&lt;code lang="C#" source="file.cs"&gt; &lt;/code&gt;
</pre>
<pre>
&lt;item&gt;
</pre>
<pre>
&lt;list type="bullet"&gt; &lt;/list&gt;
</pre>
Use this to create lists. Lists contains &lt;item&gt;
elements
<pre>
&lt;list type="table"&gt; &lt;/lits&gt;
&lt;listheader&gt;
&lt;term&gt;YOUR FIRST COLUMN&lt;/term&gt;
&lt;description&gt;YOUR DESCRIPTION&lt;/description&gt;
&lt;/listheader&gt;
</pre>
For two-column tables. Inside use:
<pre>
&lt;item&gt;
&lt;term&gt;First&lt;/term&gt;
&lt;description&gt;First descritpion&lt;/description&gt;
&lt;/item&gt;
&lt;item&gt;
&lt;term&gt;Second&lt;/term&gt;
&lt;description&gt;Second descirption&lt;/description&gt;
&lt;/item&gt;
</pre>
** Words of warning.
A few words of warning and advice for class documentors:
A well-documented API can ease hours of frustration; as Mono
+183 -92
View File
@@ -13,6 +13,188 @@
section</a>, the <a
href="http://www.go-mono.org/faq.html">FAQ</a>.
<b>Important</b>: The contributed binaries for Windows
binaries of Mono 0.20 contained a virus. Please read <a
href="virus.html">this</a> if you installed the binary.
<table>
<tbody>
<tr bgcolor="#DDDDDD">
<td>
<b>Release 0.20</b><br>
<a href="archive/mono-0.20">Release notes</a><br>
Jan 20th, 2003
</td>
<td>
<table cellspacing="1" cellpadding="3">
<tr bgcolor="#BBBBBB">
<td>
<b>Source Code</b>
</td>
<td>
<ul>
<li><a href="archive/mcs-0.20.tar.gz">Mono Class Libraries and C# Compiler.</a>
<li><a href="archive/mono-0.20.tar.gz">Mono Runtime</a>
<li><a href="archive/gc6.1.tar.gz">Boehm GC 6.1</a>
<li><a href="archive/xsp-0.3.tar.gz">XSP web server (0.3)</a>
<li><a href="archive/mono-debugger-0.2.0.tar.gz">Mono Debugger 0.2.0</a> <b><font color="#dd0000">New!</font></b>
</ul>
</td>
</tr>
<tr bgcolor="#BBBBBB">
<td>
<b>Source RPMs</b><br>
(No RPMS for XSP).
</td>
<td>
<ul>
<li><a href="archive/libgc-6.1-1.src.rpm">libgc-6.1-1.src.rpm</a>
<li><a href="archive/mono-0.20-1.src.rpm">mono-0.20-1.src.rpm</a>
</ul>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td bgcolor="#999999">
<b>Red Hat 7.3/x86</b>
<ul>
<li><a href="archive/redhat-73-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-73-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-73-i386/mono-0.20-1.i386.rpm">mono-0.20-1.i386.rpm</a>
<li><a href="archive/redhat-73-i386/mono-devel-0.20-1.i386.rpm">mono-devel-0.20-1.i386.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<b>Red Hat 7.2/x86</b>
<ul>
<li><a href="archive/redhat-72-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-72-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-72-i386/mono-0.20-1.i386.rpm">mono-0.20-1.i386.rpm</a>
<li><a href="archive/redhat-72-i386/mono-devel-0.20-1.i386.rpm">mono-devel-0.20-1.i386.rpm</a>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<b>Red Hat 7.1/x86</b>
<ul>
<li><a href="archive/redhat-71-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-71-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-71-i386/mono-0.20-1.i386.rpm">mono-0.20-1.i386.rpm</a>
<li><a href="archive/redhat-71-i386/mono-devel-0.20-1.i386.rpm">mono-devel-0.20-1.i386.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<b>Mandrake 8.2/x86</b>
<ul>
<li><a href="archive/mandrake-82-i386/libgc-6.1-1.i586.rpm">libgc-6.1-1.i586.rpm</a>
<li><a href="archive/mandrake-82-i386/libgc-devel-6.1-1.i586.rpm">libgc-devel-6.1-1.i586.rpm</a>
<li><a href="archive/mandrake-82-i386/mono-0.20-1.i586.rpm">mono-0.20-1.i586.rpm</a>
<li><a href="archive/mandrake-82-i386/mono-devel-0.20-1.i586.rpm">mono-devel-0.20-1.i586.rpm</a>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<b>SuSE 8.0/x86</b>
<ul>
<li><a href="archive/suse-80-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
<li><a href="archive/suse-80-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
<li><a href="archive/suse-80-i386/mono-0.20-1.i386.rpm">mono-0.20-1.i386.rpm</a>
<li><a href="archive/suse-80-i386/mono-devel-0.20-1.i386.rpm">mono-devel-0.20-1.i386.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<b>Red Hat 8.0/x86</b>
<ul>
<li><a href="archive/redhat-80-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-80-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-80-i386/mono-0.20-1.i386.rpm">mono-0.20-1.i386.rpm</a>
<li><a href="archive/redhat-80-i386/mono-devel-0.20-1.i386.rpm">mono-devel-0.20-1.i386.rpm</a>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<b>Windows Setup Wizard (NT/2000/XP)</b>
<ul>
<li><a href="archive/mono-0.20-stable-win32-2.exe">Mono-Setup</a>
</ul>
</td>
<td bgcolor="#999999">
<b>Debian packages</b>
<ul>
<li><a href="http://www.atoker.com/mono/">Alp's web site</a>
</ul>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<tr bgcolor="#CCCCC">
<td>
<b>Regression Tests</b><br>
</td>
<td>
You can get binaries for the Mono Regression Test
Suite <a href="archive/mono-tests.tar.gz">here</a>
</td>
</tr>
</tr>
</tbody>
</table>
<br>
* Older Releases:
We provide binaries for older releases until we have packages for the new release.
<table>
<tbody>
<tr bgcolor="#DDDDDD">
<td>
<b>Release 0.19</b><br>
<a href="archive/mono-0.19">Release notes</a><br>
Jan 20th, 2003
</td>
<td>
<table cellspacing="1" cellpadding="3">
<tr bgcolor="#BBBBBB">
<td>
<b>Source Code</b>
</td>
<td>
<ul>
<li><a href="archive/mcs-0.19.tar.gz">Mono Class Libraries and C# Compiler.</a>
<li><a href="archive/mono-0.19.tar.gz">Mono Runtime</a>
</ul>
</td>
</tr>
<tr bgcolor="#BBBBBB">
<td>
<b>Source RPMs</b><br>
(No RPMS for XSP).
</td>
<td>
<ul>
<li><a href="archive/libgc-6.1-1.src.rpm">libgc-6.1-1.src.rpm</a>
<li><a href="archive/mono-0.19-1.src.rpm">mono-0.19-1.src.rpm</a>
</ul>
</td>
</tr>
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr bgcolor="#DDDDDD">
@@ -51,103 +233,12 @@
<tr>
<td></td>
</tr>
<tr>
<td bgcolor="#999999">
<b>Red Hat 7.3/x86</b>
<ul>
<li><a href="archive/redhat-73-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-73-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-73-i386/mono-0.18-1.i386.rpm">mono-0.18-1.i386.rpm</a>
<li><a href="archive/redhat-73-i386/mono-devel-0.18-1.i386.rpm">mono-devel-0.18-1.i386.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<b>Red Hat 7.2/x86</b>
<ul>
<li><a href="archive/redhat-72-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-72-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-72-i386/mono-0.18-1.i386.rpm">mono-0.18-1.i386.rpm</a>
<li><a href="archive/redhat-72-i386/mono-devel-0.18-1.i386.rpm">mono-devel-0.18-1.i386.rpm</a>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<b>Red Hat 7.1/x86</b>
<ul>
<li><a href="archive/redhat-71-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-71-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-71-i386/mono-0.18-1.i386.rpm">mono-0.18-1.i386.rpm</a>
<li><a href="archive/redhat-71-i386/mono-devel-0.18-1.i386.rpm">mono-devel-0.18-1.i386.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<b>Mandrake 8.2/x86</b>
<ul>
<li><a href="archive/mandrake-82-i386/libgc-6.1-1.i586.rpm">libgc-6.1-1.i586.rpm</a>
<li><a href="archive/mandrake-82-i386/libgc-devel-6.1-1.i586.rpm">libgc-devel-6.1-1.i586.rpm</a>
<li><a href="archive/mandrake-82-i386/mono-0.18-1.i586.rpm">mono-0.18-1.i586.rpm</a>
<li><a href="archive/mandrake-82-i386/mono-devel-0.18-1.i586.rpm">mono-devel-0.18-1.i586.rpm</a>
</ul>
</td>
</tr>
<tr>
<!-- <td bgcolor="#999999"> -->
<!-- <b>SuSE 8.0/x86</b> -->
<!-- <ul> -->
<!-- <li><a href="archive/suse-80-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a> -->
<!-- <li><a href="archive/suse-80-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a> -->
<!-- <li><a href="archive/suse-80-i386/mono-0.17-1.i386.rpm">mono-0.17-1.i386.rpm</a> -->
<!-- <li><a href="archive/suse-80-i386/mono-devel-0.17-1.i386.rpm">mono-devel-0.17-1.i386.rpm</a> -->
<!-- </ul> -->
<!-- </td> -->
<td bgcolor="#999999">
<b>Red Hat 8.0/x86</b>
<ul>
<li><a href="archive/redhat-80-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-80-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-80-i386/mono-0.18-1.i386.rpm">mono-0.18-1.i386.rpm</a>
<li><a href="archive/redhat-80-i386/mono-devel-0.18-1.i386.rpm">mono-devel-0.18-1.i386.rpm</a>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<!-- <b>Windows Setup Wizard (NT/2000/XP)</b>␍ -->
<!-- <ul>␍ -->
<!-- <li><a href="archive/mono-0.17-stable.exe">Mono-Setup</a>␍ -->
<!-- </ul>␍ -->
<!-- </td>␍ -->
<td bgcolor="#999999">
<b>Debian packages</b>
<ul>
<li><a href="http://www.atoker.com/mono/">Alp's web site</a>
</ul>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<tr bgcolor="#CCCCC">
<td>
<b>Regression Tests</b><br>
</td>
<td>
You can get binaries for the Mono Regression Test
Suite <a href="archive/mono-tests.tar.gz">here</a>
</td>
</tr>
</tr>
</tbody>
</table>
<br>
* Older Releases:
We provide binaries for older releases until we have packages for the new release.
<table>
<tbody>
<tr bgcolor="#DDDDDD">
@@ -245,7 +336,7 @@
<ul>
<li><a href="archive/s390/glib2-2.0.6-13.s390.rpm">glib2-2.0.6-13.s390.rpm</a>
<li><a href="archive/s390/glib2-devel-2.0.6-13.s390.rpm">glib2-devel-2.0.6-13.s390.rpm</a>
p <li><a href="archive/s390/libgc-6.1alpha5-1.s390.rpm">libgc-6.1alpha5-1.s390.rpm</a>
<li><a href="archive/s390/libgc-6.1alpha5-1.s390.rpm">libgc-6.1alpha5-1.s390.rpm</a>
<li><a href="archive/s390/libgc-devel-6.1alpha5-1.s390.rpm">libgc-devel-6.1alpha5-1.s390.rpm</a>
<li><a href="archive/s390/mono-0.16-1.s390.rpm">mono-0.16-1.s390.rpm</a>
<li><a href="archive/s390/mono-devel-0.16-1.s390.rpm">mono-devel-0.16-1.s390.rpm</a>
+27 -6
View File
@@ -1,18 +1,26 @@
* Firebird and Interbase Data Provider
<ul>
<li>ADO.NET Data Provider for Firebird and Interbase databases</li>
<li>Does not exist in Mono, but is a separate project</li>
<li><a href="http://firebird.sourceforge.net/index.php">Firebird Relational Database</a> is
an independent project which uses source code based on the Interbase source code released
<li>The <a href="http://firebird.sourceforge.net/index.php">Firebird Relational Database</a> is
is an independent project which uses source code based on the Interbase source code released
by Borland under the Interbase Public License</li>
<li>Both the Firebird Relational Database and the Firebird .NET Data Provider can be
downloaded from <a href="http://sourceforge.net/projects/firebird/">here</a></li>
<li>The Firebird .NET Data provider has been made
available by Carlos Guzmán Álvarez (aka "Carlos G.A."), who has also made a
number of contributions to the OdbcJdbc code</li>
available by Carlos Guzmán Álvarez (aka "Carlos G.A."), who has also made a
number of contributions to the OdbcJdbc code</li>
<li>Bugs with Mono or the data provider should be reported
in Mono's Bugzilla <a href="http://bugzilla.ximian.com/">here</a>. If you
do not have Bugzilla user account, it is free
and easy to
create one <a href="http://bugzilla.ximian.com/createaccount.cgi">here</a>.</li>
</ul>
@@ -102,14 +110,26 @@
** Testing
<ul>
<li>Need a working mono and mcs</li>
<li>Need access to a Firebird Relational Database or you can download
it from <a href="http://firebird.sourceforge.net">here</a></li>
<li>Get the Firebird .NET data provider from here as
<a href="http://lists.sourceforge.net/lists/listinfo/firebird-net-provider">firebird-net-provider</a>. Make
sure the Firebird .NET data provider binary assembly FirebirdSql.Data.Firebird.dll is
installed in the same place as the mono class libraries.</li>
<li>C# Example for Mono's System.Data.OleDb:
<li>Has a ConnectionString format:
<pre>
"Database=databasefile.gdb;User=user;Password=pass;Dialect=3;Server=hostname"
</pre>
</li>
<li>C# Example:
<pre>
using System;
using System.Data;
@@ -126,9 +146,10 @@
"Dialect=3;" +
"Server=localhost";
IDbConnection dbcon = new FbConnection(connectionString);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();
string sql = "SELECT * FROM employee";
dbcmd.ConnectionString = sql;
dbcmd.CommandText = sql;
IDataReader reader = dbcmd.ExecuteReader();
while(reader.Read()) {
object dataValue = myReader.GetValue(0);
+4 -6
View File
@@ -1,9 +1,7 @@
* The GCC front-end
The GCC front-end will accept input in a binary file with
codes in the Common Intermediate Language (CIL), and generate
native code.
This will allow pre-compilation and full optimization to take
place before a program is executed.
Jeremy Singer has developed a .NET backend for GCC, his
research work is available <a
href="http://www.cl.cam.ac.uk/~jds31/research/gccnet/">here</a>.
+10 -3
View File
@@ -19,7 +19,11 @@
** GTK# On Linux
<p>Where to get distributions of GTK# for Linux: TODO
<p>Where to get distributions of GTK# for Linux:
<ul>
<li><a href="http://gtk-sharp.sourceforge.net">RPMs</a></li>
<li><a href="http://www.debianplanet.org/mono/">Debs</a></li>
</ul>
<p>Buidling on Linux:
@@ -137,11 +141,14 @@ you will need to create them. Or get them from somewhere like the dev
packages at
<a href="http://www.gimp.org/~tml/gimp/win32/downloads.html">here</a>
** GTK# On FreeBSD
TODO. Any volunteers?
** GTK# On Solaris
TODO
TODO. Any volunteers?
** GTK# On AIX
TODO
TODO. Any volunteers?
+30 -5
View File
@@ -1,17 +1,24 @@
* IBM DB2 Data Provider
<ul>
<li>ADO.NET Data Provider for <a href="http://www-3.ibm.com/software/data/db2/">IBM DB2 Universal Database</a></li>
<li>Exists in namespace DB2ClientCS and assembly Mono.Data.DB2Client</li>
<li>The source code exists at mcs/class/Mono.Data.DB2Client</li>
<li>Requires the Call Level Interface to IBM DB2 shared library. This
is db2cli.dll on Windows. The IBM DB2 CLI API is very similar to the ODBC API. If
you take a look at Mono's System.Data.Odbc ODBC provider, you will see the
you take a look at Mono's <a href="http://www.go-mono.com/odbc.html">System.Data.Odbc</a> ODBC provider, you will see the
DllImport's have similiar function names.</li>
<li><a href="http://www-3.ibm.com/software/data/db2/">IBM DB2 Universal Database</a> can be downloaded from IBM.</li>
<li>IBM DB2 Provider created by Christopher Bockner.</li>
<li>Bugs with Mono or the data provider should be reported
in Mono's Bugzilla <a href="http://bugzilla.ximian.com/">here</a>. If you
do not have Bugzilla user account, it is free
and easy to
create one <a href="http://bugzilla.ximian.com/createaccount.cgi">here</a>.</li>
</ul>
** Current Status
@@ -22,6 +29,8 @@
<li>Able to connect to IBM DB2</li>
<li>Able to execute DML, such as, CREATE TABLE via ExecuteNonQuery()</li>
<li>Christopher says it can retrieve data via the DB2ClientDataReader</li>
</ul>
@@ -49,6 +58,21 @@ In order to test.
<li>If you do not have the source to mcs, get the source from
<a href="http://www.go-mono.com/download">here</a></li>
<li>Has a ConnectionString format like ODBC</li>
<li>Here is a ConnectionString format if you have a DSN setup:
<pre>
"DSN=dataSetName;UID=myuserid;PWD=mypassword"
</pre>
</li>
<li>Here is a ConnectionString format if you do not have a DSN (have not
gotten this to work though, so, I am open to suggestions):
<pre>
"DRIVER={DB2 Driver};SERVER=localhost;DATABASE=test;UID=myuserid;PASSWORD=mypassword"
</pre>
</li>
<li>In mcs/class/Mono.Data.DB2Client/Test/DBConnTest, you will find
a DBConnTest.cs.</li>
@@ -87,13 +111,14 @@ mono DBConnTest.exe database userid password
string connectionString =
"DSN=sample;UID=db2admin;PWD=mypass";
IDbConnection dbcon = new DB2ClientConnection(connectionString);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();
string sql =
"CREATE TABLE mono_db2_test1 ( " +
" testid varchar(2), " +
" testdesc varchar(16) " +
")";
dbcmd.ConnectionString = sql;
dbcmd.CommandText = sql;
dbcmd.ExecuteNonQuery();
dbcmd.Dispose();
dbcmd = null;
-5
View File
@@ -56,11 +56,6 @@ TODO=multimedia
<a name="projects">
** Projects
<ul>
TODO=xmlStorage,
* Implement an xmlStorageSystem for the CLI:
<a href="http://www.soapware.org/xmlStorageSystem">
http://www.soapware.org/xmlStorageSystem</a>
TODO=guavac,Java compiler for .NET
* You could take one of the existing Java compilers
+155 -2
View File
@@ -25,7 +25,7 @@
You might also want to <a href="download.html">Download the
source</a> for our work so far. Grab a <a
href="snapshots">snapshot</a> of our current work, or <a
href="http://cvs.hispalinux.es/cgi-bin/cvsweb/?hidenonreadable=1&f=u&logsort=date&sortby=file&hideattic=1&cvsroot=Mono">browse
href="http://cvs.hispalinux.es/cgi-bin/cvsweb/?hidenonreadable=1&f=u&logsort=date&sortby=file&hideattic=1&cvsroot=mono">browse
the sources</a>
You might want to <a
@@ -34,6 +34,12 @@
You can contact the team at: <a
href="mailto:[email protected]">[email protected]</a>
In order to follow the process of the project and to learn more
about the team members we have created the <a
href="http://monoevo.sf.net/mwn/index.html">Mono Weekly News letter</a>.
Which archives can be found <a
href="http://monoevo.sf.net/mwn/archives.html">here</a>.
</td>
<td>
<table border=1>
@@ -86,12 +92,159 @@
<a href="index.rss"><img src="images/xml.gif"></a>
</td>
</tr>
<tr>
<td>
<a href="screenshots.html">Screenshots</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
@item Jan, 17th: DB2 provider, MacOS X
@item Feb 25th, 2003: Mono 0.20 for Windows released; New Apache module released.
Packages of Mono for Windows have been <a
href="archive/mono-0.20-stable-win32-2.exe">released</a>.
Thanks to Daniel, Johannes and Paolo for setting this up.
Daniel has released a new version of his Mono Apache module that
handles ASP.NET. The code is available at <a
href="http://apacheworld.org/modmono/">here</a>
Nick has posted an update on the progress on our <a
href="http://lists.ximian.com/archives/public/mono-list/2003-February/012467.html">regression
tests</a>. We are looking for more tests, and more volunteers to write them.
Also, remember to contribute to the Gtk# documentation effort,
momentum is picking up! See the entry for Feb 18th for more details.
@item Feb, 23rd, 2003: Mono 0.20 released; Gtk# 0.8 released.
Mono 0.20 has been released. Check out the <a
href="archive/mono-0.20">release notes</a> for an overview of
the changes. You can get it <a href="download.html">here</a>.
There are no major features in this release, mostly bug fixes
and performance improvements.
Gtk# 0.8 has been <a
href="http://lists.ximian.com/archives/public/gtk-sharp-list/2003-February/001114.html">released</a>
<b>Important</b>: The contributed binaries for Windows
binaries of Mono 0.20 contain a virus. Please read <a
href="virus.html">this</a> if you installed the binary.
@item Feb 18th, 2003: Volunteers to document Gtk#
With the availability of a documentation browser, we are
looking for volunteers to help us complete the documentation
of the Gtk# binding for Mono.
Experience with Gtk is useful, but not mandatory. We have
checked in stubs, and we have instructions, and resources to
how to complete this process <a
href="documentation.html">here</a>. Mail the <a
href="mailto:[email protected]">[email protected]</a>
for further discussion.
@item Feb 14th, 2003: OpenGL# bindings for Mono; Mono Basic updates.
Mark Crichton has completed his OpenGL/GLUT bindings for
Gnome. A screenshot can be seen <a
href="sshots/oglcs.png">here</a>. The bindings are available
on the Mono CVS repository on the module `glgen'. This is a
straight binding to the C API.
Marco has <a
href="http://lists.ximian.com/archives/public/mono-list/2003-February/011752.html">posted
an update</a> on the current state of the free VB.NET compiler
for Mono.
We are looking for contributors and maintainers to the
JavaScript compiler as well (Janet)
@item Feb 12th, 2003: New assemblies, Gtk# stub documentation, Authenticode, Polish site
Mono now distributes a few new assemblies: Mono.Security.Win32
as a layer to use the crypto functionality on Win32. The
Mono.Posix assembly which contains functionality for taking
advantage of Unix facilities.
A <a href="http://www.go-mono.pl/">Mono site in Poland</a>.
Stubs for the Gtk# documentation have been checked into CVS.
If you want to contribute please read <a
href="http://lists.ximian.com/archives/public/mono-list/2003-February/012108.html">this
message</a>
Mono development is moving quickly: Tim and Daniel have been
improving the Oracle database provider and Sebastien Pouliot
has got code signing to work using Authenticode with pure open
source and managed code. Plenty of new VB.NET work from Marco
(compiler) and Daniel (runtime). Also Jackson has resumed
work on the IL assembler and the fully managed library to
generate CIL images (Sergey wrote the first Mono.PEToolkit).
@item Feb 11th, 2003: Mono Weekly News, New assemblies.
<a href="http://monoevo.sourceforge.net/mwn/index.html">Mono
Weekly News</a>: Includes a new interview, software
announcements and the PHP/Mono integration.
@item Feb 5th, 2003: MonoDoc 0.1
A <a
href="http://www.go-mono.com/archive/monodoc-0.1.tar.gz">preliminary
release</a> of the Mono Documentation Browser is now availble.
Release <a
href="http://lists.ximian.com/archives/public/mono-list/2003-February/011935.html">notes</a>
@item Jan, 22th, 2003: Mono wins award, OpenLink releases Virtuoso.
Mono won the `Best Open Source Project' award at the Linux
World Expo. A description is <a
href="http://linuxtoday.com/news_story.php3?ltsn=2003-01-23-024-26-OP-EV">here</a>
Open Link has a <a
href="http://biz.yahoo.com/prnews/030123/neth013_1.html">press
release</a> about Virtuoso 3.0: the first commercial product
shipping that uses Mono.
@item Jan, 20th, 2003: Mono 0.19 released; Screenshots page; Gtk# 0.7
Mono 0.19 has been released. Check out the <a
href="archive/mono-0.19">release notes</a> for an overview of
the changes. You can get it <a href="download.html">here</a>.
There are no major features in this release, mostly bug fixes
and performance improvements.
We have now a new section <a href="screenshots.html">with
screenshots</a> of various Mono applications. You can see
there the new released Debugger, as well as the work in
progress on the documentation browser.
<a href="http://gtk-sharp.sf.net">Gtk# 0.7</a> has been <a
href="http://lists.ximian.com/archives/public/mono-list/2003-January/005222.html">released</a>
@item Jan, 19th, 2003: Mono Debugger released.
After six month of extensive development, Martin Baulig has
released the first version of the Mono debugger. The Mono
debugger is written in C# and can debug both managed and
unmanaged applications, support for multiple-threaded
applications and should be relatively easy to port to new
platforms.
Details of the release are available in <a
href="http://lists.ximian.com/archives/public/mono-list/2003-January/005192.html">post</a>.
The debugger contains both Gtk# and command line interfaces.
The debugging file format used in Dwarf (its already supported
by our class libraries and the Mono C# compiler; To debug C
applications, you need a recent GCC, or to pass the -gdwarf-2
flag to gcc).
@item Jan, 17th, 2003: DB2 provider, MacOS X
Christopher Bockner has contributed a DB2 System.Data client.
+23 -5
View File
@@ -1,7 +1,7 @@
* Debugging information
Compile your programs using the `-g' flag in MCS, that will generate a file
with the extension .dbg containing the dwarf symbols for your executable.
Compile your programs using the `-g' flag in MCS, that will all a special
resource containing debugging information to your executable.
To get stack traces with line number information, you need to run your
program like this:
@@ -15,9 +15,27 @@
* Mono Debugger
A new debugger has been created in C# and using Gtk# for its
user interface, this will simplify the debugging of CLI applications.
The Mono debugger is written in C# and can debug both managed
and unmanaged applications, support for multiple-threaded
applications and should be relatively easy to port to new
platforms.
Stay turned for its first public release.
Details of the release are available in <a
href="http://lists.ximian.com/archives/public/mono-list/2003-January/011415.html">post</a>.
The debugger contains both Gtk# and command line interfaces.
The debugging file format used in Dwarf (its already supported
by our class libraries and the Mono C# compiler; To debug C
applications, you need a recent GCC, or to pass the -gdwarf-2
flag to gcc).
The debugger is available now, you can get it from <a
href="http://primates.ximian.com/~martin/debugger/mono-debugger-0.2.0.tar.gz">here</a>
-86
View File
@@ -1,86 +0,0 @@
* A debugging session using a dynamically generated symbol file.
Let's assume we have the following C# application which we want to debug:
<pre>
using System;
public class Foo
{
public struct MyStruct {
int a;
long b;
double c;
}
public static void Main ()
{
Int32 value = 5;
long test = 512;
MyStruct my_struct;
my_struct.a = 5;
my_struct.b = test;
my_struct.c = 23323.5235;
}
}
</pre>
First of all, we need to compile it and create the .il files:
<pre>
$ mcs ./Foo.cs
$ monodis /home/export/martin/MONO-LINUX/lib/corlib.dll > corlib.il
$ monodis Foo.exe > Foo.il
</pre>
Now we can start the JIT in the debugger:
<pre>
$ gdb ~/monocvs/mono/mono/jit/mono
(gdb) r --debug=dwarf --break Foo:Main ./Foo.exe
Starting program: /home/martin/monocvs/mono/mono/jit/mono --debug=dwarf --break Foo:Main ./Foo.exe
0x081e8911 in ?? ()
(gdb) call mono_debug_make_symbols ()
(gdb) add-symbol-file /tmp/Foo.o
Reading symbols from /tmp/Foo.o...done.
Current language: auto; currently c++
(gdb) frame
#0 Foo.Main () at Foo.il:26
26 // method line 2
(gdb) n
Foo.Main () at Foo.il:38
38 IL_0000: ldc.i4.5
(gdb) list
33 .maxstack 2
34 .locals (
35 int32 V_0,
36 int64 V_1,
37 valuetype MyStruct V_2)
38 IL_0000: ldc.i4.5
39 IL_0001: stloc.0
40 IL_0002: ldc.i4 512
41 IL_0007: conv.i8
42 IL_0008: stloc.1
43 IL_0009: ldloca.s 2
44 IL_000b: ldc.i4.5
45 IL_000c: stfld int32 .MyStruct::a
46 IL_0011: ldloca.s 2
47 IL_0013: ldloc.1
48 IL_0014: stfld int64 .MyStruct::b
49 IL_0019: ldloca.s 2
50 IL_001b: ldc.r8 23323.5
51 IL_0024: stfld float64 .MyStruct::c
52 IL_0029: ret
(gdb) until 52
Foo.Main () at Foo.il:53
53 }
(gdb) info locals
V_0 = 5
V_1 = 512
V_2 = {a = 5, b = 512, c = 23323.523499999999}
</pre>
As you see in this example, you need to know IL code to use this debugging method - but
it may be the only way to debug a library.
-70
View File
@@ -1,70 +0,0 @@
* A debugging session using a symbol file which has been created by MCS.
Let's assume we have the following C# application which we want to debug:
<pre>
using System;
public class Foo
{
public struct MyStruct {
int a;
long b;
double c;
}
public static void Main ()
{
Int32 value = 5;
long test = 512;
MyStruct my_struct;
my_struct.a = 5;
my_struct.b = test;
my_struct.c = 23323.5235;
}
}
</pre>
First of all, we need to compile it with MCS, assemble the generated .s file and
create the .il files for all referenced assemblies which were not compiled with MCS:
<pre>
$ mcs -g ./Foo.cs
$ as -o Foo-debug.o Foo-debug.s
$ monodis /home/export/martin/MONO-LINUX/lib/corlib.dll > corlib.il
</pre>
Now we can start the JIT in the debugger:
<pre>
$ gdb ~/monocvs/mono/mono/jit/mono
(gdb) r --debug=dwarf-plus --break Foo:Main ./Foo.exe
Starting program: /home/martin/monocvs/mono/mono/jit/mono --debug=dwarf-plus --break Foo:Main ./Foo.exe
Program received signal SIGTRAP, Trace/breakpoint trap.
0x081e8681 in ?? ()
(gdb) call mono_debug_make_symbols ()
(gdb) add-symbol-file Foo-debug.o
(gdb) add-symbol-file /tmp/corlib.o
` (gdb) frame
#0 Main () at ./Foo.cs:11
11 public static void Main ()
(gdb) n
Main () at ./Foo.cs:13
13 Int32 value = 5;
(gdb)
14 long test = 512;
(gdb)
17 my_struct.a = 5;
(gdb)
18 my_struct.b = test;
(gdb)
19 my_struct.c = 23323.5235;
(gdb)
20 }
(gdb) info locals
value = 5
test = 512
my_struct = { a = 5, b = 512, c = 23323.5235 }
</pre>
+7 -3
View File
@@ -37,10 +37,14 @@
There is a very interesting project to make a JavaVM for .NET
<a href="http://radio.weblogs.com/0109845/">here</a>.
Currently this will not work with Mono, as they use some
pieces of Managed C++ to implement the JNI interface.
A workaround has been discussed, contact the author if you want to contribute.
Zoltan has got IKVM to work with Mono.
<a name="PHP">
** PHP
Sterling has code to allow PHP developers to use Mono code, in
his <a href="http://www.php.net/~sterling/mono/">site</a>
<a name="MonoLogo">
** MonoLogo
+15
View File
@@ -80,6 +80,16 @@
Used to discuss the Windows.Forms implementatation for Mono using Wine.
</td>
</tr>
<tr>
<td>
<b><a
href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">gtk-sharp-list</a></b>
</td>
<td>
Used to discuss the Gtk bindings for Mono (<a href="http://gtk-sharp.sf.net">Gtk#</a>).
</td>
</tr>
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
</table>
Other mailing lists of interest:
@@ -92,6 +102,11 @@
</ul>
</ul>
* Alternative archive site
An alternate site that archives Mono List is available <a
href="http://archive.neotonic.com/archive/mono-list">http://archive.neotonic.com/archive/mono-list</a>
* Google search of the archives
<!-- Google Search with mods -->
+14 -2
View File
@@ -155,8 +155,20 @@ export PKG_CONFIG_PATH
# /usr/local/include and /usr/local/lib to CPPFLAGS and LDFLAGS. We could
# skip this if it would add /usr/include and /usr/lib, but leaving it
# shouldnt break anything.
iconvh=`locate include/iconv.h`
iconvh_dir=`dirname $iconvh`
iconvdirs="/usr/include /usr/local/include"
for i in $iconvdirs
do
if [ -f $i/iconv.h ]; then
iconvh_dir=$i
break
fi
done
if [ -z "$iconvh_dir" ]; then
echo "Can't find iconv headers (looked in $iconvdirs)"
exit -1
fi
iconvlib_dir=`echo $iconvh_dir | sed -e 's/include/lib/'`
echo "Adding $iconvh_dir to CPPFLAGS"
+222 -163
View File
@@ -1,74 +1,237 @@
* MySQL Data Provider
<p>There are two ADO.NET providers in Mono
for a <a href="http://www.mysql.com/">MySQL</a> database:
<ul>
<li>MySQL Data Provider for
<a href="http://www.mysql.com/">MySQL</a> databases. It is written in C# and uses
the MySQL C Client Library</li>
<li>Exists in namespace Mono.Data.MySql and assembly Mono.Data.MySql</li>
<li>Works on Windows and Linux via the MySQL client shared library
(libmySQL.dll on Windows and libmysqlclient.so on Linux).</li>
<li>Started by Daniel Morgan using
<a href="http://www.cybercom.net/~zbrad/DotNet/MySql/">C# Bindings to MySQL</a> from <a href="mailto:[email protected]">Brad Merill</a>
<li><a href="http://www.mysql.com/articles/dotnet/">Exploring MySQL in the Microsoft .NET Environment</a> is an article
by Mr. Venu who is a MySQL AB developer.</li>
<li>There is a good alternative to the provider in Mono:
<li><a href="http://sourceforge.net/projects/mysqlnet/">ByteFX.Data.MySQLClient</a>
<ul>
<li><a href="http://sourceforge.net/projects/mysqlnet/">MySQLNet</a> from ByteFX
is a MySQL Managed provider written in 100% C#,
does not require a client library, and works on Microsoft .NET and Mono. You
need at least Mono 0.18 and MySQLNet 0.65 for it to work on Mono.</li>
<li>Written in 100% C#</li>
<li>Does not require a client library</li>
<li>Works on Mono and Microsoft .NET</li>
<li>Requires at least Mono 0.18 and MySQLNet 0.65 for it to work on Mono</li>
<li>Works in the SQL# command-line and GTK# GUI version</li>
</ul>
</li>
<li>Testing for Mono's Mono.Data.MySql and ByteFX's ByteFX.Data.MySQLClient is below...</li>
</li>
<li>Mono.Data.MySql (deprecated)
<ul>
<li>Deprecated in favor of ByteFX.Data.MySQLClient
<li>Written in C# and uses
the MySQL C Client Library</li>
<li>Exists in namespace Mono.Data.MySql and assembly Mono.Data.MySql</li>
<li>Works on Windows and Linux via the MySQL client shared library
(libmySQL.dll on Windows and libmysqlclient.so on Linux).</li>
<li>Started by Daniel Morgan using
<a href="http://www.cybercom.net/~zbrad/DotNet/MySql/">C# Bindings to MySQL</a> from <a href="mailto:[email protected]">Brad Merill</a></li>
</ul>
</li>
<li>Bugs with Mono or the data provider should be reported
in Mono's Bugzilla <a href="http://bugzilla.ximian.com/">here</a>. If you
do not have Bugzilla user account, it is free
and easy to
create one <a href="http://bugzilla.ximian.com/createaccount.cgi">here</a>.</li>
</ul>
<p><a href="http://www.mysql.com/articles/dotnet/">Exploring MySQL
in the Microsoft .NET Environment</a> is an article
by Mr. Venu who is a MySQL AB developer.</li>
<p>Testing for Mono's Mono.Data.MySql and ByteFX's ByteFX.Data.MySQLClient is below.
** Current Status
Current Status of the MySQL providers:
<ul>
<li>can connect
<li>ByteFX.Data.MySQLClient
<ul>
<li>Build and Runs on Microsoft .NET and Mono</li>
<li>Works with SQL# (command-line and GTK# GUI versions)</li>
<li>MySQLCommandBuilder now implemented</li>
<li>Transaction support now implemented (not all table types support this)</li>
<li>GetSchemaTable fixed to not use xsd (for Mono)</li>
<li>Driver is now Mono-compatible</li>
<li>TIME data type now supported</li>
<li>More work to improve Timestamp data type handling</li>
<li>Changed signatures of all classes to match corresponding SqlClient classes</li>
<li>Protocol compression using <a href="http://www.icsharpcode.net/OpenSource/SharpZipLib/default.asp">SharpZipLib</a></li>
<li>Named pipes on Windows now working properly</li>
<li>Work done to improve Timestamp data type handling</li>
<li>Implemented IEnumerable on DataReader so DataGrid would work</li>
<li>Speed increased dramatically by removing bugging network sync code</li>
<li>Driver no longer buffers rows of data (more ADO.Net compliant)</li>
<li>Conversion bugs related to TIMESTAMP and DATETIME fields fixed</li>
</ul>
</li>
<li>can execute non-queries via ExecuteNonQuery()
<li>can execute aggregates via ExecuteScalar() and retrieve the
single row/single column result
<li>can execute queries and retrieve results using a data reader.
<li>a schema DataTable has been partially
implemented which is returned from GetSchemaTable() in MySqlDataReader.
<li>a DataTable in a DataSet can be filled via a MySqlDataAdapter
<li>Mono.Data.MySql (deprecated)
<ul>
<li>Currently, only works with version 3.23.x of MySQL</li>
<li>The shared client libraries
between windows version and linux are different: windows has libmySQL.dll
while linux has libmysqlclient.so. This is handled by the
file etc/mono/config which is mapped by the mono runtime in knowing
which native shared library to load. In cvs, this file is mono/config.in and
can be modified with a text editor.
<li>can connect</li>
<li>can execute non-queries via ExecuteNonQuery()</li>
<li>can execute aggregates via ExecuteScalar() and retrieve the
single row/single column result</li>
<li>can execute queries and retrieve results using a data reader.</li>
<li>a schema DataTable has been partially
implemented which is returned from GetSchemaTable() in MySqlDataReader.</li>
<li>a DataTable in a DataSet can be filled via a MySqlDataAdapter</li>
<li>The shared client libraries
between windows version and linux are different: windows has libmySQL.dll
while linux has libmysqlclient.so. This is handled by the
file etc/mono/config which is mapped by the mono runtime in knowing
which native shared library to load. In cvs, this file is mono/config.in and
can be modified with a text editor.</li>
<li>Works in the SQL# command-line and GTK# GUI version</li>
</ul>
</li>
</ul>
** Action plan
The current plan to work on the MySQL data provider:
The current plan for the MySQL data providers:
<ul>
<li>ByteFX.Data.MySQLClient
<ul>
<li>Testing and fixes</li>
<li>Implement missing features</li>
<li>Only fixes for bugs to build and run MySQLClient on Mono
will be accepted in mono-cvs. Most bugs and any new features will
go into sourceforge cvs. Anytime there is a release of MySQLClient,
the source code will be copied from sourceforge cvs to mono-cvs</li>
<li>Releases of MySQLClient are determined by Reggie Burnett and releases
of Mono are determined by Miguel de Icaza</li>
<li>Implement any missing features or fix any bugs in Mono to get new
features all of MySQLClient to work on Mono</li>
</ul>
</li>
<li>Mono.Data.MySql (deprecated)
<ul>
<li>Testing and bug fixes</li>
<li>Mono.Data.MySql is deprecated and therefore maybe removed
at a later date. It will stay in Mono for now because other
programs maybe using it now.</li>
</ul>
</li>
</ul>
** Testing for MySQLNet provider (ByteFX.Data.MySQLClient)
<ul>
<li>Have access to a MySQL database or download it from
<ul>
<li><a href="http://www.mysql.com/downloads/index.html">MySQL AB</a></li>
</ul>
</li>
<li>MySQLNet can be gotten from <a href="http://sourceforge.net/projects/mysqlnet/">here</a> and the
binary assembly ByteFX.Data.dll needs to be installed
in the same place as the mono class libraries.</li>
<li>MySQLNet requires <a href="http://www.icsharpcode.net/OpenSource/SharpZipLib/default.asp">SharpZipLib</a> which is
a Zip Library written in 100% C#. This is used for compression/decompression of data
sent/received over the network. The SharpZipLib binary assembly SharpZipLib.dll should
be installed in the same place as the mono class libraries.</li>
<li>Has a ConnectionString format:
<pre>
"Server=hostname;" +
"Database=database;" +
"User ID=username;" +
"Password=password"
</pre>
</li>
<li>C# Example:
<pre>
using System;
using System.Data;
using ByteFX.Data.MySQLClient;
public class Test
{
public static void Main(string[] args)
{
string connectionString =
"Server=localhost;" +
"Database=test;" +
"User ID=myuserid;" +
"Password=mypassword;";
IDbConnection dbcon;
dbcon = new MySQLConnection(connectionString);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();
// requires a table to be created named employee
// with columns firstname and lastname
// such as,
// CREATE TABLE employee (
// firstname varchar(32),
// lastname varchar(32));
string sql =
"SELECT firstname, lastname " +
"FROM employee";
dbcmd.CommandText = sql;
IDataReader reader = dbcmd.ExecuteReader();
while(reader.Read()) {
string FirstName = reader["firstname"];
string LastName = reader["lastname"];
Console.WriteLine("Name: " +
FirstName + " " + LastName);
}
// clean up
reader.Close();
reader = null;
dbcmd.Dispose();
dbcmd = null;
dbcon.Close();
dbcon = null;
}
}
</pre>
</li>
<li>Building C# Example:
<ul>
<li>Parameters support via MySqlParameter and MySqlParameterCollection
<li>Support LOBs (Large Object)
<li>Change the MySQL provider to not be dependent on a client library and
be written in 100% C#
<li>Connection pooling
<li>Get the provider to work like other data providers
<li>Save the example to a file, such as, TestExample.cs</li>
<li>Build on Linux:
<pre>
mcs TestExample.cs -r System.Data.dll \
-r ByteFX.Data.dll
</pre>
</li>
<li>Build on Windows via Cygwin:
<pre>
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
TestExample.cs \
-lib:C:/cygwin/home/MyHome/mono/install/lib \
-r System.Data.dll -r ByteFX.Data.dll
</pre>
</li>
</ul>
</li>
<li>Running the Example:
<pre>
mono TestExample.exe
</pre>
</li>
</ul>
** Testing for Mono's MySQL provider (Mono.Data.MySql)
@@ -80,18 +243,13 @@ The current plan to work on the MySQL data provider:
</li>
<li>Take a look at MySqlTest.cs in mcs/class/Mono.Data.MySql/Test</li>
<li>On Linux, you may need to make a symbolic link from libmySQL.dll to libmysqlclient.dll</li>
<li>Has a ConnectionString format:
<pre>
"Server=hostname;" +
"Database=database;" +
"User ID=username;" +
"Password=password"
"Server=hostname;Database=database;User ID=username;Password=password"
(or)
"host=hostname;" +
"dbname=database;" +
"user=username;" +
"passwd=password"
"Host=hostname;Dbname=database;User=username;Passwd=password"
</pre>
<li>C# Example:
@@ -107,10 +265,11 @@ The current plan to work on the MySQL data provider:
string connectionString =
"Server=localhost;" +
"Database=test;" +
"User ID=mysql;" +
"Password=;";
"User ID=myuserid;" +
"Password=mypassword;";
IDbConnection dbcon;
dbcon = new MySqlConnection(connectionString);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();
// requires a table to be created named employee
// with columns firstname and lastname
@@ -121,7 +280,7 @@ The current plan to work on the MySQL data provider:
string sql =
"SELECT firstname, lastname " +
"FROM employee";
dbcmd.ConnectionString = sql;
dbcmd.CommandText = sql;
IDataReader reader = dbcmd.ExecuteReader();
while(reader.Read()) {
string FirstName = reader["firstname"];
@@ -168,103 +327,3 @@ mono TestExample.exe
</li>
</ul>
** Testing for MySQLNet provider (ByteFX.Data.MySQLClient)
<ul>
<li>Have access to a MySQL database or download it from
<ul>
<li><a href="http://www.mysql.com/downloads/index.html">MySQL AB</a></li>
</ul>
</li>
<li>MySQLNet can be gotten from <a href="http://sourceforge.net/projects/mysqlnet/">here</a> and the
binary assembly ByteFX.Data.dll needs to be installed
in the same place as the mono class libraries.</li>
<li>MySQLNet requires <a href="http://www.icsharpcode.net/OpenSource/SharpZipLib/default.asp">SharpZipLib</a> which is
a Zip Library written in 100% C#. This is used for compression/decompression of data
sent/received over the network. The SharpZipLib binary assembly SharpZipLib.dll should
be installed in the same place as the mono class libraries.</li>
<li>Has a ConnectionString format:
<pre>
"Server=hostname;" +
"Database=database;" +
"User ID=username;" +
"Password=password"
</pre>
</li>
<li>C# Example:
<pre>
using System;
using System.Data;
using ByteFX.Data.MySQLClient;
public class Test
{
public static void Main(string[] args)
{
string connectionString =
"Server=localhost;" +
"Database=test;" +
"User ID=mysql;" +
"Password=;";
IDbConnection dbcon;
dbcon = new MySQLConnection(connectionString);
IDbCommand dbcmd = dbcon.CreateCommand();
// requires a table to be created named employee
// with columns firstname and lastname
// such as,
// CREATE TABLE employee (
// firstname varchar(32),
// lastname varchar(32));
string sql =
"SELECT firstname, lastname " +
"FROM employee";
dbcmd.ConnectionString = sql;
IDataReader reader = dbcmd.ExecuteReader();
while(reader.Read()) {
string FirstName = reader["firstname"];
string LastName = reader["lastname"];
Console.WriteLine("Name: " +
FirstName + " " + LastName);
}
// clean up
reader.Close();
reader = null;
dbcmd.Dispose();
dbcmd = null;
dbcon.Close();
dbcon = null;
}
}
</pre>
</li>
<li>Building C# Example:
<ul>
<li>Save the example to a file, such as, TestExample.cs</li>
<li>Build on Linux:
<pre>
mcs TestExample.cs -r System.Data.dll \
-r ByteFX.Data.dll
</pre>
</li>
<li>Build on Windows via Cygwin:
<pre>
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
TestExample.cs \
-lib:C:/cygwin/home/MyHome/mono/install/lib \
-r System.Data.dll -r ByteFX.Data.dll
</pre>
</li>
</ul>
</li>
<li>Running the Example:
<pre>
mono TestExample.exe
</pre>
</li>
</ul>
+65 -22
View File
@@ -1,10 +1,15 @@
* ODBC Data Provider
<ul>
<li>Exists in namespace System.Data.Odbc and assembly System.Data
<li>ADO.NET Data Provider for Data Sources
that have <a href="http://www.microsoft.com/data/odbc/">ODBC</a> support.</li>
<li>Exists in namespace System.Data.Odbc and assembly System.Data</li>
<li>Works on Windows and Linux. Should have no problems working on UNIX too.
<li>Works on Windows and Linux. Should have no problems working on UNIX too.</li>
<li>Works on Windows via the native Windows odbc32.dll
<li>Works on Windows via the native Windows odbc32.dll</li>
<li>Works on Linux via:
@@ -14,7 +19,7 @@
from <a href="http://www.easysoft.com/">Easysoft</a></li>
<li><a href="http://www.iodbc.org/">iODBC</a> which has
a commercial support
commercial support
from <a href="http://oplweb.openlinksw.com:8080/download/">OpenLink Software</a></li>
</ul>
@@ -24,21 +29,23 @@
<li>ODBC can connect to various databases which has an ODBC driver installed:
<ul>
<li><a href="http://www.mysql.com/">MySQL</a>
<li><a href="http://www.postgresql.org/">PostgreSQL</a>
<li><a href="http://www.oracle.com/">Oracle</a>
<li><a href="http://www.borland.com/products/downloads/download_interbase.html">Interbase</a>
<li><a href="http://www.sybase.com/downloads">Sybase</a> and
<li><a href="http://www.mysql.com/">MySQL</a></li>
<li><a href="http://www.postgresql.org/">PostgreSQL</a></li>
<li><a href="http://www.oracle.com/">Oracle</a></li>
<li><a href="http://www.borland.com/products/downloads/download_interbase.html">Interbase</a></li>
<li><a href="http://www.sybase.com/downloads">Sybase</a> (
via <a href="http://www.freetds.org/">FreeTDS</a> on UNIX)</li>
<li><a href="http://www.microsoft.com/sql/default.asp">Microsoft SQL Server</a> (
via <a href="http://www.freetds.org/">FreeTDS</a> on UNIX)
<li><a href="http://www-3.ibm.com/software/data/db2/">IBM DB2 Universal Database</a>
<li><a href="http://www.microsoft.com/office/access/default.asp">MS Access</a>
(via <a href="http://mdbtools.sourceforge.net/">MDB Tools</a> on UNIX)
via <a href="http://www.freetds.org/">FreeTDS</a> on UNIX)</li>
<li><a href="http://www-3.ibm.com/software/data/db2/">IBM DB2 Universal Database</a></li>
<li><a href="http://www.microsoft.com/office/access/default.asp">MS Access</a>
(via <a href="http://mdbtools.sourceforge.net/">MDB Tools</a> on UNIX)</li>
</ul>
<li>ODBC Provider created by Brian Ritchie.</li>
<li>Does not support trusted connections</li>
</ul>
** Current Status
@@ -70,6 +77,16 @@
<li>Can get a DataTable containing schema info via GetSchemaTable() in a OdbcDataReader</li>
<li>Can Fill a DataTable in a DataSet via an OdbcDataAdapter</li>
<li>Works in SQL#, but Column names don't show up correctly.</li>
<li>Bugs with Mono or the data provider should be reported
in Mono's Bugzilla <a href="http://bugzilla.ximian.com/">here</a>. If you
do not have Bugzilla user account, it is free
and easy to
create one <a href="http://bugzilla.ximian.com/createaccount.cgi">here</a>.</li>
</ul>
** Action Plan
@@ -81,22 +98,47 @@
<li>Testing with other setups
</ul>
** Testing ODBC provider
** Testing ODBC provider with IBM DB2 Universal Database
<p>Test Mono's ODBC provider System.Data.Odbc with the MySQL ODBC driver MyODBC
<ul>
<li>You need a working mono and mcs</li>
<li>For Unix, you will need unixODBC or iODBC installed</li>
<li>Have acess to a <a href="http://www-3.ibm.com/software/data/db2/">IBM DB2 Universal Database</a> or
you can download from IBM</li>
<li>Read these web pages about Unix, ODBC, and IBM DB2
<ul>
<li><a href="http://www.unixodbc.com/doc/db2.html">unixODBC web page about IBM DB2</a></li>
<li><a href="http://www-3.ibm.com/software/data/db2/udb/ad/v8/cli/t0010406">IBM web page about unixODBC and DB2</a></li>
</ul>
</li>
<li>The ODBC provider is similar to the <a href="http://www.go-mono.com/ibmdb2.html">IBM DB2</a> provider.</li>
</ul>
** Testing ODBC provider with MySQL
<p>You can test Mono's ODBC provider System.Data.Odbc with the MySQL ODBC driver MyODBC
<p><ul>
<li>Take a look at OdbcTest.cs in mcs/class/System.Data/Test</li>
<li>Here is a ConnectionString format if you have a DSN setup:
<pre>
"DSN=dataSetName;UID=username;PWD=password"
"DSN=dataSetName;UID=myuserid;PWD=mypassword"
</pre>
</li>
<li>Here is a ConnectionString format if you do not have DSN (have not
gotten this to work):
<li>Here is a ConnectionString format if you do not have a DSN (have not
gotten this to work though):
<pre>
"DRIVER={SQL Server};SERVER=(local);UID=sa;PWD=;DATABASE=pubs"
"DRIVER={MySQL ODBC 3.51 Driver};" +
"SERVER=localhost;DATABASE=test;" +
"UID=myuserid;PASSWORD=mypassword;" +
"OPTION=3";
</pre>
</li>
<li>C# Example:
@@ -115,9 +157,10 @@
// hostname of localhost and database test
string connectionString =
"DSN=MYSQLDSN;" +
"UID=mysql;" +
"PWD=;";
"UID=myuserid;" +
"PWD=mypassword";
IDbConnection dbcon;
dbcon.Open();
dbcon = new OdbcConnection(connectionString);
IDbCommand dbcmd = dbcon.CreateCommand();
// requires a table to be created named employee
@@ -129,7 +172,7 @@
string sql =
"SELECT firstname, lastname " +
"FROM employee";
dbcmd.ConnectionString = sql;
dbcmd.CommandText = sql;
IDataReader reader = dbcmd.ExecuteReader();
while(reader.Read()) {
string FirstName = reader["firstname"];
+13 -2
View File
@@ -27,6 +27,14 @@
</li>
<li>Does not support trusted connections</li>
<li>Bugs with Mono or the data provider should be reported
in Mono's Bugzilla <a href="http://bugzilla.ximian.com/">here</a>. If you
do not have Bugzilla user account, it is free
and easy to
create one <a href="http://bugzilla.ximian.com/createaccount.cgi">here</a>.</li>
</ul>
** Current Status
@@ -82,9 +90,12 @@
string connectionString =
"Provider=PostgreSQL;" +
"Addr=127.0.0.1;" +
"Database=rodrigo";
"Database=test;" +
"User ID=postgres;" +
"Password=fun2db";
IDbConnection dbcon;
dbcon = new OleDbConnection(connectionString);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();
// requires a table to be created named employee
// with columns firstname and lastname
@@ -95,7 +106,7 @@
string sql =
"SELECT firstname, lastname " +
"FROM employee";
dbcmd.ConnectionString = sql;
dbcmd.CommandText = sql;
IDataReader reader = dbcmd.ExecuteReader();
while(reader.Read()) {
string FirstName = reader["firstname"];
+94 -56
View File
@@ -1,82 +1,115 @@
* Oracle Data Provider
<ul>
<li>ADO.NET Data Provider for <a href="http://www.oracle.com/">Oracle</a> databases</li>
<li>Exists in namespace System.Data.OracleClient and assembly System.Data.OracleClient</li>
<li>Works on Windows</li>
<li>Works on Windows and Linux</li>
<li>Works with Oracle 8i</li>
<li>More information about Oracle can be found at <a href="http://www.oracle.com/"/>here</a></li>
<li>Created by Daniel Morgan.</li>
<li>Untested, but should work with Oracle 9i</li>
<li>Uses the Oracle CLI (Call Level Interface) which is a C library (API) for the Oracle Client
software</li>
<li>Internally, the OracleClient provider has OCI abstracted to an object-oriented programming model</li>
<li>Created by Daniel Morgan and Tim Coleman</li>
<li>Does not support trusted connections</li>
<li>Bugs with Mono or the data provider should be reported
in Mono's Bugzilla <a href="http://bugzilla.ximian.com/">here</a>. If you
do not have Bugzilla user account, it is free
and easy to
create one <a href="http://bugzilla.ximian.com/createaccount.cgi">here</a>.</li>
</ul>
** Current Status
<ul>
<li>OracleConnection can connect to an Oracle 8i database on
Windows via oci.dll</li>
<li>OracleConnection can connect and disconnect to an Oracle 8i database on
Windows and Linux via OCI (Oracle Call-level Interface)</li>
<li>The native glue library only has makefiles for Borland C++ and
Microsoft Visual C++ command line compilers. Only the makefile for
Microsoft Visual C++ command-line compiler has been tested.</li>
<li>No longer uses a glue library (a library between the System.Data.OracleClient.dll
assembly and the oci library). In Current Mono cvs, System.Data.OracleClient
directly platform invokes into the oci library thanks to Tim Coleman.</li>
<li>Can have multiple connections with different transactions where each transaction is
separated from the others, so a rollback or commit in one transaction
does not affect the other.</li>
<li>Can execute simple DML SQL statements, such as,
INSERT a row into the EMP table via the OracleCommand's ExecuteNonQuery method</li>
<li>The System.Data.OracleClient.dll assembly can be built with mcs/mono via
the makefile.gnu for System.Data.OracleClient or csc/.net via the
System.Data.OracleClient.build nant build file. There is also a Visual Studio.NET
solution it too.
System.Data.OracleClient.build nant build file.</li>
<li>Can retrieve data via ExecuteReader and OracleDataReader. Currently,
supports character, numeric, some date data types. ExecuteScalar
also works.</li>
<li>Simple input parameters (character and numeric data) can now
be used in SQL queries. Output parameters do not yet work.</li>
<li>OracleException and Error handling exists now.</li>
<li>Message handling needs to be added for non-critical messages
received from Oracle</li>
<li>Handling of various data types need to be added.</li>
<li>Data Adapter exists, and a DataSet can be filled using it. The
Data Adapter is abstract enough that it should work as expected.</li>
<li>Lots of missing functionality and bugs.</li>
<li>Works with SQL# command-line and GTK# versions in cvs. Only works with
simple character data though. SQL# For GTK# can only show the results to
the TextView because the Data Adapter is not yet available</li>
</ul>
** Action Plan
<ul>
<li>Get the makefile for the Borland C++ compiler to work
since the <a href="http://www.borland.com/">Borland</a> C++ compiler is
a free download</li>
<li>Get the native glue lib System.Data.OracleClient.ocigule.dll to be built
using gcc on Linux. This would require that Oracle 8i client software be installed
on Linux with the oci headers and shared libraries</li>
<li>Be able to retrieve results via a data reader</li>
<li>Parameters support</li>
<li>Be able to retrieve results via a data reader (WORKING)</li>
<li>Parameters support (IN PROGRESS)</li>
<li>transactions (WORKING)</li>
<li>Stored Procedures, Functions, and Packages support</li>
<li>Be able to fill a DataTable in a DataSet via a data adapter</li>
<li>Support for Oracle 9i</li>
<li>Figure out how to move the unmanaged OCI handling code in
the oci glue C library to the managed C# assembly. I have been unable
to successfully connect to an Oracle 8i database by using Platform Invoke and
Marshalling in C# to the oci shared library (oci.dll on Windows)</li>
<li>Be able to fill a DataTable in a DataSet via a data adapter (IN PROGRESS)</li>
<li>Support for Oracle 8i and 9i (UNKNOWN)</li>
<li>Support LOBs</li>
<li>Support all the data types</li>
<li>Implement Connection pooling</li>
<li>Security</li>
</ul>
** Testing Mono.Data.OracleClient
** Testing System.Data.OracleClient
<ul>
<li>Have a working mono and mcs</li>
<li>Have access to an Oracle 8i database or download it from
<a href="http://www.oracle.com/">Oracle</a>. Registration to the
Oracle Technology Network is free. If installing on Linux, I suggest you
do a lot of searching to see how others installed Oracle on Linux.</li>
<a href="http://www.oracle.com/">Oracle</a>. If you are connecting
remotely to an Oracle database, you need the Oracle client software.
Registration to the <a href="http://technet.oracle.com/">Oracle Technology Network</a> is free. If installing on Linux,
I suggest you do a lot of searching to see how others installed Oracle on Linux.</li>
<li>Make sure Mono.Data.OracleClient.dll assembly is built, if not, go
into Mono.Data.OracleClient and do a make -f makefile.gnu (on Linux) or
../../nant/NAnt.exe (on Cygwin).</li>
<li>The OCI Glue Library Mono.Data.OracleClient.ociglue.dll will need to be
created as well. Has only been tested with lc (Microsoft Visual C++ command-line compiler).
There is a make file for Microsoft C++ and Borland C++. I'm sure it wouldn't be hard
to create a makefile for gcc if installing on Linux.</li>
<li>Make sure System.Data.OracleClient.dll assembly is built, if not, go
into System.Data.OracleClient and do a make -f makefile.gnu (on Linux) or
../../nant/NAnt.exe (on Windows using Cygwin).</li>
<li>Take a look at TestOracleClient.cs found at mcs/class/System.Data.OracleClient/Test</li>
<li>The Data Source is an Oracle TNSNAME</li>
<li>Has a connection string format:
<pre>
"Data Source=tnsname;User ID=userid;Password=password"
@@ -90,28 +123,33 @@
public class Test
{
public static void Main(string[] args)
public static void Main (string[] args)
{
string connectionString =
"Data Source=testdb;" +
"User ID=scott;" +
"Password=tiger;";
IDbConnection dbcon;
dbcon = new OracleConnection(connectionString);
IDbCommand dbcmd = dbcon.CreateCommand();
string sql =
"insert into scott.emp " +
"(empno, ename, job, sal, deptno) " +
"values(123," +
"'Don Smith'," +
"'Cook'," +
"23021," +
"20)";
dbcmd.ConnectionString = sql;
dbcmd.ExecuteNonQuery();
dbcmd.Dispose();
dbcon = new OracleConnection (connectionString);
dbcon.Open ();
IDbCommand dbcmd = dbcon.CreateCommand ();
string sql = "SELECT ename, job FROM scott.emp";
dbcmd.CommandText = sql;
IDataReader reader = dbcmd.ExecuteReader ();
while (reader.Read ()) {
string employeeName = reader["ename"];
string job = reader["job"];
Console.WriteLine ("Employee Name: {0} Job: {1}",
employeeName, job);
}
// clean up
reader.Close ();
reader = null;
dbcmd.CommandText = sql;
dbcmd.ExecuteNonQuery ();
dbcmd.Dispose ();
dbcmd = null;
dbcon.Close();
dbcon.Close ();
dbcon = null;
}
}
+34
View File
@@ -0,0 +1,34 @@
* International sites
<ul>
<li><a href="http://mono.es.gnome.org">Mono
Hispano</a>: The spanish-speaking community of Mono
developers and users. They have quite a number of
unique documents and tutorials.
<li><a href="http://www.go-mono.pl">Mono Poland</a>:
Mono site for polish users.
</ul>
* User sites
<ul>
<li>Alp Toker's <a
href="http://www.atoker.com/mono/">site</a>: He is an
active Mono developer (gsirc, platano) and produces
very nice Debian packages of Mono.
<li>Brian Ritchie's <a
href="http://www12.brinkster.com/brianr/">site</a>:
Brian is a contributor to Mono's class library (ODBC
provider and the database multiplexing assembly), and
has built an application server for .NET and Mono.
His site contains news, software, as well as his
weblog.
</ul>
+126 -40
View File
@@ -1,98 +1,182 @@
* PostgreSQL Data Provider
There are two ADO.NET data providers for <a href="http://www.postgresql.org/">PostgreSQL</a> in Mono:
<ul>
<li>Exists in namespace Mono.Data.PostgreSql and assembly Mono.Data.PostgreSql</li>
<li>Is a Mono Data Provider for the <a href="http://www.postgresql.org/">PostgreSQL</a>
client/server database management system.</li>
<li>Written in C# and has C# bindings to the PostgreSQL C Client library pq.dll on Windows
and libpq.so on Linux.</li>
<li>Alternative to the PostgreSQL provider in Mono:
<li><a href="http://gborg.postgresql.org/project/npgsql/projdisplay.php">Npgsql</a>
<ul>
<li><a href="http://gborg.postgresql.org/project/npgsql/projdisplay.php">Npgsql</a>
is a Managed PostgreSQL provider written in 100% C#, does not require a client library,
and works on Microsoft .NET and Mono.
</li>
<li>a .NET Managed Data Provider for PostgreSQL
<li>Written in 100% C#</li>
<li>does not require a client library</li>
<li>works on Mono and Microsoft .NET</li>
<li>created by Francisco Figueiredo jr. and has many developers working on it
<li>works in the SQL# (command-line and GTK# GUI versions)</li>
<li>in namespace Npgsql and assembly Npgsql and is found in mcs
at mcs/class/Npgsql</li>
</ul>
</li>
<li>See Testing for both Mono's Mono.Data.PostgreSqlClient and Npgsql.</li>
<li>Mono.Data.PostgreSQL (deprecated)
<ul>
<li>Deprecated in favor of Npgsql</li>
<li>Exists in namespace Mono.Data.PostgreSql and assembly Mono.Data.PostgreSql</li>
<li>Is a Mono Data Provider for the <a href="http://www.postgresql.org/">PostgreSQL</a>
client/server database management system.</li>
<li>Written in C# and has C# bindings to the PostgreSQL C Client library pq.dll on Windows
and libpq.so on Linux.</li>
</ul>
</li>
<li>Bugs with Mono or the data provider should be reported
in Mono's Bugzilla <a href="http://bugzilla.ximian.com/">here</a>. If you
do not have Bugzilla user account, it is free
and easy to
create one <a href="http://bugzilla.ximian.com/createaccount.cgi">here</a>.</li>
</ul>
Below, see separate Testing sections for Npgsql and Mono.Data.PostgreSqlClient.
** Current Status
<ul>
<li>Npgsql
<ul>
<li>Builds and Runs on both Microsoft .NET and Mono.</li>
<li>Works using SQL# (command-line and GTK# versions)</li>
<li>You can send insert, update, delete queries
through NpgsqlCommand.ExecuteNonQuery() method.</li>
<li>You can send queries like, select count(*) from table, select version()
with NpgsqlCommand.ExecuteScalar() method.</li>
<li>There is logging support. (Thanks Dave Page)
To use it, place code like that in your program:</li>
<pre>
// Enable logging.
NpgsqlEventLog.Level = LogLevel.Debug; // LogLevel.
NpgsqlEventLog.LogName = "NpgsqlTests.LogFile"; // LogFile.
</pre>
<li>You can use Npgsql with Mono (Thanks Kristis Makris). It is not working perfectly.</li>
<li>There is a winforms test suite (Thanks Dave Page).</li>
<li>Clearer code in NpgsqlConnection removing *magic* numbers and constants. (Thanks Kristis Makris)</li>
<li>Better support of ODBC-like ConnectionString in NpgsqlConnection (Thanks Dave Page)</li>
<li>Thanks Ulrich Sprick for all discussion and ideas.</li>
</ul>
</li>
<li>Mono.Data.PostgreSQL status
<ul>
<li>Deprecated in favor of Npgsql</li>
<li>We are able to do simple CREATE TABLE, DROP TABLE, UPDATE, INSERT, and
DELETE SQL commands using the ExecuteNonQuery method in PgSqlCommand.
DELETE SQL commands using the ExecuteNonQuery method in PgSqlCommand.</li>
<li>We can execute multiple queries and do a NextResult() in PgSqlDataReader()
to get the next result set.
to get the next result set.</li>
<li>We are also able to do simple aggregate functions,
ie, count(), sum(), min(), and max()
in a simple SELECT SQL query using the ExecuteScalar() now.
in a simple SELECT SQL query using the ExecuteScalar() now.</li>
<li>We are also able to retrieve data with a simple SELECT SQL query
using ExecuteReader() which returns a PgSqlDataReader. We are able to
use GetSchemaTable() to get the meta data about the table columns.
We are able to Read() to get each row from the result set.
We are able to Read() to get each row from the result set.</li>
<li>We are able to get
String data (char, character, text, varchar), Int16 (smallint),
Int32 (integer), Int64 (bigint), DateTime (time, date, timestamp),
Boolean (boolean), Single (float), and Double (double).
More data types will come later. Note, the types that do work still
need thorough testing.
need thorough testing.</li>
<li>Rows that are returned which contain columns that are NULL are handled now.
The PgSqlDataReader method IsDBNull() needs to be called to determine
if a field IS NULL before trying to read data from that field.
if a field IS NULL before trying to read data from that field.</li>
<li>Calling PostgreSQL stored procedures works. It does not work perfectly.
It may not
even work to specification - yet. If you want to test it yourself, look at
TestSqlDataReader.cs or PostgresTest.cs in
mcs/class/System.Data/Test.
mcs/class/System.Data/Test.</li>
<li>Below, I have some sample code you can
use to call a PostgreSQL stored procedure named "version". This stored
procedure returns a string containing the PostgreSQL server version. Notice
the CommandType is StoredProcedure and the method ExecuteScalar() is called.
the CommandType is StoredProcedure and the method ExecuteScalar() is called.</li>
<li>ExecuteScalar() is a lightweight method in class PgSqlCommand that only returns
one row and one column as one object - even if there is more than row or column.
one row and one column as one object - even if there is more than row or column.</li>
<li>We have the beginnings of Parameters support PostgreSQL. Only
Input Parameters are currently supported. Output, Input/Output,
and Return parameters still need to be done.
<li>A lot of functionality in System.Data is missing, but the
infrastructure is starting to come together.
and Return parameters still need to be done.</li>
<li>A lot of Exceptions need to be thrown for various exceptions. However,
PgSqlException, PgSqlErrorCollection, and PgSqlError have been partially
implemented.
implemented.</li>
<li>Tim Coleman and Rodrigo Moya got the beginnings of the
PgSqlDataAdapter/DataSet/DataTable/DataRow to work. Currently,
the PgSqlDataAdapter can Fill() relational data into a DataTable in a DataSet.
See the test mcs/class/System.Data/Test/TestSqlDataAdapter.cs to see it in action.
See the test mcs/class/System.Data/Test/TestSqlDataAdapter.cs to see it in action.</li>
<li>Works in the SQL# command-line version
and the GTK# version on Linux. It only works in SQL# command-line version
on Windows.</li>
</ul>
</li>
</ul>
** Action Plan
<ul>
<li>More testing and fixing bugs</li>
<li>Better error handling</li>
<li>More Data Types to use</li>
<li>Any features for Npgsql should be implemented in Npgsql's main cvs repository at
gborg.postgresql.org. Most bugs should be fixed in gborg.postgresql.org's cvs.
Only bugs neccessary for building and running of Npgsql on Mono can be done in Mono cvs,
but once applied they should be sent to Npgsql's mailing list
at gborg.postgresql.org for inclusion into cvs there. Whenever there is
a release of Npgsql (determined by Francisco Figueiredo jr. or a release
of Mono (determined by Miguel de Icaza), then the Npgsql source
in gborg.postgresql.org's cvs will be used to update the Npgsql source in
Mono's cvs.
</li>
<li>Mono.Data.PostgreSqlClient even though deprecated can still
accept bug fixes. This is because other areas, such as, ASP.NET examples
may still use this provider.</li>
<li>Add any missing functionality to Npgsql. If this funtionality works on
.NET but not on Mono, implement the missing features or fix the bugs in Mono</li>
<p>More testing and fixing bugs...
<li>Npgsql has replaced Mono.Data.PostgreSqlClient as the provider of
choice to use. However, Mono.Data.PostgreSqlClient will remain in a
deprecated state until nobody uses it anymore - then it can be removed</li>
<li>Implement more of PostgreSQL 7.3 features in Npgsql</li>
</ul>
<p>Eventually replace the PostgreSQL data provider in Mono
with <a href="http://gborg.postgresql.org/project/npgsql/projdisplay.php">Npgsql</a>.
Npgsql is a .Net Data Provider for PostgreSQL which implements
the <a href="http://developer.postgresql.org/docs/postgres/protocol.html">PostgreSQL Frontend/Backend Protocol</a>.
Npgsql is implemented in 100% C#. This provider was created by Francisco Figueiredo jr.
and has many programmers developing the provider.
** Testing Mono's Mono.Data.PostgreSqlClient
** Testing Mono.Data.PostgreSqlClient
<ul>
* <p>In order to test Mono.Data.PostgreSqlClient, you will need to have
@@ -352,6 +436,7 @@ mono PostgresTest.exe
"Password=fun2db;";
IDbConnection dbcon;
dbcon = new PgConnection(connectionString);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();
// requires a table to be created named employee
// with columns firstname and lastname
@@ -362,7 +447,7 @@ mono PostgresTest.exe
string sql =
"SELECT firstname, lastname" +
"FROM employee";
dbcmd.ConnectionString = sql;
dbcmd.CommandText = sql;
IDataReader reader = dbcmd.ExecuteReader();
while(reader.Read()) {
string FirstName = reader["firstname"];
@@ -434,6 +519,7 @@ mono TestExample.exe
"User ID=postgres;" +
"Password=fun2db;";
IDbConnection dbcon;
dbcon.Open();
dbcon = new NpgsqlConnection(connectionString);
IDbCommand dbcmd = dbcon.CreateCommand();
// requires a table to be created named employee
@@ -445,7 +531,7 @@ mono TestExample.exe
string sql =
"SELECT firstname, lastname " +
"FROM employee";
dbcmd.ConnectionString = sql;
dbcmd.CommandText = sql;
IDataReader reader = dbcmd.ExecuteReader();
while(reader.Read()) {
string FirstName = reader["firstname"];
+156
View File
@@ -0,0 +1,156 @@
* Provider Factory
<p>Brian Ritchie contributed a Provider Factory and Data Tools for Mono ADO.NET<br>
which gives us a foundation for abstract data provider access within Mono
** Here are the deails:
<ul>
<li>The Provider information is seperate from the connection string information.<br>
This allows the list of providers to be stored in the machine.config file.</li>
<li>Provider and ProviderCollection objects are available to access <br>
the list of providers and modify them at runtime.</li>
<li>The ProviderFactory object is used to create new connections, commands,<br>
dataadapters, parameters, etc.</li>
</ul>
** Overview of the ProviderFactory object model:
<ul>
<li><b>ProviderFactory</b>: used to create new Connections, Commands,<br>
DataAdapters, or Commands. All objects are returned using <br>
the provider interfaces such as IDbConnection, IDbCommand,<br>
IDbDataAdapter, or IDataParamter</li>
<li><b>DataTools</b>: static methods for doing <br>
common tasks like filling a DataSet <br>
with the contents of a select statement.</li>
<li><b>ProviderCollection</b>: list of providers configured <br>
in the system. Initially loaded from app.config, but can <br>
be modified at run-time.</li>
<li><b>Provider</b>: represents a given provider (factory) <br>
and holds information needed to <br>
create the types.</li>
<li><b>ProviderSectionHandler</b>: works behind the <br>
scenes to load the list of <br>
providers from the app.config into a ProviderCollection.</li>
</ul>
** C# source code samples for creating a connection:
<pre>
// Create connection using enhanced connection string
// The factory attribute specifies which provider
// to use. The factory attribute is parsed out, the
// object is created, and then the rest of the
// connection string is passed into the provider. The
// providers are defined in
// the app.config (or machine.config).
IDbConnection conn;
string connectionString =
"factory=System.Data.SqlClient;" +
"server=speedy;database=pubs;uid=sa";
conn = ProviderFactory.CreateConnection(connectionString);
// Create connection specifying provider
// and standard connection string
IDbConnection conn;
string provider = "System.Data.SqlClient";
string connectionString = "server=speedy;database=pubs;uid=sa";
conn = ProviderFactory.CreateConnection(provider,connectionString);
// Create connection using connection string stored
// in app.config under &lt;appSettings&gt;
IDbConnection conn;
string appSetting = "PubsConnStr";
conn = ProviderFactory.CreateConnectionFromConfig(appSetting);
</pre>
<p>C# Sample for Creating a DataAdapter and filling a DataSet.
<pre>
// Create Connection
IDbConnection conn =
ProviderFactory.CreateConnectionFromConfig("PubsConnStr");
// Select command
IDbCommand cmd=conn.CreateCommand();
cmd.Text="select * from author";
// Data Adapter
DataSet ds=new DataSet();
IDbDataAdapter adapter=ProviderFactory.CreateDataAdapter(cmd);
adapter.Fill(ds, "Table1");
</pre>
<p>Creating a DataAdapter and filling a DataSet. <br>
The super lazy method for people like me.
<pre>
// Create Connection
IDbConnection conn =
ProviderFactory.CreateConnectionFromConfig("TdsPubsConnStr");
// Data Adapter
DataSet ds=DataTools.FillDataSet(conn, "select * from author");
</pre>
<p>Here's some sample code on displaying a list <br>
of configured ADO.NET providers:
<pre>
Console.WriteLine("Configured Providers:");
foreach (Provider p in ProviderFactory.Providers)
Console.WriteLine(p.Description);
</pre>
<p>A Super lazy overload to the FillDataSet method (in <br>
DataTools.cs) that will fill a dataset in one line of code.
<pre>
DataSet ds=DataTools.FillDataSet("PubsConnStr", "select * from authors");
</pre>
** About Configuration Files
<p>Information about <a href="http://msdn.microsoft.com/library/en-us/vbcon/html/vboriintroductiontoapplicationsettingstorage.asp?frame=true">app.config</a> files
can be found at <a href="http://msdn.microsoft.com/">MSDN</a>.
<p>See the mcs/class/Mono.Data/app.config for sample configuration file in<br>
mcs source. Basically, if your application is named blah.exe, <br>
you would create an app.config file named blah.exe.config
<p>Here's a sample app.config file showing the provider <br>
declarations along with sample connection strings:
<pre>
&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;configuration&gt;
&lt;configSections&gt;
&lt;sectionGroup name="mono.data"&gt;
&lt;section name="providers" type="Mono.Data.ProviderSectionHandler,Mono.Data" /&gt;
&lt;/sectionGroup&gt;
&lt;/configSections&gt;
&lt;appSettings&gt;
&lt;add key="PubsConnStr" value="factory=System.Data.SqlClient;server=speedy;database=pubs;uid=sa;pwd=" /&gt;
&lt;/appSettings&gt;
&lt;mono.data&gt;
&lt;providers&gt;
&lt;provider name="System.Data.SqlClient" connection="System.Data.SqlClient.SqlConnection" adapter="System.Data.SqlClient.SqlDataAdapter" assembly="System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/&gt;
&lt;provider name="System.Data.OleDb" connection="System.Data.OleDb.OleDbConnection" adapter="System.Data.OleDb.OleDbDataAdapter" assembly="System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/&gt;
&lt;provider name="System.Data.Odbc" connection="System.Data.Odbc.OdbcConnection" adapter="System.Data.OleDb.OdbcDataAdapter" assembly="System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/&gt;
&lt;provider name="Mono.Data.TdsClient" connection="Mono.Data.TdsClient.TdsConnection" adapter="Mono.Data.TdsClient.TdsDataAdapter" assembly="Mono.Data.TdsClient" /&gt;
&lt;provider name="Mono.Data.MySql" connection="Mono.Data.MySql.MySqlConnection" adapter="Mono.Data.MySql.MySqlDataAdapter" assembly="Mono.Data.MySql" /&gt;
&lt;provider name="Mono.Data.PostgreSqlClient" connection="Mono.Data.PostgreSqlClient.PgSqlConnection" adapter="Mono.Data.PostgreSqlClient.PgSqlDataAdapter" assembly="Mono.Data.PostgreSqlClient" /&gt;
&lt;provider name="Mono.Data.SqliteClient" connection="Mono.Data.SqliteClient.SqliteConnection" adapter="Mono.Data.SqliteClient.SqliteDataAdapter" assembly="Mono.Data.SqliteClient" /&gt;
&lt;provider name="Mono.Data.SybaseClient" connection="Mono.Data.SybaseClient.SybaseConnection" adapter="Mono.Data.SybaseClient.SybaseDataAdapter" assembly="Mono.Data.SybaseClient" /&gt;
&lt;/providers&gt;
&lt;/mono.data&gt;
&lt;/configuration&gt;
</pre>
+141
View File
@@ -0,0 +1,141 @@
* Screenshots
** Mono Debugger
Some shots of the <a href="jit-debug.html">Mono Debugger</a>
<table border=1>
<tr>
<td>
<a href="images/Screenshot-Debugger-1.png"><img src="images/Screenshot-Debugger-1-thumb.png"></a>
</td>
</tr>
<tr>
Debugger showing the source code view.
</tr>
</table>
<table>
<tr>
<td>
<a href="images/Screenshot-Debugger-2.png"><img src="images/Screenshot-Debugger-2-thumb.png"></a>
</td>
</tr>
<tr>
Debugger showing the CPU view.
</tr>
</table>
** Mono Documentation Browser
The Mono Documentation Browser is available from <a
href="anoncvs.html">CVS</a>, module `monodoc'.
<table border=1>
<tr>
<td>
<a href="images/Screenshot-B2.png"><img src="images/Screenshot-B2-thumb.png"></a>
</td>
</tr>
<tr>
Mono Documentation Browser rendering a method description.
</tr>
</table>
<table>
<tr>
<td>
<a href="images/Screenshot-MethodSummary.png"><img src="images/Screenshot-MethodSummary-thumb.png"></a>
</td>
</tr>
<tr>
Mono Documentation Browser rendering the class method summary
</tr>
</table>
** Mono Basic
The Mono Basic compiler ships with the Mono distribution.
<table border=1>
<tr>
<td>
<a href="images/gtk-vb.png"><img src="images/gtk-vb-thumb.png"></a>
</td>
</tr>
<tr>
Mono Basic running a sample Gtk# application.
</tr>
</table>
** Platano Media Player
Alp's <a href="http://www.atoker.com/platano/">Platano</a>
Media Player is written with Gtk# (with GStreamer support):
<table border=1>
<tr>
<td>
<img src="images/platano_s.png"></a>
</td>
</tr>
<tr>
Platano startup.
</tr>
</table>
<table>
<tr>
<td>
<img src="images/platano-playing_s.png">
</td>
</tr>
<tr>
Platano playing the <a
href="http://developer.ximian.com/projects/third_party/codemonkey/index.html">Code
Monkey At Work</a> video.
</tr>
</table>
** GSIRC
Alp's <a href="http://www.atoker.com/gsirc/">GSIRC</a>
Gtk-Sharp IRC written with Gtk#
<table border=1>
<tr>
<td>
<a href="http://go-mono.com/images/gsirc-0.2a_overview.jpg"><img src="images/gsirc-0.2a_overview-thumb.jpg"></a>
</td>
</tr>
<tr>
GSIRC is shown with the preferences dialog and chatting on some channels (rooms).
</tr>
</table>
** SQL# For GTK#
Daniel Morgan's SQL query tool that runs on Mono on Linux and Windows. It is
written in C# and allows you to connect to various Mono ADO.NET providers and
enter SQL commands.
<table border=1>
<tr>
<td>
<img src="http://go-mono.com/images/sqlsharp.png"></a>
</td>
</tr>
<tr>
SQL# For GTK# is shown retrieving data from a Microsoft SQL Server 2000 database.
</tr>
</table>
** SkyNET
SkyNET is written in C# and uses GTK# for displaying a star chart.
<table border=1>
<tr>
<td>
<img src="http://go-mono.com/images/skynet.png"></a>
</td>
</tr>
</table>
+74 -7
View File
@@ -18,7 +18,12 @@
<li>Uses TDS Protocol Version 7.0</li>
<li>Does not support trusted connections</li>
<li>Bugs with Mono or the data provider should be reported
in Mono's Bugzilla <a href="http://bugzilla.ximian.com/">here</a>. If you
do not have Bugzilla user account, it is free
and easy to
create one <a href="http://bugzilla.ximian.com/createaccount.cgi">here</a>.</li>
</ul>
@@ -55,14 +60,20 @@
<li>Uses TDS Protocol Version 7.0</li>
<li><a href="http://www.go-mono.com/tds-providers.html">Design of the Microsoft SQL Server, Sybase, and TDS Providers in Mono</a></li>
<li>Works in the SQL# command-line and GTK# GUI version</li>
</ul>
** Action plan
<ul>
<li>Connection timeouts is being developed now.
<li>Needs more testing...
<li>Connection timeouts is being developed now</li>
<li>Needs more testing</li>
<li>Would like to figure out how to connect via Trusted_Connection or Integrated Security</li>
<li>Start work on TDS Protocol Version 8.0 support</li>
</ul>
@@ -78,9 +89,64 @@
</ul>
</li>
<li>If using Microsoft SQL Server 2000, make sure
you are using at least Service Pack 3 for Microsoft SQL Server 2000. If using
MSDE 2000, make sure you have the special Service Pack 3 for MSDE 2000.</li>
<li>For those that only have MSDE installed. You can change the authentication mode
from Windows Only Authentication to SQL Server and Windows Authentications (also knows as Mixed-mode authentication)
via the <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q322336&sd=tech#4">registry</a></li>. It is
the LoginMode you need to change. By default,
MSDE is installed with Windows Only Authentication. For SqlClient to work with MSDE, you will
need to change the setting.</a>
<li>If using MSDE, you might need to create a new user with password. Give
this user access to various databases in this MSDE instance. Also, for each
database, give this new user at least SELECT access to the various tables you want
to retrieve data from.</li>
<li>If you have Enterprise Manager, you can easily change the authentication mode
for both MSDE and Microsoft SQL Server. To change the authentication mode in
Enterprise Mananger, select the instance, right-click on it, and select properites.
The SQL Server properties dialog for that instance will pop up. Choose the Security
tab. Change the authentication from Windows Only to SQL Server and Windows. If
the instance of your database does not show up in Enterprise Manager, Register first
by selecting the Action menu and choosing New SQL Server Registration.</li>
<li>Located at mcs/class/System.Data/Test is a test for System.Data.SqlClient
named SqlTest.cs and you could use this as a basis for your test.</li>
<li>Mono's SqlClient does not support trusted connections
nor integrated security. You can not use this when connecting. You need
to explicitly use a User ID and Password
authenticated by SQL Server.</li>
<li>Has a connection string format:
<pre>
Server=hostname;Database=databaseName;User ID=userid;Password=password
</pre>
</li>
<li>The Server part can be used three ways:
<table border=1>
<tr>
<td><b>Server Definition</b></td> <td><b>Example</b></td>
</tr>
<tr>
<td>hostname</td> <td>Server=MYHOST</td>
</tr>
<tr>
<td>hostname,port</td> <td>Server=MYHOST,1433</td>
</tr>
<tr>
<td>hostname\\instance</td> <td>Server=MYHOST\\NETSDK</td>
</tr>
</table>
</li>
<li>C# Example:
<pre>
using System;
@@ -94,15 +160,16 @@
string connectionString =
"Server=localhost;" +
"Database=pubs;" +
"User ID=sa;" +
"Password=;";
"User ID=myuserid;" +
"Password=mypassword;";
IDbConnection dbcon;
dbcon = new SqlConnection(connectionString);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();
string sql =
"SELECT fname, lname " +
"FROM employee";
dbcmd.ConnectionString = sql;
dbcmd.CommandText = sql;
IDataReader reader = dbcmd.ExecuteReader();
while(reader.Read()) {
string FirstName = reader["fname"];
+37 -6
View File
@@ -1,13 +1,38 @@
* SQL Lite Data Provider
<ul>
<li>ADO.NET Data Provider for
the <a href"http://www.hwaci.com/sw/sqlite/">SQL Lite</a> which
is an embeddable SQL database engine</li>
<li>From the SQL Lite web page: SQLite is a C library that
implements an embeddable SQL database engine. Programs that link with
the SQLite library can have SQL database access without
running a separate RDBMS process. The distribution
comes with a standalone command-line access program (sqlite) that
can be used to administer an SQLite database and which serves
as an example of how to use the SQLite library. SQLite is not a client library
used to connect to a big database server. SQLite is the server. The SQLite
library reads and writes directly to and from the database files on disk.</li>
<li>SQL Lite can be downloaded
from <a href"http://www.hwaci.com/sw/sqlite/download.html">here</a>.
binaries exist for Linux and Windows. sqlite.dll on Windows
and sqlite.so on Linux. The source code is available too.</li>
<li>Exists in namespace and assembly Mono.Data.SqliteClient</li>
<li>Created by Vladimir Vukicevic</li>
<li><a href"http://www.hwaci.com/sw/sqlite/download.html">SQL Lite</a>
binaries exist for Linux and Windows. sqlite.dll on Windows
and sqlite.so on Linux.</li>
<li>Created by Vladimir Vukicevic so he could have a database of
thumbnail images for mPhoto. mPhoto is GUI application
for cataloging images. mPhoto runs on Mono
and uses <a href="http:www.go-mono.com/gtk-sharp.html">GTK#</a> for its GUI.</li>
<li>Bugs with Mono or the data provider should be reported
in Mono's Bugzilla <a href="http://bugzilla.ximian.com/">here</a>. If you
do not have Bugzilla user account, it is free
and easy to
create one <a href="http://bugzilla.ximian.com/createaccount.cgi">here</a>.</li>
</ul>
** Current Status
@@ -32,14 +57,19 @@
<ul>
<li>Have a working mcs and mono</li>
<li>Make sure Mono.Data.SqliteClient.dll was built and is installed
in the same place as the mono class libraries.</li>
<li>If you do not have <a href"http://www.hwaci.com/sw/sqlite/download.html">SQL Lite</a>,
download it. There are binaries for Windows and Linux.</li>
<li>There is a test named SqliteTest.cs found at mcs/class/Mono.Data.SqliteTest/Test</li>
<li>Has a connection string format of "URI=file:some/path". For example,
the connection string "URI=file:SqliteTest.db" will use the database file
named SqliteTest.db, if it does not exist, the file will be created.</li>
<li>C# Example:
<pre>
using System;
@@ -53,6 +83,7 @@
string connectionString = "URI=file:SqliteTest.db";
IDbConnection dbcon;
dbcon = new MySQLConnection(connectionString);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();
// requires a table to be created named employee
// with columns firstname and lastname
@@ -63,7 +94,7 @@
string sql =
"SELECT firstname, lastname " +
"FROM employee";
dbcmd.ConnectionString = sql;
dbcmd.CommandText = sql;
IDataReader reader = dbcmd.ExecuteReader();
while(reader.Read()) {
string FirstName = reader[0];
+24 -3
View File
@@ -19,6 +19,14 @@
<li>Uses TDS Protocol Version 5.0</li>
<li>Does not support trusted connections</li>
<li>Bugs with Mono or the data provider should be reported
in Mono's Bugzilla <a href="http://bugzilla.ximian.com/">here</a>. If you
do not have Bugzilla user account, it is free
and easy to
create one <a href="http://bugzilla.ximian.com/createaccount.cgi">here</a>.</li>
</ul>
** Current Status
@@ -65,6 +73,18 @@
<li>Located at mcs/class/System.Data/Test is a test for System.Data.SqlClient
named SqlTest.cs and you could use this as a basis for your test.</li>
<li>Has a connection string format:
<pre>
Server=hostname;Database=databaseName;User ID=userid;Password=password
</pre>
</li>
<li>The Server part can be used two ways:
<ul>
<li>hostname - "Server=MYHOST"</li>
<li>hostname,port - "Server=MYHOST,1533"</li>
</ul>
</li>
<li>C# Example:
<pre>
using System;
@@ -78,15 +98,16 @@
string connectionString =
"Server=localhost;" +
"Database=pubs;" +
"User ID=sa;" +
"Password=;";
"User ID=myuserid;" +
"Password=mypassword;";
IDbConnection dbcon;
dbcon = new SybaseConnection(connectionString);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();
string sql =
"SELECT fname, lname " +
"FROM employee";
dbcmd.ConnectionString = sql;
dbcmd.CommandText = sql;
IDataReader reader = dbcmd.ExecuteReader();
while(reader.Read()) {
string FirstName = reader["fname"];
+25 -3
View File
@@ -19,6 +19,13 @@
<li>Uses TDS Protocol Version 4.2 by default</li>
<li>Does not support trusted connections</li>
<li>Bugs with Mono or the data provider should be reported
in Mono's Bugzilla <a href="http://bugzilla.ximian.com/">here</a>. If you
do not have Bugzilla user account, it is free
and easy to
create one <a href="http://bugzilla.ximian.com/createaccount.cgi">here</a>.</li>
</ul>
** Current Status
@@ -65,10 +72,24 @@
<li><a href="http://www.sybase.com/downloads">Sybase</a></li>
</ul>
</li>
<li>If using Microsoft SQL Server 2000, make sure
you are using at least Service Pack 3 for Microsoft SQL Server 2000</li>
<li>Located at mcs/class/System.Data/Test is a test for System.Data.SqlClient
named SqlTest.cs and you could use this as a basis for your test.</li>
<li>Has a connection string format:
<pre>
Server=hostname;Database=databaseName;User ID=userid;Password=password
</pre>
</li>
<li>The Server part can be used two ways:
<ul>
<li>hostname - "Server=MYHOST"</li>
<li>hostname,port - "Server=MYHOST,1533"</li>
</ul>
</li>
<li>C# Example:
<pre>
using System;
@@ -82,15 +103,16 @@
string connectionString =
"Server=localhost;" +
"Database=pubs;" +
"User ID=sa;" +
"Password=;";
"User ID=myuserid;" +
"Password=mypassword;";
IDbConnection dbcon;
dbcon = new TdsConnection(connectionString);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();
string sql =
"SELECT fname, lname " +
"FROM employee";
dbcmd.ConnectionString = sql;
dbcmd.CommandText = sql;
IDataReader reader = dbcmd.ExecuteReader();
while(reader.Read()) {
string FirstName = reader["fname"];
+5
View File
@@ -1,5 +1,8 @@
0,Home,index.html,index.src
1,FAQ,faq.html,faq.src
1,News archive,http://monoevo.sf.net/mwn/archives.html
1,Screenshots,screenshots.html,screenshots.src
1,Other sites,other.html,other.src
0,Mono,rationale.html,rationale.src
1,Runtime,runtime.html,runtime.src
2,Embedding,embedded-api.html,embedded-api.src
@@ -33,6 +36,7 @@
1,Debugging,jit-debug.html,jit-debug.src
0,Plans,plans.html,plans.src
1,ADO.NET,ado-net.html,ado-net.src
2,ProviderFactory,provider-factory.html,provider-factory.src
2,Firebird Interbase,firebird.html,firebird.src
2,IBM DB2,ibmdb2.html,ibmdb2.src
2,Microsft SQL Server,sqlclient.html,sqlclient.src
@@ -60,4 +64,5 @@
1,EnterpriseServices,class-status-System.EnterpriseServices.html,class-status-System.EnterpriseServices.src,cm/cormissing.css,cm/cormissing.js
1,Formatters.Soap,class-status-System.Runtime.Serialization.Formatters.Soap.html,class-status-System.Runtime.Serialization.Formatters.Soap.src,cm/cormissing.css,cm/cormissing.js
1,Cscompmgd,class-status-Cscompmgd.html,class-status-Cscompmgd.src,cm/cormissing.css,cm/cormissing.js
1,System.Security,class-status-System.Security.html,class-status-System.Security.src,cm/cormissing.css,cm/cormissing.js
0,Contact,contact.html,contact.src
+42 -38
View File
@@ -5,8 +5,7 @@ CORCOMPARE=../../../mcs/tools/corcompare
OBJECTS= \
deploy/ado-net.html \
deploy/firebird.html \
deploy/ibmdb2.html \
deploy/provider-factory.html \
deploy/mysql.html \
deploy/odbc.html \
deploy/oledb.html \
@@ -20,6 +19,44 @@ OBJECTS= \
deploy/asp-net.html \
deploy/books.html \
deploy/contributing.html \
deploy/contact.html \
deploy/c-sharp.html \
deploy/ccvs.html \
deploy/documentation.html \
deploy/download.html \
deploy/crypto.html \
deploy/embedded-api.html \
deploy/faq.html \
deploy/firebird.html \
deploy/gcc-frontend.html \
deploy/gtk-sharp.html \
deploy/hackers.html \
deploy/ideas.html \
deploy/ibmdb2.html \
deploy/index.html \
deploy/java.html \
deploy/jit-debug.html \
deploy/languages.html \
deploy/mailing-lists.html \
deploy/mbas.html \
deploy/mono-beginning.html \
deploy/mono-contribution-howto.html \
deploy/monodoc-xml.html \
deploy/other.html \
deploy/papers.html \
deploy/passport.html \
deploy/plans.html \
deploy/porting.html \
deploy/ppc.html \
deploy/rationale.html \
deploy/resources.html \
deploy/roadmap.html \
deploy/runtime.html \
deploy/screenshots.html \
deploy/status.html \
deploy/testing.html \
deploy/tools.html \
deploy/winforms.html \
deploy/class-status.html \
deploy/class-status-corlib.html \
deploy/class-status-System.html \
@@ -31,45 +68,12 @@ OBJECTS= \
deploy/class-status-Microsoft.VisualBasic.html \
deploy/class-status-System.EnterpriseServices.html \
deploy/class-status-System.Runtime.Serialization.Formatters.Soap.html \
deploy/class-status-System.Security.html \
deploy/class-status-System.Windows.Forms.html \
deploy/class-status-Cscompmgd.html \
deploy/class-library.html \
deploy/classlib-doc.html \
deploy/contact.html \
deploy/c-sharp.html \
deploy/mbas.html \
deploy/ccvs.html \
deploy/documentation.html \
deploy/download.html \
deploy/crypto.html \
deploy/embedded-api.html \
deploy/faq.html \
deploy/gcc-frontend.html \
deploy/hackers.html \
deploy/index.html \
deploy/ideas.html \
deploy/java.html \
deploy/jit-debug.html \
deploy/jit-debug-sample.html \
deploy/jit-debug-sample2.html \
deploy/languages.html \
deploy/mailing-lists.html \
deploy/mono-beginning.html \
deploy/mono-contribution-howto.html \
deploy/monodoc-xml.html \
deploy/papers.html \
deploy/passport.html \
deploy/plans.html \
deploy/porting.html \
deploy/ppc.html \
deploy/rationale.html \
deploy/resources.html \
deploy/roadmap.html \
deploy/runtime.html \
deploy/status.html \
deploy/testing.html \
deploy/tools.html \
deploy/winforms.html
deploy/classlib-doc.html
#2,Configuration.Install,class-status-System.Configuration.Install.html,class-status-System.Configuration.Install.src,cm/cormissing.css,cm/cormissing.js
#2,Runtime.Remoting,class-status-System.Runtime.Remoting.html,class-status-System.Runtime.Remoting.src,cm/cormissing.css,cm/cormissing.js
+1 -1
View File
@@ -8,7 +8,7 @@
<!--
body { font-family: "trebuchet ms", lucida, verdana, helvetica;
background-attachment: fixed; }
}
body, td, table { font-family: "trebuchet ms", lucida, verdana, helvetica;
font-size: 14px; }
+9
View File
@@ -225,6 +225,15 @@
It may not be possible to manage exceptions in that case,
though. I need to think more about it.
** Threading issues
If your application creates threads on its own, and you want them to
be able to call code into the CIL universe with Mono, you have to
register the thread with Mono before issuing the call.
To do so, call the mono_thread_attach() function before you execute
any managed code from the thread
* Samples
See the sample programs inmono/sample/embed for examples of
+42
View File
@@ -0,0 +1,42 @@
.\"
.\" cert2spc manual page.
.\" Copyright 2002, 2003 Motus Technologies
.\" Author:
.\" Sebastien Pouliot ([email protected])
.\"
.TH Mono "cert2spc"
.SH NAME
cert2spc \- Transform multiple X.509 certificates to a Software
Publisher Certificate
.SH SYNOPSIS
.PP
.B cert2spc certificate|crl [certificate|crl ...] outputfile.spc
.SH DESCRIPTION
Combine a list of X.509 certificates or X.509 CRL (Certificate
Revocation List) into a Software Publisher Certificate (PKCS#7
file). The SPC file is required for signing a PE file (like an
assembly) using signcode.
.SH PARAMETERS
.TP
.I "certificate"
One (or more) X.509 certificate to add (space separated).
.TP
.I "crl"
One (or more) X.509 CRL to add (space separated).
.TP
.I "output.spc"
Software Publisher Certificate to output. If the specified file
exists it will be overwritten.
.SH AUTHOR
Written by Sebastien Pouliot
.SH COPYRIGHT
Copyright (C) 2002, 2003 Motus Technologies.
Released under BSD license.
.SH MAILING LISTS
Visit http://mail.ximian.com/mailman/mono-list for details.
.SH WEB SITE
Visit: http://www.go-mono.com for details
.SH SEE ALSO
.BR makecert(1), signcode(1)
+5
View File
@@ -136,6 +136,11 @@ Provides a search path to mono and mint where to look for library files.
Directories are separated by the platform path separator (colons on unix). Example:
.B /home/username/lib:/usr/local/mono/lib
.PP
.TP
.I "MONO_DISABLE_SHM"
If this variable is set, it disables the Windows I/O Emulation layer,
and handles (files, events, mutexes, pipes) will not be shared across
processes. This option is only available on Unix.
.SH FILES
On Unix assemblies are loaded from the installation lib directory. If you set
`prefix' to /usr, the assemblies will be located in /usr/lib. On
+45
View File
@@ -0,0 +1,45 @@
.\"
.\" secutil manual page.
.\" Copyright 2002, 2003 Motus Technologies
.\" Author:
.\" Sebastien Pouliot ([email protected])
.\"
.TH Mono "secutil"
.SH NAME
secutil \- Extract X.509 certificates and strongnames from assemblies.
.SH SYNOPSIS
.PP
.B secutil [options] filename
.SH DESCRIPTION
Extract X.509 certificates and strongnames from assemblies in a
format that can be easily re-used in source code (C# or VB.NET syntax).
.SH OPTIONS
.TP
.I "-s assembly", "-strongname assembly"
Display strongname informations about the assembly.
.TP
.I "-x assembly", "-x509certificate assembly"
Display the X509 Authenticode certificate for the assembly.
.TP
.I "-a", "-array"
Display data in a decimal array (default).
.TP
.I "-v", "-vbmode"
Display data in a VisualBasic friendly format.
.TP
.I "-c", "-cmode"
Display data in a C/C++/C# friendly format (default).
.TP
.I "-help", "-h", "-?"
Display help about this tool.
.SH AUTHOR
Written by Sebastien Pouliot
.SH COPYRIGHT
Copyright (C) 2002, 2003 Motus Technologies.
Released under BSD license.
.SH MAILING LISTS
Visit http://mail.ximian.com/mailman/mono-list for details.
.SH WEB SITE
Visit: http://www.go-mono.com for details
.SH SEE ALSO
.BR sn(1), signcode(1)
+29 -5
View File
@@ -352,17 +352,19 @@ SqlClient MS SQL 7/2000 System.Data.SqlClient System.Data
Odbc ODBC System.Data.Odbc System.Data
External to System.Data
----------------------
-----------------------
MySql MySQL Mono.Data.MySql Mono.Data.MySql
Sqlite SQL Lite Mono.Data.SqliteClient Mono.Data.SqliteClient
Sybase Sybase Mono.Data.SybaseClient Mono.Data.SybaseClient
Tds TDS Generic Mono.Data.TdsClient Mono.Data.TdsClient
PostgreSql MonoPostgreSQL Mono.Data.PostgreSqlClient Mono.Data.PostgreSqlClient
PostgreSql M PostgreSQL Mono.Data.PostgreSqlClient Mono.Data.PostgreSqlClient
DB2 IBM DB2 Mono.Data.DB2Client Mono.Data.DB2Client
Oracle Oracle 8i System.Data.OracleClient System.Data.OracleClient
External to Mono
----------------
Npgsql PostgreSQL.NET Npgsql Npgsql
Npgsql NetPostgreSQL Npgsql Npgsql
MySQLNet ByteFX MySQL ByteFX.Data.MySQL ByteFX.Data
.fi
@@ -419,10 +421,32 @@ which connects to a PostgreSQL database:
Provider=PostgreSQL;Addr=127.0.0.1;Database=rodrigo
Oracle via System.Data.OracleClient
Data Source=testdb;User ID=scott;Password=tiger
IBM DB2 Universal Database via Mono.Data.DB2Client
DSN=sample;User ID=db2admin;Password=mysecret
Npgsql (.NET PostgreSQL) from
http://gborg.postgresql.org/project/npgsql/projdisplay.php
Server=localhost;Database=test;User ID=postgres;Password=fun2db
MySQLNet (ByteFX MySQL) from
http://sourceforge.net/projects/mysqlnet/
Server=localhost;Database=test;User ID=mysql;Password=
.fi
.SH DEBUGGING SUPPORT
No debugging support.
.SH TRACING SUPPORT
No support for tracing right now.
.SH AUTHORS
The Mono SQL# Tool was written
.nf
+1
View File
@@ -16,3 +16,4 @@ Class Libraries:
John Barnette ([email protected])
Daniel Morgan <[email protected]>
Sebastien Pouliot <[email protected]>
Per Arneng <[email protected]>
+12
View File
@@ -1,3 +1,15 @@
2003-02-16 Martin Baulig <[email protected]>
* docs/compiler: Added a few works about the new `Location' code.
2003-02-15 Nick Drochak <[email protected]>
* makefile.gnu: Add testcorlib target to run just the corlib unit tests.
2003-02-10 Nick Drochak <[email protected]>
* makefile: Add testcorlib target to run just the corlib unit tests.
2003-01-16 Nick Drochak <[email protected]>
* makefile.gnu: Add corlib target to just build that.
+27
View File
@@ -1,3 +1,30 @@
2003-02-22 Martin Baulig <[email protected]>
* library.make: Pass `MCS_FLAGS' to MCS.
2003-02-15 Zoltan Varga <[email protected]>
* makefile.gnu (test): do not install .dbg files since mcs no longer
generates them.
2003-02-13 Tim Coleman <[email protected]>
* makefile.gnu: Add System.Data.OracleClient to linux build.
2003-02-10 Nick Drochak <[email protected]>
* library.build:
* makefile: add testcorlib target to run unit tests just for corlib.
2003-02-05 Sebastien Pouliot <[email protected]>
* library.build: added Mono.Security.Win32 to build, test and
clean. There's no makefile.gnu for this assembly as it is
specific to Win32.
2003-01-23 Nick Drochak <[email protected]>
* makefile: install the .dbg files too so the debugger can use them.
2003-01-17 Sebastien Pouliot <[email protected]>
* library.build: added System.Security to build, test and clean.
@@ -1,3 +1,7 @@
2003-02-23 Jackson Harper <[email protected]>
* CompilerError.cs: Use fields not properties, and remove unneeded finalizer
2002-12-15 Jackson Harper <[email protected]>
* CompilerError.cs ErrorLevel.cs: Moved ErrorLevel enum into its own file
@@ -13,64 +13,23 @@ namespace Microsoft.CSharp {
public class CompilerError {
private ErrorLevel level = ErrorLevel.None;
private string message = null;
private string file = null;
private int number = 0;
private int column = 0;
private int line = 0;
public ErrorLevel ErrorLevel;
public string ErrorMessage;
public string SourceFile;
public int ErrorNumber;
public int SourceColumn;
public int SourceLine;
public CompilerError()
public CompilerError ()
{
ErrorLevel = ErrorLevel.None;
ErrorMessage = String.Empty;
SourceFile = String.Empty;
ErrorNumber = 0;
SourceColumn = 0;
SourceLine = 0;
}
~CompilerError()
{
message = null;
file = null;
}
//
// Public Properties
//
public ErrorLevel ErrorLevel {
get { return level; }
set { level = value; }
}
public string ErrorMessage {
get {
return (null == message ? String.Empty : message);
}
set {
message = value;
}
}
public int ErrorNumber {
get { return number; }
set { number = value; }
}
public int SourceColumn {
get { return column; }
set { column = value; }
}
public string SourceFile {
get {
return (null == file ? String.Empty : file);
}
set { file = value; }
}
public int SourceLine {
get { return line; }
set { line = value; }
}
//
// Public Methods
//
@@ -92,6 +51,7 @@ namespace Microsoft.CSharp {
return builder.ToString ();
}
//
// Private Properties
//
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+3
View File
@@ -0,0 +1,3 @@
2002-02-19 Carsten Hess
* Created
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- NAnt build file for Microsoft.VisualC.dll -->
<project name="System" default="build">
<property name="debug" value="false"/>
<target name="build">
<mkdir dir="../lib"/>
<csc target="library" output="../lib/Microsoft.VisualC.dll" debug="${debug}">
<arg value="/nowarn:1595"/>
<arg value="/noconfig"/> <!-- don't reference ms assemblies -->
<!-- cor compare dies with these currently -->
<!--<arg value="/nostdlib"/>--> <!-- don't reference mscorlib -->
<!--<arg value="/lib:../lib/"/>-->
<!--<arg value="/r:..\lib\corlib.dll"/>-->
<!--<arg value="/r:..\lib\System.dll"/>-->
<arg value="/r:System.dll"/>
<sources>
<includes name="**/*.cs"/>
<excludes name="Test/**"/>
</sources>
<references>
<!--<includes name="../lib/corlib.dll"/>-->
<!--<includes name="../lib/System.dll"/>-->
</references>
</csc>
<copy file="../lib/Microsoft.VisualC.dll" tofile="Test/Microsoft.VisualC.dll"/>
</target>
<target name="test" depends="build">
<nant basedir="Test" target="test"/>
</target>
<target name="clean">
<nant basedir="Test" target="clean"/>
<delete file="../lib/Microsoft.VisualC.dll" failonerror="false"/>
</target>
</project>
@@ -0,0 +1,8 @@
using System;
namespace Microsoft.VisualC
{
public sealed class DebugInfoInPDBAttribute:System.Attribute
{
}
}
@@ -0,0 +1,8 @@
using System;
namespace Microsoft.VisualC
{
public sealed class DecoratedNameAttribute:System.Attribute
{
}
}
@@ -0,0 +1,8 @@
using System;
namespace Microsoft.VisualC
{
public sealed class IsCXXReferenceModifier:System.Attribute
{
}
}
@@ -0,0 +1,8 @@
using System;
namespace Microsoft.VisualC
{
public sealed class IsConstModifier:System.Attribute
{
}
}
@@ -0,0 +1,8 @@
using System;
namespace Microsoft.VisualC
{
public sealed class IsLongModifier:System.Attribute
{
}
}
@@ -0,0 +1,8 @@
using System;
namespace Microsoft.VisualC
{
public sealed class IsSignedModifier:System.Attribute
{
}
}
@@ -0,0 +1,8 @@
using System;
namespace Microsoft.VisualC
{
public sealed class IsVolatileModifier:System.Attribute
{
}
}
@@ -0,0 +1,9 @@
using System;
namespace Microsoft.VisualC
{
public sealed class MiscellaneousBitsAttribute:System.Attribute
{
}
}
@@ -0,0 +1,8 @@
using System;
namespace Microsoft.VisualC
{
public sealed class NeedsCopyConstructorModifier:System.Attribute
{
}
}
@@ -0,0 +1,8 @@
using System;
namespace Microsoft.VisualC
{
public sealed class NoSignSpecifiedModifier:System.Attribute
{
}
}
+10
View File
@@ -0,0 +1,10 @@
Microsoft.VisualC/DebugInfoInPDBAttribute.cs
Microsoft.VisualC/DecoratedNameAttribute.cs
Microsoft.VisualC/IsCXXReferenceModifier.cs
Microsoft.VisualC/IsConstModifier.cs
Microsoft.VisualC/IsLongModifier.cs
Microsoft.VisualC/IsSignedModifier.cs
Microsoft.VisualC/IsVolatileModifier.cs
Microsoft.VisualC/MiscellaneousBitsAttribute.cs
Microsoft.VisualC/NeedsCopyConstructorModifier.cs
Microsoft.VisualC/NoSignSpecifiedModifier.cs
+13
View File
@@ -0,0 +1,13 @@
topdir = ../..
LIBRARY = $(topdir)/class/lib/Microsoft.VisualC.dll
LIB_LIST = list
LIB_FLAGS = -r corlib -r System
SOURCES_INCLUDE=*.cs
SOURCES_EXCLUDE=./Test*
export MONO_PATH_PREFIX = $(topdir)/class/lib:
include $(topdir)/class/library.make
+112
View File
@@ -1,3 +1,115 @@
2003-02-22 Martin Baulig <[email protected]>
* MonoSymbolTable.cs: Incremented version number.
2003-02-22 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile.FindMethod): Fixed a bug.
(MonoSymbolFile.MethodLookup): New method.
2003-02-18 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile.GetMethod): Added overloaded
version which takes a MethodBase.
2003-02-18 Martin Baulig <[email protected]>
* MonoSymbolTable.cs (MethodIndexEntry): New public struct.
* MonoSymbolFile.cs (MonoSymbolFile.GetMethodByToken): New method.
2003-02-18 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile.Assembly): New public property.
* MonoSymbolTable.cs (MethodEntry.MethodBase): New public property.
(MethodEntry.LocalTypes): New public variable.
2003-02-18 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MethodEntry.ThisTypeIndex): Renamed to
ClassTypeIndex; provide this for all methods so we can get the
class of static methods.
2003-02-10 Nick Drochak <[email protected]>
* Mono.CSharp.Debugger.build: passing the /r using an 'arg' node works.
The <include> node wasn't getting to the compiler. This fixes build
breakage on cygwin.
* MonoSymbolFile.cs: Qualify which Min method. Fixes build breakage
on cygwin.
2003-02-09 Martin Baulig <[email protected]>
* MonoSymbolWriter.cs (MonoSymbolWriter.ctor): We don't need the
`mbuilder_array' anymore.
2003-02-09 Martin Baulig <[email protected]>
* MonoSymbolWriter.cs (SourceFile): Derive from SourceFileEntry.
(SourceBlock): We don't need source lines here.
(SourceMethod): We're always constructed with source info.
* MonoSymbolTable.cs: Added support for namespaces.
(NamespaceEntry): New struct.
(SourceFileEntry.DefineNamespace): New method.
(MethodEntry.BuildLineNumberTable): The table is already sorted,
so we don't need to do this here.
2003-02-09 Martin Baulig <[email protected]>
* IMonoSymbolWriter.cs: Ooops, I forgot to remove this.
2003-02-08 Martin Baulig <[email protected]>
* MonoSymbolDocumentWriter.cs: Removed.
* MonoSymbolWriter.cs (SourceFile): Implement ISymbolDocumentWriter.
2003-02-08 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (GetMethodSource): New public method.
(FindMethod): Return the correct index.
2003-02-07 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (Methods, Sources): New public properties.
2003-02-07 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): New public
static method, returns null (without throwing an exception) if the
assembly doesn't have any debugging info.
2003-02-07 Martin Baulig <[email protected]>
* MonoSymbolWriter.cs (MonoSymbolWriter.Initialize): Removed the
custom initialization function.
* MonoSymbolTableWriter.cs: Removed; the code is now in
MonoSymbolFile.cs and MonoSymbolWriter.cs.
2003-02-07 Martin Baulig <[email protected]>
* MonoSymbolFile.cs: The symbol file is now a resource in the
assembly instead of a separate file.
* MonoSymbolTable.cs: Did a few more cleanups, sort the line
number table and remove duplicate line numbers.
2003-02-05 Martin Baulig <[email protected]>
Modified the symbol file format to speed up method looks by name
and cleaned this up a lot.
* MonoSymbolFile.cs: New public class. This is now a public class
and writes and reads the symbol file.
* IMonoBinaryReader.cs: Removed.
* MonoSymbolTable.cs: Set version number to 29.
2003-01-17 Zoltan Varga <[email protected]>
* MonoSymbolWriter.cs (OpenMethod): Make it work on constructors.
@@ -1,26 +0,0 @@
//
// System.Diagnostics.SymbolStore/IMonoBinaryReader.cs
//
// Author:
// Martin Baulig ([email protected])
//
// (C) 2002 Ximian, Inc. http://www.ximian.com
//
using System;
namespace Mono.CSharp.Debugger
{
public interface IMonoBinaryReader
{
long Position {
get; set;
}
int ReadInt32 ();
long ReadInt64 ();
byte[] ReadBuffer (int size);
}
}
@@ -1,47 +0,0 @@
//
// System.Diagnostics.SymbolStore/IMonoSymbolWriter.cs
//
// Author:
// Martin Baulig ([email protected])
//
// This interface is derived from System.Diagnostics.SymbolStore.ISymbolWriter.
//
// (C) 2002 Ximian, Inc. http://www.ximian.com
//
using System;
using System.Reflection;
using System.Reflection.Emit;
using System.Collections;
using System.IO;
namespace Mono.CSharp.Debugger
{
public interface IMonoSymbolWriter : System.Diagnostics.SymbolStore.ISymbolWriter
{
void Initialize (string assembly_filename, string filename, string[] args);
}
internal enum SourceOffsetType
{
OFFSET_NONE,
OFFSET_IL,
OFFSET_LOCAL,
OFFSET_PARAMETER
}
internal interface ITypeHandle
{
string Name {
get;
}
Type Type {
get;
}
int Token {
get;
}
}
}
@@ -9,13 +9,11 @@
<csc target="library" output="../lib/Mono.CSharp.Debugger.dll" debug="${debug}">
<arg value="/nowarn:1595"/>
<arg value="/unsafe"/>
<arg value="/r:../lib/corlib.dll"/>
<sources>
<includes name="**/*.cs"/>
<excludes name="Test/**"/>
</sources>
<references>
<includes name="../lib/corlib.dll"/>
</references>
</csc>
</target>
<target name="clean">
@@ -1,60 +0,0 @@
//
// System.Diagnostics.SymbolStore/MonoSymbolDocumentWriter.cs
//
// Author:
// Martin Baulig ([email protected])
//
// This is the default implementation of the
// System.Diagnostics.SymbolStore.ISymbolDocumentWriter interface.
//
// (C) 2002 Ximian, Inc. http://www.ximian.com
//
using System;
using System.Reflection;
using System.Reflection.Emit;
using System.Diagnostics.SymbolStore;
using System.IO;
namespace Mono.CSharp.Debugger
{
public class MonoSymbolDocumentWriter : ISymbolDocumentWriter
{
protected string url;
//
// Constructor
//
public MonoSymbolDocumentWriter (string url)
{
this.url = url;
}
public string FileName {
get {
return url;
}
}
//
// Interface ISymbolDocumentWriter
//
//
// MonoSymbolWriter creates a DWARF 2 debugging file and DWARF operates
// on file names, but has no way to include a whole source file in the
// symbol file.
//
public void SetCheckSum (Guid algorithmId, byte[] checkSum)
{
throw new NotSupportedException ();
}
public void SetSource (byte[] source)
{
throw new NotSupportedException ();
}
}
}
@@ -0,0 +1,607 @@
//
// System.Diagnostics.SymbolStore/MonoSymbolFile.cs
//
// Author:
// Martin Baulig ([email protected])
//
// (C) 2003 Ximian, Inc. http://www.ximian.com
//
using System;
using System.Reflection;
using System.Reflection.Emit;
using System.Collections;
using System.Text;
using System.IO;
namespace Mono.CSharp.Debugger
{
public class MonoSymbolFileException : Exception
{
public MonoSymbolFileException ()
: base ()
{ }
public MonoSymbolFileException (string message, params object[] args)
: base (String.Format (message, args))
{ }
}
internal class MyMemoryStream : Stream
{
int length;
int real_length;
int position;
int chunk_size = 4096;
ArrayList chunks = new ArrayList ();
private struct Chunk {
public readonly int Offset;
public readonly int Length;
public byte[] Buffer;
public Chunk (int offset, int length)
{
this.Offset = offset;
this.Length = length;
this.Buffer = new Byte [length];
}
}
public override long Position {
get { return position; }
set {
if (value > length)
throw new ArgumentOutOfRangeException ();
position = (int) value;
}
}
public override long Length {
get { return length; }
}
public override bool CanRead {
get { return true; }
}
public override bool CanWrite {
get { return true; }
}
public override bool CanSeek {
get { return true; }
}
public override void SetLength (long new_length)
{
if (new_length < length)
throw new ArgumentException ();
while (new_length >= real_length) {
Chunk new_chunk = new Chunk (real_length, chunk_size);
chunks.Add (new_chunk);
real_length += chunk_size;
}
length = (int) new_length;
}
public override void Flush ()
{ }
public override long Seek (long offset, SeekOrigin origin)
{
int ref_point;
switch (origin) {
case SeekOrigin.Begin:
ref_point = 0;
break;
case SeekOrigin.Current:
ref_point = position;
break;
case SeekOrigin.End:
ref_point = length;
break;
default:
throw new ArgumentException ("Invalid SeekOrigin");
}
if ((ref_point + offset < 0) || (offset > real_length))
throw new ArgumentOutOfRangeException ();
position = ref_point + (int) offset;
return position;
}
Chunk FindChunk (int offset)
{
return (Chunk) chunks [offset / chunk_size];
}
public override int Read (byte[] buffer, int offset, int count)
{
int old_count = count;
while (count > 0) {
Chunk chunk = FindChunk (position);
int coffset = position - chunk.Offset;
int rest = chunk.Length - coffset;
int size = System.Math.Min (count, rest);
Array.Copy (chunk.Buffer, coffset, buffer, offset, size);
position += size;
offset += size;
count -= size;
}
return old_count;
}
public override void Write (byte[] buffer, int offset, int count)
{
if (position + count > length)
SetLength (position + count);
while (count > 0) {
Chunk chunk = FindChunk (position);
int coffset = position - chunk.Offset;
int rest = chunk.Length - coffset;
int size = System.Math.Min (count, rest);
Array.Copy (buffer, offset, chunk.Buffer, coffset, size);
position += size;
offset += size;
count -= size;
}
}
public byte[] GetContents ()
{
byte[] retval = new byte [length];
position = 0;
Read (retval, 0, length);
return retval;
}
}
public class MonoSymbolFile : IDisposable
{
ArrayList methods = new ArrayList ();
ArrayList sources = new ArrayList ();
Hashtable method_source_hash = new Hashtable ();
Hashtable type_hash = new Hashtable ();
OffsetTable ot;
int last_type_index;
int last_method_index;
int last_source_index;
int last_namespace_index;
public MonoSymbolFile ()
{ }
internal int AddSource (SourceFileEntry source)
{
sources.Add (source);
return ++last_source_index;
}
internal int DefineType (Type type)
{
if (type_hash.Contains (type))
return (int) type_hash [type];
int index = ++last_type_index;
type_hash.Add (type, index);
return index;
}
internal void AddMethod (MethodEntry entry)
{
methods.Add (entry);
}
internal int GetNextTypeIndex ()
{
return ++last_type_index;
}
internal int GetNextMethodIndex ()
{
return ++last_method_index;
}
internal int GetNextNamespaceIndex ()
{
return ++last_namespace_index;
}
internal void WriteString (BinaryWriter bw, string text)
{
byte[] data = Encoding.UTF8.GetBytes (text);
bw.Write ((int) data.Length);
bw.Write (data);
StringSize += data.Length;
}
internal string ReadString (int offset)
{
int old_pos = (int) reader.BaseStream.Position;
reader.BaseStream.Position = offset;
int length = reader.ReadInt32 ();
byte[] data = reader.ReadBytes (length);
string text = Encoding.UTF8.GetString (data);
reader.BaseStream.Position = old_pos;
return text;
}
void Write (BinaryWriter bw)
{
// Magic number and file version.
bw.Write (OffsetTable.Magic);
bw.Write (OffsetTable.Version);
//
// Offsets of file sections; we must write this after we're done
// writing the whole file, so we just reserve the space for it here.
//
long offset_table_offset = bw.BaseStream.Position;
ot.Write (bw);
//
// Write data sections.
//
ot.DataSectionOffset = (int) bw.BaseStream.Position;
foreach (SourceFileEntry source in sources)
source.WriteData (bw);
ot.DataSectionSize = (int) bw.BaseStream.Position - ot.DataSectionOffset;
//
// Write method table.
//
ot.MethodTableOffset = (int) bw.BaseStream.Position;
for (int i = 0; i < methods.Count; i++) {
MethodEntry entry = (MethodEntry) methods [i];
entry.WriteIndex (bw);
}
ot.MethodTableSize = (int) bw.BaseStream.Position - ot.MethodTableOffset;
//
// Write source table.
//
ot.SourceTableOffset = (int) bw.BaseStream.Position;
for (int i = 0; i < sources.Count; i++) {
SourceFileEntry source = (SourceFileEntry) sources [i];
source.Write (bw);
}
ot.SourceTableSize = (int) bw.BaseStream.Position - ot.SourceTableOffset;
//
// Fixup offset table.
//
ot.TypeCount = last_type_index;
ot.MethodCount = methods.Count;
ot.SourceCount = sources.Count;
//
// Write offset table.
//
ot.TotalFileSize = (int) bw.BaseStream.Position;
bw.Seek ((int) offset_table_offset, SeekOrigin.Begin);
ot.Write (bw);
bw.Seek (0, SeekOrigin.End);
}
public byte[] CreateSymbolFile ()
{
if (reader != null)
throw new InvalidOperationException ();
using (MyMemoryStream stream = new MyMemoryStream ()) {
Write (new BinaryWriter (stream));
Console.WriteLine ("WROTE SYMFILE: {0} sources, {1} methods, {2} types, " +
"{3} line numbers, {4} locals, {5} namespaces, " +
"{6} bytes of string data",
SourceCount, MethodCount, TypeCount, LineNumberCount,
LocalCount, NamespaceCount, StringSize);
Console.WriteLine (ot);
return stream.GetContents ();
}
}
Assembly assembly;
BinaryReader reader;
Hashtable method_hash;
Hashtable source_file_hash;
Hashtable method_token_hash;
Hashtable method_name_hash;
Hashtable method_full_name_hash;
Hashtable source_name_hash;
protected MonoSymbolFile (Assembly assembly, Stream stream)
{
this.assembly = assembly;
reader = new BinaryReader (stream);
try {
long magic = reader.ReadInt64 ();
long version = reader.ReadInt32 ();
if ((magic != OffsetTable.Magic) || (version != OffsetTable.Version))
throw new MonoSymbolFileException ();
ot = new OffsetTable (reader);
} catch {
throw new MonoSymbolFileException ();
}
method_hash = new Hashtable ();
source_file_hash = new Hashtable ();
}
public static MonoSymbolFile ReadSymbolFile (Assembly assembly)
{
Stream stream = assembly.GetManifestResourceStream ("MonoSymbolFile");
if (stream == null)
return null;
return new MonoSymbolFile (assembly, stream);
}
public Assembly Assembly {
get { return assembly; }
}
public int SourceCount {
get { return ot.SourceCount; }
}
public int MethodCount {
get { return ot.MethodCount; }
}
public int TypeCount {
get { return ot.TypeCount; }
}
public int NamespaceCount {
get { return last_namespace_index; }
}
internal int LineNumberCount = 0;
internal int LocalCount = 0;
internal int StringSize = 0;
public SourceFileEntry GetSourceFile (int index)
{
if ((index < 1) || (index > ot.SourceCount))
throw new ArgumentException ();
if (reader == null)
throw new InvalidOperationException ();
SourceFileEntry source = (SourceFileEntry) source_file_hash [index];
if (source != null)
return source;
reader.BaseStream.Position = ot.SourceTableOffset +
SourceFileEntry.Size * (index - 1);
source = new SourceFileEntry (this, reader);
source_file_hash.Add (index, source);
return source;
}
public SourceFileEntry[] Sources {
get {
if (reader == null)
throw new InvalidOperationException ();
SourceFileEntry[] retval = new SourceFileEntry [SourceCount];
for (int i = 0; i < SourceCount; i++)
retval [i] = GetSourceFile (i + 1);
return retval;
}
}
public MethodIndexEntry GetMethodIndexEntry (int index)
{
int old_pos = (int) reader.BaseStream.Position;
reader.BaseStream.Position = ot.MethodTableOffset +
MethodIndexEntry.Size * (index - 1);
MethodIndexEntry ie = new MethodIndexEntry (reader);
reader.BaseStream.Position = old_pos;
return ie;
}
public MethodEntry GetMethodByToken (int token)
{
if (reader == null)
throw new InvalidOperationException ();
if (method_token_hash == null) {
method_token_hash = new Hashtable ();
for (int i = 0; i < MethodCount; i++) {
MethodIndexEntry ie = GetMethodIndexEntry (i + 1);
method_token_hash.Add (ie.Token, i);
}
}
object value = method_token_hash [token];
if (value == null)
return null;
return GetMethod ((int) value);
}
public MethodEntry GetMethod (MethodBase method)
{
if (reader == null)
throw new InvalidOperationException ();
int token = assembly.MonoDebugger_GetMethodToken (method);
return GetMethodByToken (token);
}
public MethodEntry GetMethod (int index)
{
if ((index < 1) || (index > ot.MethodCount))
throw new ArgumentException ();
if (reader == null)
throw new InvalidOperationException ();
MethodEntry entry = (MethodEntry) method_hash [index];
if (entry != null)
return entry;
MethodIndexEntry ie = GetMethodIndexEntry (index);
reader.BaseStream.Position = ie.FileOffset;
entry = new MethodEntry (this, reader, index);
method_hash.Add (index, entry);
return entry;
}
public MethodEntry[] Methods {
get {
if (reader == null)
throw new InvalidOperationException ();
MethodEntry[] retval = new MethodEntry [MethodCount];
for (int i = 0; i < MethodCount; i++)
retval [i] = GetMethod (i + 1);
return retval;
}
}
public MethodSourceEntry GetMethodSource (int index)
{
if ((index < 1) || (index > ot.MethodCount))
throw new ArgumentException ();
if (reader == null)
throw new InvalidOperationException ();
object entry = method_source_hash [index];
if (entry != null)
return (MethodSourceEntry) entry;
MethodEntry method = GetMethod (index);
foreach (MethodSourceEntry source in method.SourceFile.Methods) {
if (source.Index == index) {
method_source_hash.Add (index, source);
return source;
}
}
throw new MonoSymbolFileException ("Internal error.");
}
public int FindMethod (string full_name)
{
if (reader == null)
throw new InvalidOperationException ();
if (method_full_name_hash == null) {
method_full_name_hash = new Hashtable ();
for (int i = 0; i < ot.MethodCount; i++) {
MethodIndexEntry ie = GetMethodIndexEntry (i + 1);
string name = ReadString (ie.FullNameOffset);
method_full_name_hash.Add (name, i + 1);
}
}
object value = method_full_name_hash [full_name];
if (value == null)
return -1;
return (int) value;
}
public int[] MethodLookup (string query)
{
if (reader == null)
throw new InvalidOperationException ();
ArrayList list;
if (method_name_hash == null) {
method_name_hash = new Hashtable ();
for (int i = 0; i < ot.MethodCount; i++) {
MethodIndexEntry ie = GetMethodIndexEntry (i + 1);
string full_name = ReadString (ie.FullNameOffset);
int pos = full_name.IndexOf ('(');
string name = full_name.Substring (0, pos);
list = method_name_hash [name] as ArrayList;
if (list == null) {
list = new ArrayList ();
method_name_hash.Add (name, list);
}
list.Add (i + 1);
}
}
list = method_name_hash [query] as ArrayList;
if (list == null)
return new int [0];
int[] retval = new int [list.Count];
list.CopyTo (retval, 0);
return retval;
}
public int FindSource (string file_name)
{
if (reader == null)
throw new InvalidOperationException ();
if (source_name_hash == null) {
source_name_hash = new Hashtable ();
for (int i = 0; i < ot.SourceCount; i++) {
SourceFileEntry source = GetSourceFile (i + 1);
source_name_hash.Add (source.FileName, i);
}
}
object value = source_name_hash [file_name];
if (value == null)
return -1;
return (int) value;
}
internal BinaryReader BinaryReader {
get {
if (reader == null)
throw new InvalidOperationException ();
return reader;
}
}
void IDisposable.Dispose ()
{
Dispose (true);
}
protected virtual void Dispose (bool disposing)
{
if (disposing) {
if (reader != null) {
reader.Close ();
reader = null;
}
}
}
}
}
+443 -173
View File
@@ -18,64 +18,55 @@ namespace Mono.CSharp.Debugger
{
public struct OffsetTable
{
public const int Version = 28;
public const int Version = 33;
public const long Magic = 0x45e82623fd7fa614;
public int total_file_size;
public int source_table_offset;
public int source_table_size;
public int method_count;
public int method_table_offset;
public int method_table_size;
public int line_number_table_offset;
public int line_number_table_size;
public int local_variable_table_offset;
public int local_variable_table_size;
public int source_file_table_offset;
public int source_file_table_size;
public int source_file_count;
public int type_count;
public int type_index_table_offset;
public int type_index_table_size;
public int TotalFileSize;
public int DataSectionOffset;
public int DataSectionSize;
public int SourceCount;
public int SourceTableOffset;
public int SourceTableSize;
public int MethodCount;
public int MethodTableOffset;
public int MethodTableSize;
public int TypeCount;
public OffsetTable (IMonoBinaryReader reader)
internal OffsetTable (BinaryReader reader)
{
total_file_size = reader.ReadInt32 ();
source_table_offset = reader.ReadInt32 ();
source_table_size = reader.ReadInt32 ();
method_count = reader.ReadInt32 ();
method_table_offset = reader.ReadInt32 ();
method_table_size = reader.ReadInt32 ();
line_number_table_offset = reader.ReadInt32 ();
line_number_table_size = reader.ReadInt32 ();
local_variable_table_offset = reader.ReadInt32 ();
local_variable_table_size = reader.ReadInt32 ();
source_file_table_offset = reader.ReadInt32 ();
source_file_table_size = reader.ReadInt32 ();
source_file_count = reader.ReadInt32 ();
type_count = reader.ReadInt32 ();
type_index_table_offset = reader.ReadInt32 ();
type_index_table_size = reader.ReadInt32 ();
TotalFileSize = reader.ReadInt32 ();
DataSectionOffset = reader.ReadInt32 ();
DataSectionSize = reader.ReadInt32 ();
SourceCount = reader.ReadInt32 ();
SourceTableOffset = reader.ReadInt32 ();
SourceTableSize = reader.ReadInt32 ();
MethodCount = reader.ReadInt32 ();
MethodTableOffset = reader.ReadInt32 ();
MethodTableSize = reader.ReadInt32 ();
TypeCount = reader.ReadInt32 ();
}
public void Write (BinaryWriter bw)
internal void Write (BinaryWriter bw)
{
bw.Write (total_file_size);
bw.Write (source_table_offset);
bw.Write (source_table_size);
bw.Write (method_count);
bw.Write (method_table_offset);
bw.Write (method_table_size);
bw.Write (line_number_table_offset);
bw.Write (line_number_table_size);
bw.Write (local_variable_table_offset);
bw.Write (local_variable_table_size);
bw.Write (source_file_table_offset);
bw.Write (source_file_table_size);
bw.Write (source_file_count);
bw.Write (type_count);
bw.Write (type_index_table_offset);
bw.Write (type_index_table_size);
bw.Write (TotalFileSize);
bw.Write (DataSectionOffset);
bw.Write (DataSectionSize);
bw.Write (SourceCount);
bw.Write (SourceTableOffset);
bw.Write (SourceTableSize);
bw.Write (MethodCount);
bw.Write (MethodTableOffset);
bw.Write (MethodTableSize);
bw.Write (TypeCount);
}
public override string ToString ()
{
return String.Format (
"OffsetTable [{0} - {1}:{2} - {3}:{4}:{5} - {6}:{7}:{8} - {9}]",
TotalFileSize, DataSectionOffset, DataSectionSize, SourceCount,
SourceTableOffset, SourceTableSize, MethodCount, MethodTableOffset,
MethodTableSize, TypeCount);
}
}
@@ -90,11 +81,9 @@ namespace Mono.CSharp.Debugger
this.Offset = offset;
}
internal LineNumberEntry (SourceLine line)
: this (line.Row, line.Offset)
{ }
public static LineNumberEntry Null = new LineNumberEntry (0, 0);
public LineNumberEntry (IMonoBinaryReader reader)
internal LineNumberEntry (BinaryReader reader)
{
Row = reader.ReadInt32 ();
Offset = reader.ReadInt32 ();
@@ -106,6 +95,41 @@ namespace Mono.CSharp.Debugger
bw.Write (Offset);
}
private class OffsetComparerClass : IComparer
{
public int Compare (object a, object b)
{
LineNumberEntry l1 = (LineNumberEntry) a;
LineNumberEntry l2 = (LineNumberEntry) b;
if (l1.Offset < l2.Offset)
return -1;
else if (l1.Offset > l2.Offset)
return 1;
else
return 0;
}
}
private class RowComparerClass : IComparer
{
public int Compare (object a, object b)
{
LineNumberEntry l1 = (LineNumberEntry) a;
LineNumberEntry l2 = (LineNumberEntry) b;
if (l1.Row < l2.Row)
return -1;
else if (l1.Row > l2.Row)
return 1;
else
return 0;
}
}
public static readonly IComparer OffsetComparer = new OffsetComparerClass ();
public static readonly IComparer RowComparer = new RowComparerClass ();
public override string ToString ()
{
return String.Format ("[Line {0}:{1}]", Row, Offset);
@@ -125,21 +149,19 @@ namespace Mono.CSharp.Debugger
this.Signature = Signature;
}
public LocalVariableEntry (IMonoBinaryReader reader)
internal LocalVariableEntry (BinaryReader reader)
{
int name_length = reader.ReadInt32 ();
byte[] name = reader.ReadBuffer (name_length);
byte[] name = reader.ReadBytes (name_length);
Name = Encoding.UTF8.GetString (name);
Attributes = (FieldAttributes) reader.ReadInt32 ();
int sig_length = reader.ReadInt32 ();
Signature = reader.ReadBuffer (sig_length);
Signature = reader.ReadBytes (sig_length);
}
internal void Write (BinaryWriter bw)
internal void Write (MonoSymbolFile file, BinaryWriter bw)
{
byte[] name = Encoding.UTF8.GetBytes (Name);
bw.Write ((int) name.Length);
bw.Write (name);
file.WriteString (bw, Name);
bw.Write ((int) Attributes);
bw.Write ((int) Signature.Length);
bw.Write (Signature);
@@ -153,74 +175,129 @@ namespace Mono.CSharp.Debugger
public class SourceFileEntry
{
public readonly string SourceFile;
IMonoBinaryReader reader;
long method_position;
MonoSymbolFile file;
string file_name;
ArrayList methods;
int count;
ArrayList namespaces;
int index, count, name_offset, method_offset;
int namespace_count, nstable_offset;
bool creating;
internal SourceFileEntry (string source_file)
{
this.SourceFile = source_file;
this.methods = new ArrayList ();
this.count = 0;
public static int Size {
get { return 24; }
}
internal void AddMethod (MethodSourceEntry method)
internal SourceFileEntry (MonoSymbolFile file, string file_name)
{
methods.Add (method);
count++;
this.file = file;
this.file_name = file_name;
this.index = file.AddSource (this);
creating = true;
methods = new ArrayList ();
namespaces = new ArrayList ();
}
public void DefineMethod (MethodBase method, int token, LocalVariableEntry[] locals,
LineNumberEntry[] lines, int start, int end, int namespace_id)
{
if (!creating)
throw new InvalidOperationException ();
MethodEntry entry = new MethodEntry (
file, this, method, token, locals, lines, start, end, namespace_id);
methods.Add (entry);
file.AddMethod (entry);
}
public int DefineNamespace (string name, string[] using_clauses, int parent)
{
if (!creating)
throw new InvalidOperationException ();
int index = file.GetNextNamespaceIndex ();
NamespaceEntry ns = new NamespaceEntry (name, index, using_clauses, parent);
namespaces.Add (ns);
return index;
}
internal void WriteData (BinaryWriter bw)
{
name_offset = (int) bw.BaseStream.Position;
file.WriteString (bw, file_name);
ArrayList list = new ArrayList ();
foreach (MethodEntry entry in methods)
list.Add (entry.Write (file, bw));
list.Sort ();
count = list.Count;
method_offset = (int) bw.BaseStream.Position;
foreach (MethodSourceEntry method in list)
method.Write (bw);
namespace_count = namespaces.Count;
nstable_offset = (int) bw.BaseStream.Position;
foreach (NamespaceEntry ns in namespaces)
ns.Write (file, bw);
}
internal void Write (BinaryWriter bw)
{
byte[] name = Encoding.UTF8.GetBytes (SourceFile);
bw.Write ((int) name.Length);
bw.Write (name);
methods.Sort ();
bw.Write (methods.Count);
foreach (MethodSourceEntry method in methods)
method.Write (bw);
bw.Write (index);
bw.Write (count);
bw.Write (namespace_count);
bw.Write (name_offset);
bw.Write (method_offset);
bw.Write (nstable_offset);
}
public SourceFileEntry (IMonoBinaryReader reader)
internal SourceFileEntry (MonoSymbolFile file, BinaryReader reader)
{
int name_length = reader.ReadInt32 ();
byte[] name = reader.ReadBuffer (name_length);
SourceFile = Encoding.UTF8.GetString (name);
this.file = file;
index = reader.ReadInt32 ();
count = reader.ReadInt32 ();
this.reader = reader;
this.method_position = reader.Position;
namespace_count = reader.ReadInt32 ();
name_offset = reader.ReadInt32 ();
method_offset = reader.ReadInt32 ();
nstable_offset = reader.ReadInt32 ();
reader.Position += count * MethodSourceEntry.Size;
file_name = file.ReadString (name_offset);
}
public int Index {
get { return index; }
}
public string FileName {
get { return file_name; }
}
public MethodSourceEntry[] Methods {
get {
read_methods ();
MethodSourceEntry[] retval = new MethodSourceEntry [methods.Count];
methods.CopyTo (retval, 0);
if (creating)
throw new InvalidOperationException ();
BinaryReader reader = file.BinaryReader;
int old_pos = (int) reader.BaseStream.Position;
reader.BaseStream.Position = method_offset;
ArrayList list = new ArrayList ();
for (int i = 0; i < count; i ++)
list.Add (new MethodSourceEntry (reader));
reader.BaseStream.Position = old_pos;
MethodSourceEntry[] retval = new MethodSourceEntry [count];
list.CopyTo (retval, 0);
return retval;
}
}
void read_methods ()
{
if (methods != null)
return;
reader.Position = method_position;
methods = new ArrayList ();
for (int i = 0; i < count; i++)
methods.Add (new MethodSourceEntry (reader));
}
public override string ToString ()
{
return String.Format ("SourceFileEntry ({0}:{1})", SourceFile, count);
return String.Format ("SourceFileEntry ({0}:{1}:{2})", index, file_name, count);
}
}
@@ -239,7 +316,7 @@ namespace Mono.CSharp.Debugger
this.EndRow = end;
}
public MethodSourceEntry (IMonoBinaryReader reader)
internal MethodSourceEntry (BinaryReader reader)
{
Index = reader.ReadInt32 ();
FileOffset = reader.ReadInt32 ();
@@ -247,11 +324,8 @@ namespace Mono.CSharp.Debugger
EndRow = reader.ReadInt32 ();
}
public static int Size
{
get {
return 16;
}
public static int Size {
get { return 16; }
}
internal void Write (BinaryWriter bw)
@@ -281,84 +355,152 @@ namespace Mono.CSharp.Debugger
}
}
public struct MethodIndexEntry
{
public readonly int FileOffset;
public readonly int FullNameOffset;
public readonly int Token;
public static int Size {
get { return 12; }
}
public MethodIndexEntry (int offset, int name_offset, int token)
{
this.FileOffset = offset;
this.FullNameOffset = name_offset;
this.Token = token;
}
internal MethodIndexEntry (BinaryReader reader)
{
FileOffset = reader.ReadInt32 ();
FullNameOffset = reader.ReadInt32 ();
Token = reader.ReadInt32 ();
}
internal void Write (BinaryWriter bw)
{
bw.Write (FileOffset);
bw.Write (FullNameOffset);
bw.Write (Token);
}
public override string ToString ()
{
return String.Format ("MethodIndexEntry ({0}:{1}:{2:x})",
FileOffset, FullNameOffset, Token);
}
}
public class MethodEntry
{
#region This is actually written to the symbol file
public readonly int SourceFileIndex;
public readonly int Token;
public readonly int StartRow;
public readonly int EndRow;
public readonly int NumLineNumbers;
public readonly int ThisTypeIndex;
public readonly int ClassTypeIndex;
public readonly int NumParameters;
public readonly int NumLocals;
public readonly int NumLineNumbers;
public readonly int NamespaceID;
public int TypeIndexTableOffset;
public int LocalVariableTableOffset;
public readonly int SourceFileOffset;
public readonly int LineNumberTableOffset;
int NameOffset;
int FullNameOffset;
int TypeIndexTableOffset;
int LocalVariableTableOffset;
int LineNumberTableOffset;
#endregion
public readonly string SourceFile = null;
public readonly LineNumberEntry[] LineNumbers = null;
public readonly int[] ParamTypeIndices = null;
public readonly int[] LocalTypeIndices = null;
public readonly LocalVariableEntry[] Locals = null;
int index;
int file_offset;
string name;
string full_name;
MethodIndexEntry index_entry;
public static int Size
{
get {
return 44;
}
public readonly SourceFileEntry SourceFile;
public readonly LineNumberEntry[] LineNumbers;
public readonly int[] ParamTypeIndices;
public readonly int[] LocalTypeIndices;
public readonly LocalVariableEntry[] Locals;
public readonly Type[] LocalTypes;
public readonly MonoSymbolFile SymbolFile;
public static int Size {
get { return 52; }
}
public MethodEntry (IMonoBinaryReader reader)
public string Name {
get { return name; }
}
public string FullName {
get { return full_name; }
}
public MethodBase MethodBase {
get { return SymbolFile.Assembly.MonoDebugger_GetMethod (Token); }
}
internal MethodEntry (MonoSymbolFile file, BinaryReader reader, int index)
{
this.SymbolFile = file;
this.index = index;
SourceFileIndex = reader.ReadInt32 ();
Token = reader.ReadInt32 ();
StartRow = reader.ReadInt32 ();
EndRow = reader.ReadInt32 ();
ThisTypeIndex = reader.ReadInt32 ();
ClassTypeIndex = reader.ReadInt32 ();
NumParameters = reader.ReadInt32 ();
NumLocals = reader.ReadInt32 ();
NumLineNumbers = reader.ReadInt32 ();
NameOffset = reader.ReadInt32 ();
FullNameOffset = reader.ReadInt32 ();
TypeIndexTableOffset = reader.ReadInt32 ();
LocalVariableTableOffset = reader.ReadInt32 ();
SourceFileOffset = reader.ReadInt32 ();
LineNumberTableOffset = reader.ReadInt32 ();
NamespaceID = reader.ReadInt32 ();
if (SourceFileOffset != 0) {
long old_pos = reader.Position;
reader.Position = SourceFileOffset;
int source_file_length = reader.ReadInt32 ();
byte[] source_file = reader.ReadBuffer (source_file_length);
SourceFile = Encoding.UTF8.GetString (source_file);
reader.Position = old_pos;
}
name = file.ReadString (NameOffset);
full_name = file.ReadString (FullNameOffset);
SourceFile = file.GetSourceFile (SourceFileIndex);
if (LineNumberTableOffset != 0) {
long old_pos = reader.Position;
reader.Position = LineNumberTableOffset;
long old_pos = reader.BaseStream.Position;
reader.BaseStream.Position = LineNumberTableOffset;
LineNumbers = new LineNumberEntry [NumLineNumbers];
for (int i = 0; i < NumLineNumbers; i++)
LineNumbers [i] = new LineNumberEntry (reader);
reader.Position = old_pos;
reader.BaseStream.Position = old_pos;
}
if (LocalVariableTableOffset != 0) {
long old_pos = reader.Position;
reader.Position = LocalVariableTableOffset;
long old_pos = reader.BaseStream.Position;
reader.BaseStream.Position = LocalVariableTableOffset;
Locals = new LocalVariableEntry [NumLocals];
LocalTypes = new Type [NumLocals];
for (int i = 0; i < NumLocals; i++)
Assembly ass = file.Assembly;
for (int i = 0; i < NumLocals; i++) {
Locals [i] = new LocalVariableEntry (reader);
LocalTypes [i] = ass.MonoDebugger_GetLocalTypeFromSignature (
Locals [i].Signature);
}
reader.Position = old_pos;
reader.BaseStream.Position = old_pos;
}
if (TypeIndexTableOffset != 0) {
long old_pos = reader.Position;
reader.Position = TypeIndexTableOffset;
long old_pos = reader.BaseStream.Position;
reader.BaseStream.Position = TypeIndexTableOffset;
ParamTypeIndices = new int [NumParameters];
LocalTypeIndices = new int [NumLocals];
@@ -368,52 +510,180 @@ namespace Mono.CSharp.Debugger
for (int i = 0; i < NumLocals; i++)
LocalTypeIndices [i] = reader.ReadInt32 ();
reader.Position = old_pos;
reader.BaseStream.Position = old_pos;
}
}
internal MethodEntry (int token, int sf_offset, string source_file,
int this_type_index, int[] param_type_indices,
int[] local_type_indices, LocalVariableEntry[] locals,
LineNumberEntry[] lines, int lnt_offset,
int start_row, int end_row)
internal MethodEntry (MonoSymbolFile file, SourceFileEntry source, MethodBase method,
int token, LocalVariableEntry[] locals, LineNumberEntry[] lines,
int start_row, int end_row, int namespace_id)
{
this.Token = token;
this.StartRow = start_row;
this.EndRow = end_row;
this.NumLineNumbers = lines.Length;
this.ThisTypeIndex = this_type_index;
this.NumParameters = param_type_indices.Length;
this.NumLocals = local_type_indices.Length;
this.ParamTypeIndices = param_type_indices;
this.LocalTypeIndices = local_type_indices;
this.Locals = locals;
this.SourceFileOffset = sf_offset;
this.LineNumberTableOffset = lnt_offset;
this.SourceFile = source_file;
this.LineNumbers = lines;
this.SymbolFile = file;
index = file.GetNextMethodIndex ();
Token = token;
SourceFileIndex = source.Index;
SourceFile = source;
StartRow = start_row;
EndRow = end_row;
NamespaceID = namespace_id;
LineNumbers = BuildLineNumberTable (lines);
NumLineNumbers = LineNumbers.Length;
ParameterInfo[] parameters = method.GetParameters ();
if (parameters == null)
parameters = new ParameterInfo [0];
StringBuilder sb = new StringBuilder ();
sb.Append (method.DeclaringType.FullName);
sb.Append (".");
sb.Append (method.Name);
sb.Append ("(");
for (int i = 0; i < parameters.Length; i++) {
if (i > 0)
sb.Append (",");
sb.Append (parameters [i].ParameterType.FullName);
}
sb.Append (")");
name = method.Name;
full_name = sb.ToString ();
NumParameters = parameters.Length;
ParamTypeIndices = new int [NumParameters];
for (int i = 0; i < NumParameters; i++)
ParamTypeIndices [i] = file.DefineType (parameters [i].ParameterType);
NumLocals = locals.Length;
Locals = locals;
LocalTypeIndices = new int [NumLocals];
for (int i = 0; i < NumLocals; i++)
LocalTypeIndices [i] = file.GetNextTypeIndex ();
ClassTypeIndex = file.DefineType (method.ReflectedType);
}
internal void Write (BinaryWriter bw)
LineNumberEntry[] BuildLineNumberTable (LineNumberEntry[] line_numbers)
{
ArrayList list = new ArrayList ();
int last_offset = -1;
int last_row = -1;
for (int i = 0; i < line_numbers.Length; i++) {
LineNumberEntry line = (LineNumberEntry) line_numbers [i];
if (line.Offset > last_offset) {
if (last_row >= 0)
list.Add (new LineNumberEntry (last_row, last_offset));
last_row = line.Row;
last_offset = line.Offset;
} else if (line.Row > last_row) {
last_row = line.Row;
}
}
if (last_row >= 0)
list.Add (new LineNumberEntry (last_row, last_offset));
LineNumberEntry[] retval = new LineNumberEntry [list.Count];
list.CopyTo (retval, 0);
return retval;
}
internal MethodSourceEntry Write (MonoSymbolFile file, BinaryWriter bw)
{
NameOffset = (int) bw.BaseStream.Position;
file.WriteString (bw, name);
FullNameOffset = (int) bw.BaseStream.Position;
file.WriteString (bw, full_name);
TypeIndexTableOffset = (int) bw.BaseStream.Position;
for (int i = 0; i < NumParameters; i++)
bw.Write (ParamTypeIndices [i]);
for (int i = 0; i < NumLocals; i++)
bw.Write (LocalTypeIndices [i]);
LocalVariableTableOffset = (int) bw.BaseStream.Position;
for (int i = 0; i < NumLocals; i++)
Locals [i].Write (file, bw);
LineNumberTableOffset = (int) bw.BaseStream.Position;
for (int i = 0; i < NumLineNumbers; i++)
LineNumbers [i].Write (bw);
file.LineNumberCount += NumLineNumbers;
file.LocalCount += NumLocals;
file_offset = (int) bw.BaseStream.Position;
index_entry = new MethodIndexEntry (file_offset, FullNameOffset, Token);
bw.Write (SourceFileIndex);
bw.Write (Token);
bw.Write (StartRow);
bw.Write (EndRow);
bw.Write (ThisTypeIndex);
bw.Write (ClassTypeIndex);
bw.Write (NumParameters);
bw.Write (NumLocals);
bw.Write (NumLineNumbers);
bw.Write (NameOffset);
bw.Write (FullNameOffset);
bw.Write (TypeIndexTableOffset);
bw.Write (LocalVariableTableOffset);
bw.Write (SourceFileOffset);
bw.Write (LineNumberTableOffset);
bw.Write (NamespaceID);
return new MethodSourceEntry (index, file_offset, StartRow, EndRow);
}
internal void WriteIndex (BinaryWriter bw)
{
index_entry.Write (bw);
}
public override string ToString ()
{
return String.Format ("[Method {0}:{1}:{2}:{3}:{4} - {5}:{6}]",
Token, SourceFile, StartRow, EndRow,
NumLineNumbers, SourceFileOffset, LineNumberTableOffset);
return String.Format ("[Method {0}:{1}:{2}:{3}:{4} - {7}:{8}:{9}:{10} - {5} - {6}]",
index, Token, SourceFileIndex, StartRow, EndRow,
SourceFile, FullName, ClassTypeIndex, NumParameters,
NumLocals, NumLineNumbers);
}
}
public struct NamespaceEntry
{
public readonly string Name;
public readonly int Index;
public readonly int Parent;
public readonly string[] UsingClauses;
public NamespaceEntry (string name, int index, string[] using_clauses, int parent)
{
this.Name = name;
this.Index = index;
this.Parent = parent;
this.UsingClauses = using_clauses != null ? using_clauses : new string [0];
}
internal void Write (MonoSymbolFile file, BinaryWriter bw)
{
file.WriteString (bw, Name);
bw.Write (Index);
bw.Write (Parent);
bw.Write (UsingClauses.Length);
foreach (string uc in UsingClauses)
file.WriteString (bw, uc);
}
public override string ToString ()
{
return String.Format ("[Namespace {0}:{1}:{2}]", Name, Index, Parent);
}
}
}
@@ -1,213 +0,0 @@
//
// System.Diagnostics.SymbolStore/MonoSymbolTableWriter.cs
//
// Author:
// Martin Baulig ([email protected])
//
// (C) 2002 Ximian, Inc. http://www.ximian.com
//
using System;
using System.Reflection;
using System.Reflection.Emit;
using System.Collections;
using System.Text;
using System.IO;
namespace Mono.CSharp.Debugger
{
internal class MonoSymbolTableWriter : IDisposable
{
BinaryWriter bw;
Hashtable type_hash;
int last_type_index;
public MonoSymbolTableWriter (string output_filename)
{
FileStream stream = new FileStream (output_filename, FileMode.Create);
bw = new BinaryWriter (stream);
type_hash = new Hashtable ();
}
int GetTypeIndex (Type type)
{
if (type_hash.Contains (type))
return (int) type_hash [type];
int index = ++last_type_index;
type_hash.Add (type, index);
return index;
}
public void WriteSymbolTable (MonoSymbolWriter symwriter)
{
// Magic number and file version.
bw.Write (OffsetTable.Magic);
bw.Write (OffsetTable.Version);
OffsetTable ot = new OffsetTable ();
//
// Offsets of file sections; we must write this after we're done
// writing the whole file, so we just reserve the space for it here.
//
long offset_table_offset = bw.BaseStream.Position;
ot.Write (bw);
//
// Write source file table.
//
Hashtable sources = new Hashtable ();
ot.source_table_offset = (int) bw.BaseStream.Position;
foreach (SourceFile source in symwriter.Sources) {
if (sources.ContainsKey (source))
continue;
sources.Add (source, (int) bw.BaseStream.Position);
byte[] file_name = Encoding.UTF8.GetBytes (source.FileName);
bw.Write ((int) file_name.Length);
bw.Write (file_name);
}
ot.source_table_size = (int) bw.BaseStream.Position - ot.source_table_offset;
Hashtable source_table = new Hashtable ();
//
// Write line number table
//
ArrayList methods = new ArrayList ();
int num_methods = 0;
ot.line_number_table_offset = (int) bw.BaseStream.Position;
foreach (SourceMethod method in symwriter.Methods) {
if (method.Start == null || method.Start.Row == 0)
continue;
int count = method.Lines.Length;
LineNumberEntry[] lines = new LineNumberEntry [count];
int pos = (int) bw.BaseStream.Position;
int num_params = method.Parameters.Length;
int[] param_type_indices = new int [num_params];
for (int i = 0; i < num_params; i++) {
Type type = method.Parameters [i].ParameterType;
param_type_indices [i] = GetTypeIndex (type);
}
int num_locals = method.Locals.Length;
int[] local_type_indices = new int [num_locals];
for (int i = 0; i < num_locals; i++)
local_type_indices [i] = ++last_type_index;
int type_index_table_offset = ot.type_index_table_size;
ot.type_index_table_size += 4 * (num_params + num_locals);
int this_type_index = 0;
if (!method.MethodBase.IsStatic)
this_type_index = GetTypeIndex (method.MethodBase.ReflectedType);
for (int i = 0; i < count; i++) {
lines [i] = new LineNumberEntry (method.Lines [i]);
lines [i].Write (bw);
}
MethodEntry entry = new MethodEntry (
(int) method.Token, (int) sources [method.SourceFile],
method.SourceFile.FileName, this_type_index,
param_type_indices, local_type_indices, method.Locals, lines, pos,
(int) method.Start.Row, (int) method.End.Row);
methods.Add (entry);
}
ot.line_number_table_size = (int) bw.BaseStream.Position -
ot.line_number_table_offset;
//
// Write type index table.
//
ot.type_index_table_offset = (int) bw.BaseStream.Position;
for (int i = 0; i < methods.Count; i++) {
MethodEntry entry = (MethodEntry) methods [i];
entry.TypeIndexTableOffset = (int) bw.BaseStream.Position;
for (int j = 0; j < entry.NumParameters; j++)
bw.Write (entry.ParamTypeIndices [j]);
for (int j = 0; j < entry.NumLocals; j++)
bw.Write (entry.LocalTypeIndices [j]);
}
ot.type_index_table_size = (int) bw.BaseStream.Position -
ot.type_index_table_offset;
//
// Write local variable table.
//
ot.local_variable_table_offset = (int) bw.BaseStream.Position;
for (int i = 0; i < methods.Count; i++) {
MethodEntry entry = (MethodEntry) methods [i];
entry.LocalVariableTableOffset = (int) bw.BaseStream.Position;
for (int j = 0; j < entry.NumLocals; j++)
entry.Locals [j].Write (bw);
}
ot.local_variable_table_size = (int) bw.BaseStream.Position -
ot.local_variable_table_offset;
//
// Write method table
//
ot.method_count = methods.Count;
ot.method_table_offset = (int) bw.BaseStream.Position;
for (int i = 0; i < methods.Count; i++) {
MethodEntry entry = (MethodEntry) methods [i];
SourceFileEntry source = (SourceFileEntry) source_table [entry.SourceFileOffset];
if (source == null) {
source = new SourceFileEntry (entry.SourceFile);
source_table.Add (entry.SourceFileOffset, source);
}
source.AddMethod (new MethodSourceEntry (
i, (int) bw.BaseStream.Position, entry.StartRow, entry.EndRow));
entry.Write (bw);
}
ot.method_table_size = (int) bw.BaseStream.Position - ot.method_table_offset;
//
// Write source file table.
//
ot.source_file_count = source_table.Count;
ot.source_file_table_offset = (int) bw.BaseStream.Position;
foreach (SourceFileEntry source in source_table.Values)
source.Write (bw);
ot.source_file_table_size = (int) bw.BaseStream.Position - ot.source_file_table_offset;
//
// Write offset table
//
ot.type_count = last_type_index;
ot.total_file_size = (int) bw.BaseStream.Position;
bw.Seek ((int) offset_table_offset, SeekOrigin.Begin);
ot.Write (bw);
bw.Seek (0, SeekOrigin.End);
}
void IDisposable.Dispose() {
Dispose (true);
}
protected virtual void Dispose (bool disposing)
{
if (disposing)
{
bw.Close ();
}
}
}
}
+110 -186
View File
@@ -20,28 +20,15 @@ using System.IO;
namespace Mono.CSharp.Debugger
{
internal class SourceFile
internal class SourceFile : SourceFileEntry, ISymbolDocumentWriter
{
private ArrayList _methods = new ArrayList ();
private string _file_name;
public SourceFile (string filename)
{
this._file_name = filename;
}
public SourceFile (MonoSymbolFile file, string filename)
: base (file, filename)
{ }
public override string ToString ()
{
return _file_name;
}
public string FileName {
get {
return _file_name;
}
}
public SourceMethod[] Methods {
public new SourceMethod[] Methods {
get {
SourceMethod[] retval = new SourceMethod [_methods.Count];
_methods.CopyTo (retval);
@@ -53,6 +40,16 @@ namespace Mono.CSharp.Debugger
{
_methods.Add (method);
}
void ISymbolDocumentWriter.SetCheckSum (Guid algorithmId, byte[] checkSum)
{
throw new NotSupportedException ();
}
void ISymbolDocumentWriter.SetSource (byte[] source)
{
throw new NotSupportedException ();
}
}
internal class SourceBlock
@@ -60,30 +57,21 @@ namespace Mono.CSharp.Debugger
static private int next_index;
private readonly int _index;
public SourceBlock (SourceMethod method, SourceLine start, SourceLine end)
{
this._method = method;
this._start = start;
this._end = end;
this._index = ++next_index;
}
internal SourceBlock (SourceMethod method, int startOffset)
{
this._method = method;
this._start = new SourceLine (startOffset);
this._start_offset = startOffset;
this._index = ++next_index;
}
public override string ToString ()
{
return "SourceBlock #" + ID + " (" + Start + " - " + End + ")";
return "SourceBlock #" + ID;
}
private readonly SourceMethod _method;
private ArrayList _blocks = new ArrayList ();
internal SourceLine _start;
internal SourceLine _end;
internal int _start_offset, _end_offset;
private ArrayList _locals = new ArrayList ();
@@ -106,18 +94,6 @@ namespace Mono.CSharp.Debugger
_blocks.Add (block);
}
public SourceLine Start {
get {
return _start;
}
}
public SourceLine End {
get {
return _end;
}
}
public int ID {
get {
return _index;
@@ -138,63 +114,6 @@ namespace Mono.CSharp.Debugger
}
}
internal class SourceLine
{
public SourceLine (int row, int column)
: this (0, row, column)
{
this._type = SourceOffsetType.OFFSET_NONE;
}
public SourceLine (int offset, int row, int column)
{
this._offset = offset;
this._row = row;
this._column = column;
this._type = SourceOffsetType.OFFSET_IL;
}
internal SourceLine (int offset)
: this (offset, 0, 0)
{ }
public override string ToString ()
{
return "SourceLine (" + _offset + "@" + _row + ":" + _column + ")";
}
internal SourceOffsetType _type;
internal int _offset;
internal int _row;
internal int _column;
// interface SourceLine
public SourceOffsetType OffsetType {
get {
return _type;
}
}
public int Offset {
get {
return _offset;
}
}
public int Row {
get {
return _row;
}
}
public int Column {
get {
return _column;
}
}
}
internal class SourceMethod
{
private ArrayList _lines = new ArrayList ();
@@ -205,32 +124,25 @@ namespace Mono.CSharp.Debugger
internal readonly MethodBase _method_base;
internal SourceFile _source_file;
internal int _token;
private int _namespace_id;
private LineNumberEntry _start, _end;
private SourceBlock _implicit_block;
public SourceMethod (MethodBase method_base, SourceFile source_file)
: this (method_base)
{
this._source_file = source_file;
}
internal SourceMethod (MethodBase method_base)
internal SourceMethod (SourceFile source_file, int startLine, int startColumn,
int endLine, int endColumn, MethodBase method_base,
int namespace_id)
{
this._method_base = method_base;
this._source_file = source_file;
this._namespace_id = namespace_id;
this._start = new LineNumberEntry (startLine, 0);
this._end = new LineNumberEntry (endLine, 0);
this._implicit_block = new SourceBlock (this, 0);
}
public void SetSourceRange (SourceFile sourceFile,
int startLine, int startColumn,
int endLine, int endColumn)
{
_source_file = sourceFile;
_implicit_block._start = new SourceLine (startLine, startColumn);
_implicit_block._end = new SourceLine (endLine, endColumn);
}
public void StartBlock (SourceBlock block)
{
_block_stack.Push (block);
@@ -239,7 +151,7 @@ namespace Mono.CSharp.Debugger
public void EndBlock (int endOffset) {
SourceBlock block = (SourceBlock) _block_stack.Pop ();
block._end = new SourceLine (endOffset);
block._end_offset = endOffset;
if (_block_stack.Count > 0) {
SourceBlock parent = (SourceBlock) _block_stack.Peek ();
@@ -254,8 +166,8 @@ namespace Mono.CSharp.Debugger
public void SetBlockRange (int BlockID, int startOffset, int endOffset)
{
SourceBlock block = (SourceBlock) _block_hash [BlockID];
((SourceLine) block.Start)._offset = startOffset;
((SourceLine) block.End)._offset = endOffset;
block._start_offset = startOffset;
block._end_offset = endOffset;
}
public SourceBlock CurrentBlock {
@@ -267,15 +179,15 @@ namespace Mono.CSharp.Debugger
}
}
public SourceLine[] Lines {
public LineNumberEntry[] Lines {
get {
SourceLine[] retval = new SourceLine [_lines.Count];
LineNumberEntry[] retval = new LineNumberEntry [_lines.Count];
_lines.CopyTo (retval);
return retval;
}
}
public void AddLine (SourceLine line)
public void AddLine (LineNumberEntry line)
{
_lines.Add (line);
}
@@ -350,28 +262,39 @@ namespace Mono.CSharp.Debugger
}
}
public SourceLine Start {
public bool HasSource {
get {
return _implicit_block.Start;
return _source_file != null;
}
}
public SourceLine End {
public LineNumberEntry Start {
get {
return _implicit_block.End;
return _start;
}
}
public LineNumberEntry End {
get {
return _end;
}
}
public int NamespaceID {
get {
return _namespace_id;
}
}
}
public class MonoSymbolWriter : IMonoSymbolWriter
{
protected Assembly assembly;
protected ModuleBuilder module_builder;
protected ArrayList locals = null;
protected ArrayList orphant_methods = null;
protected ArrayList methods = null;
protected Hashtable sources = null;
private ArrayList mbuilder_array = null;
private MonoSymbolFile file = null;
internal SourceMethod[] Methods {
get {
@@ -390,31 +313,31 @@ namespace Mono.CSharp.Debugger
}
private SourceMethod current_method = null;
private string assembly_filename = null;
private string output_filename = null;
//
// Interface IMonoSymbolWriter
//
public MonoSymbolWriter (ModuleBuilder mb, string filename, ArrayList mbuilder_array)
public MonoSymbolWriter (ModuleBuilder mb)
{
this.assembly_filename = filename;
this.module_builder = mb;
this.methods = new ArrayList ();
this.sources = new Hashtable ();
this.orphant_methods = new ArrayList ();
this.locals = new ArrayList ();
this.mbuilder_array = mbuilder_array;
this.file = new MonoSymbolFile ();
}
public void Close () {
if (assembly == null)
assembly = Assembly.LoadFrom (assembly_filename);
public void Close ()
{
throw new InvalidOperationException ();
}
DoFixups (assembly);
public byte[] CreateSymbolFile (AssemblyBuilder assembly_builder)
{
DoFixups (assembly_builder);
CreateOutput (assembly);
return CreateOutput (assembly_builder);
}
public void CloseNamespace () {
@@ -426,7 +349,9 @@ namespace Mono.CSharp.Debugger
Guid languageVendor,
Guid documentType)
{
return new MonoSymbolDocumentWriter (url);
SourceFile source_info = new SourceFile (file, url);
sources.Add (url, source_info);
return source_info;
}
public void DefineField (
@@ -487,14 +412,17 @@ namespace Mono.CSharp.Debugger
int[] columns,
int[] endLines,
int[] endColumns)
{
throw new NotSupportedException ();
}
public void MarkSequencePoint (int offset, int line, int column)
{
if (current_method == null)
return;
SourceLine source_line = new SourceLine (offsets [0], lines [0], columns [0]);
if (current_method != null)
current_method.AddLine (source_line);
LineNumberEntry source_line = new LineNumberEntry (line, offset);
current_method.AddLine (source_line);
}
public void Initialize (IntPtr emitter, string filename, bool fFullBuild)
@@ -502,26 +430,9 @@ namespace Mono.CSharp.Debugger
throw new NotSupportedException ();
}
public void Initialize (string assembly_filename, string filename, string[] args)
{
this.output_filename = filename;
this.assembly_filename = assembly_filename;
}
public void OpenMethod (SymbolToken symbol_token)
{
int token = symbol_token.GetToken ();
if ((token & 0xff000000) != 0x06000000)
throw new ArgumentException ();
int index = (token & 0xffffff) - 1;
MethodBase mb = (MethodBase) mbuilder_array [index];
current_method = new SourceMethod (mb);
methods.Add (current_method);
throw new NotSupportedException ();
}
public void SetMethodSourceRange (ISymbolDocumentWriter startDoc,
@@ -529,32 +440,21 @@ namespace Mono.CSharp.Debugger
ISymbolDocumentWriter endDoc,
int endLine, int endColumn)
{
if (current_method == null)
return;
throw new NotSupportedException ();
}
if ((startDoc == null) || (endDoc == null))
public void OpenMethod (ISymbolDocumentWriter document, int startLine, int startColumn,
int endLine, int endColumn, MethodBase method, int namespace_id)
{
SourceFile source_info = document as SourceFile;
if ((source_info == null) || (method == null))
throw new NullReferenceException ();
if (!(startDoc is MonoSymbolDocumentWriter) || !(endDoc is MonoSymbolDocumentWriter))
throw new NotSupportedException ("both startDoc and endDoc must be of type "
+ "MonoSymbolDocumentWriter");
if (!startDoc.Equals (endDoc))
throw new NotSupportedException ("startDoc and endDoc must be the same");
string source_file = ((MonoSymbolDocumentWriter) startDoc).FileName;
SourceFile source_info;
if (sources.ContainsKey (source_file))
source_info = (SourceFile) sources [source_file];
else {
source_info = new SourceFile (source_file);
sources.Add (source_file, source_info);
}
current_method.SetSourceRange (source_info, startLine, startColumn,
endLine, endColumn);
current_method = new SourceMethod (source_info, startLine, startColumn,
endLine, endColumn, method, namespace_id);
methods.Add (current_method);
source_info.AddMethod (current_method);
}
@@ -562,6 +462,19 @@ namespace Mono.CSharp.Debugger
current_method = null;
}
public int DefineNamespace (string name, ISymbolDocumentWriter document,
string[] using_clauses, int parent)
{
if ((document == null) || (using_clauses == null))
throw new NullReferenceException ();
if (!(document is SourceFile))
throw new ArgumentException ();
SourceFile source_info = (SourceFile) document;
return source_info.DefineNamespace (name, using_clauses, parent);
}
public void OpenNamespace (string name)
{
throw new NotSupportedException ();
@@ -633,10 +546,21 @@ namespace Mono.CSharp.Debugger
}
}
protected void CreateOutput (Assembly assembly)
protected byte[] CreateOutput (Assembly assembly)
{
using (MonoSymbolTableWriter writer = new MonoSymbolTableWriter (output_filename))
writer.WriteSymbolTable (this);
foreach (SourceMethod method in Methods) {
if (!method.HasSource) {
Console.WriteLine ("INGORING METHOD: {0}", method);
continue;
}
method.SourceFile.DefineMethod (
method.MethodBase, method.Token, method.Locals,
method.Lines, method.Start.Row, method.End.Row,
method.NamespaceID);
}
return file.CreateSymbolFile ();
}
}
}
+1 -4
View File
@@ -1,6 +1,3 @@
IMonoSymbolWriter.cs
MonoSymbolDocumentWriter.cs
MonoSymbolWriter.cs
MonoSymbolTable.cs
MonoSymbolTableWriter.cs
IMonoBinaryReader.cs
MonoSymbolFile.cs
@@ -25,6 +25,7 @@ namespace DB2ClientCS
private int commandTimeout;
private bool prepared = false;
private IntPtr hwndStmt; //Our statement handle
private DB2ClientParameterCollection parameters = new DB2ClientParameterCollection();
#endregion
@@ -65,9 +66,27 @@ namespace DB2ClientCS
{
}
#endregion
#region SelfDescribe property
///
/// Property dictates whether or not any paramter markers will get their describe info
/// from the database, or if the user will supply the information
///
bool selfDescribe = false;
public bool SelfDescribe
{
get
{
return selfDescribe;
}
set
{
selfDescribe = value;
}
}
#endregion
#region CommandText property
///
///The query
///The query; If it gets set, reset the prepared property
///
public string CommandText
{
@@ -77,6 +96,7 @@ namespace DB2ClientCS
}
set
{
prepared = false;
commandText = value;
}
}
@@ -133,19 +153,27 @@ namespace DB2ClientCS
///
/// Parameter list, Not yet implemented
///
public IDataParameterCollection Parameters
public DB2ClientParameterCollection Parameters
{
get
{
throw new DB2ClientException("TBD");
return parameters;
}
}
IDataParameterCollection IDbCommand.Parameters
{
get
{
return parameters;
}
}
#endregion
#region Transaction property
///
/// The transaction this command is associated with
///
public IDbTransaction Transaction
///
/// The transaction this command is associated with
///
public IDbTransaction Transaction
{
get
{
@@ -215,9 +243,7 @@ namespace DB2ClientCS
///
public IDbDataParameter CreateParameter()
{
//Will wait until I get deeper into the DB2/.Net interface. I'm not sure how
//.Net and DB2 parameters talk to each other
throw new DB2ClientException("Parameters not yet supported in this driver.");
throw new DB2ClientException("TBD");
}
#endregion
#region ExecuteNonQuery
@@ -245,9 +271,16 @@ namespace DB2ClientCS
///
public IDataReader ExecuteReader()
{
ExecuteNonQuery();
DB2ClientDataReader reader = new DB2ClientDataReader(db2Conn, this);
DB2ClientDataReader reader;
if (!prepared)
{
ExecuteNonQuery();
reader = new DB2ClientDataReader(db2Conn, this);
}
else
reader = new DB2ClientDataReader(db2Conn, this, true);
return reader;
}
@@ -266,13 +299,32 @@ namespace DB2ClientCS
}
#endregion
#region Prepare
#region Prepare ()
///
/// Prepare
/// Prepare a statement against the database
///
public void Prepare()
public void Prepare ()
{
throw new DB2ClientException("TBD");
DB2ClientUtils util = new DB2ClientUtils();
short sqlRet = 0;
IntPtr numParams = IntPtr.Zero;
sqlRet = DB2ClientPrototypes.SQLPrepare(hwndStmt, commandText, commandText.Length);
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "SQLPrepare error.");
short i=1;
foreach ( DB2ClientParameter param in parameters)
{
if (selfDescribe)
{
sqlRet = param.Describe(this.hwndStmt, i);
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "Error binding parameter in DB2ClientCommand: ");
}
sqlRet = param.Bind(this.hwndStmt, i);
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "Error binding parameter in DB2ClientCommand: ");
i++;
}
prepared=true;
}
#endregion
}
@@ -149,7 +149,11 @@ namespace DB2ClientCS
///
unsafe public void Close()
{
DB2ClientPrototypes.SQLDisconnect(dbHandle);
short sqlRet = 0;
// DB2ClientUtils util = new DB2ClientUtils();
sqlRet = DB2ClientPrototypes.SQLDisconnect(dbHandle);
// util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_DBC, dbHandle, "Error in Connection->Close: ");
dbHandle = new IntPtr(DB2ClientConstants.SQL_NULL_HANDLE);
}
#endregion
@@ -35,6 +35,7 @@ namespace DB2ClientCS
public const long SQL_STILL_EXECUTING = 2;
public const long SQL_ERROR = -1;
public const long SQL_INVALID_HANDLE = -2;
public const int SQL_NTS = -3;
public const long SQL_NULL_HANDLE = 0L;
public const short SQL_COMMIT = 0;
public const short SQL_ROLLBACK = 1;
@@ -55,14 +56,28 @@ namespace DB2ClientCS
public const long SQL_AUTOCOMMIT_ON = 1L;
/* Data Types */
public const int SQL_UNKNOWN_TYPE = 0;
public const int SQL_CHAR = 1;
public const int SQL_NUMERIC = 2;
public const int SQL_DECIMAL = 3;
public const int SQL_INTEGER = 4;
public const int SQL_SMALLINT = 5;
public const int SQL_FLOAT = 6;
public const int SQL_REAL = 7;
public const int SQL_DOUBLE = 8;
public const int SQL_DATETIME = 9;
public const int SQL_VARCHAR = 12;
public const int SQL_WCHAR = (-8);
public const int SQL_WVARCHAR = (-9);
public const int SQL_WLONGVARCHAR = (-10);
public const int SQL_TYPE_DATE = 91;
public const int SQL_TYPE_TIME = 92;
public const int SQL_TYPE_TIMESTAMP = 93;
public const int SQL_C_CHAR = SQL_CHAR;
public const int SQL_C_DEFAULT = 99;
public const int SQL_USER_DEFINED_TYPE = (-450);
/* SQLDriverConnect Options */
public const int SQL_DRIVER_NOPROMPT = 0;
@@ -70,6 +85,17 @@ namespace DB2ClientCS
public const int SQL_DRIVER_PROMPT = 2;
public const int SQL_DRIVER_COMPLETE_REQUIRED = 3;
/* Null settings */
public const int SQL_NO_NULLS = 0;
public const int SQL_NULLABLE = 1;
public const int SQL_NULLABLE_UNKNOWN = 2;
/* Defines for SQLBindParameter and SQLProcedureColumns */
public const int SQL_PARAM_TYPE_UNKNOWN = 0;
public const int SQL_PARAM_INPUT = 1;
public const int SQL_PARAM_INPUT_OUTPUT = 2;
public const int SQL_RESULT_COL = 3;
public const int SQL_PARAM_OUTPUT = 4;
public const int SQL_RETURN_VALUE = 5;
}
}
@@ -25,7 +25,7 @@ namespace DB2ClientCS
internal IntPtr hwndStmt; //The statement handle returning the results
private int row=-1; //Row pointer
private int numCols=0;
#region Constructors and destructors
/// <summary>
///
@@ -38,72 +38,45 @@ namespace DB2ClientCS
hwndStmt = com.statementHandle; //We have access to the results through the statement handle
short sqlRet;
StringBuilder colName = new StringBuilder(18);
short colNameMaxLength=18;
IntPtr colNameLength=IntPtr.Zero;
IntPtr sqlDataType=IntPtr.Zero;
IntPtr colSize=IntPtr.Zero;
IntPtr scale=IntPtr.Zero;
IntPtr nullable=IntPtr.Zero;
DB2ClientUtils util = new DB2ClientUtils();
rs = new DataTable();
sqlRet = DB2ClientPrototypes.SQLNumResultCols(hwndStmt, ref numCols);
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLNumResultCols");
IntPtr[] dbVals = new IntPtr[numCols];
IntPtr[] sqlLen_or_IndPtr = new IntPtr[numCols];
for (ushort i=1; i<=numCols; i++)
{
sqlRet = DB2ClientPrototypes.SQLDescribeCol(hwndStmt, i, colName, colNameMaxLength, colNameLength, ref sqlDataType, ref colSize, ref scale, ref nullable);
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLDescribeCol");
///At this point I have the data type information as well, but for now I will insert the data as
///Ansi strings and see how it goes. Maybe we can speed things up later...
///
rs.Columns.Add(colName.ToString());
sqlLen_or_IndPtr[i-1] = new IntPtr();
dbVals[i-1] = Marshal.AllocHGlobal(colSize.ToInt32()+1);
try
{
switch (sqlDataType.ToInt32())
{
case DB2ClientConstants.SQL_DECIMAL: //These types are treated as SQL_C_CHAR for binding purposes
case DB2ClientConstants.SQL_TYPE_DATE:
case DB2ClientConstants.SQL_TYPE_TIME:
case DB2ClientConstants.SQL_TYPE_TIMESTAMP:
case DB2ClientConstants.SQL_VARCHAR:
sqlRet = DB2ClientPrototypes.SQLBindCol(hwndStmt, i, DB2ClientConstants.SQL_C_CHAR, dbVals[i-1],(short)colSize.ToInt32()+1, ref sqlLen_or_IndPtr[i-1]);
break;
default:
sqlRet = DB2ClientPrototypes.SQLBindCol(hwndStmt, i, (short)sqlDataType.ToInt32(), dbVals[i-1],(short)colSize.ToInt32()+1, ref sqlLen_or_IndPtr[i-1]);
break;
}
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLBindCol");
}
catch(DB2ClientException e)
{
System.Console.Write(e.Message);
}
isClosed = false;
}
sqlRet = DB2ClientPrototypes.SQLFetch(hwndStmt);
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLFetch 1");
while(sqlRet != DB2ClientConstants.SQL_NO_DATA_FOUND)
{
DataRow newRow = rs.NewRow();
for (short y=1;y<=numCols;y++)
{
newRow[y-1] = Marshal.PtrToStringAnsi(dbVals[y-1]);
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLFetch 2");
}
rs.Rows.Add(newRow);
sqlRet = DB2ClientPrototypes.SQLFetch(hwndStmt);
}
for (int n=0;n<numCols;n++)
Marshal.FreeHGlobal(dbVals[n]);
PrepareResults(dbVals, sqlLen_or_IndPtr);
FetchResults(dbVals, sqlLen_or_IndPtr, rs);
isClosed = false;
}
/// <summary>
/// Constructor for use with prepared statements
/// </summary>
///
internal DB2ClientDataReader(DB2ClientConnection con, DB2ClientCommand com, bool prepared)
{
db2Conn = con;
hwndStmt = com.statementHandle; //We have access to the results through the statement handle
short sqlRet;
DB2ClientUtils util = new DB2ClientUtils();
rs = new DataTable();
sqlRet = DB2ClientPrototypes.SQLNumResultCols(hwndStmt, ref numCols);
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLNumResultCols");
IntPtr[] dbVals = new IntPtr[numCols];
IntPtr[] sqlLen_or_IndPtr = new IntPtr[numCols];
PrepareResults(dbVals, sqlLen_or_IndPtr);
FetchResults(dbVals, sqlLen_or_IndPtr, rs);
isClosed = false;
}
public void Dispose()
{
Close();
@@ -204,6 +177,87 @@ namespace DB2ClientCS
}
#endregion
#region Describe/Bind/Fetch functions
///
///Broke these out so that we can use different paths for Immediate executions and Prepared executions
/// <summary>
/// Does the describe and bind steps for the query result set. Called for both immediate and prepared queries.
/// </summary>
private void PrepareResults(IntPtr[] dbVals, IntPtr[] sqlLen_or_IndPtr)
{
short sqlRet;
StringBuilder colName = new StringBuilder(18);
short colNameMaxLength=18;
IntPtr colNameLength=IntPtr.Zero;
IntPtr sqlDataType=IntPtr.Zero;
IntPtr colSize=IntPtr.Zero;
IntPtr scale=IntPtr.Zero;
IntPtr nullable=IntPtr.Zero;
DB2ClientUtils util = new DB2ClientUtils();
for (ushort i=1; i<=numCols; i++)
{
sqlRet = DB2ClientPrototypes.SQLDescribeCol(hwndStmt, i, colName, colNameMaxLength, colNameLength, ref sqlDataType, ref colSize, ref scale, ref nullable);
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLDescribeCol");
///At this point I have the data type information as well, but for now I will insert the data as
///Ansi strings and see how it goes. Maybe we can speed things up later...
///
rs.Columns.Add(colName.ToString());
sqlLen_or_IndPtr[i-1] = new IntPtr();
dbVals[i-1] = Marshal.AllocHGlobal((int)colSize+1);
try
{
switch ((int)sqlDataType)
{
case DB2ClientConstants.SQL_DECIMAL: //These types are treated as SQL_C_CHAR for binding purposes
case DB2ClientConstants.SQL_TYPE_DATE:
case DB2ClientConstants.SQL_TYPE_TIME:
case DB2ClientConstants.SQL_TYPE_TIMESTAMP:
case DB2ClientConstants.SQL_VARCHAR:
sqlRet = DB2ClientPrototypes.SQLBindCol(hwndStmt, i, DB2ClientConstants.SQL_C_CHAR, dbVals[i-1],(short)colSize+1, ref sqlLen_or_IndPtr[i-1]);
break;
default:
sqlRet = DB2ClientPrototypes.SQLBindCol(hwndStmt, i, (short)sqlDataType, dbVals[i-1],(short)colSize+1, ref sqlLen_or_IndPtr[i-1]);
break;
}
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLBindCol");
}
catch(DB2ClientException e)
{
System.Console.Write(e.Message);
}
isClosed = false;
}
}
/// <summary>
/// FetchResults does what it says.
/// </summary>
/// <param name="dbVals"></param>
/// <param name="sqlLen_or_IndPtr"></param>
/// <param name="rs"></param>
private void FetchResults(IntPtr[] dbVals, IntPtr[] sqlLen_or_IndPtr, DataTable rs)
{
short sqlRet = 0;
DB2ClientUtils util = new DB2ClientUtils();
sqlRet = DB2ClientPrototypes.SQLFetch(hwndStmt);
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLFetch 1");
while(sqlRet != DB2ClientConstants.SQL_NO_DATA_FOUND)
{
DataRow newRow = rs.NewRow();
for (short y=1;y<=numCols;y++)
newRow[y-1] = Marshal.PtrToStringAnsi(dbVals[y-1]);
rs.Rows.Add(newRow);
sqlRet = DB2ClientPrototypes.SQLFetch(hwndStmt);
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLFetch 2");
}
for (int n=0;n<numCols;n++)
Marshal.FreeHGlobal(dbVals[n]);
}
#endregion
#region IDataRecord Interface
@@ -456,3 +510,4 @@ namespace DB2ClientCS
}
}
#endregion
@@ -0,0 +1,365 @@
#region Licence
/// DB2DriverCS - A DB2 driver for .Net
/// Copyright 2003 By Christopher Bockner
/// Released under the terms of the MIT/X11 Licence
/// Please refer to the Licence.txt file that should be distributed with this package
/// This software requires that DB2 client software be installed correctly on the machine
/// (or instance) on which the driver is running.
#endregion
using System;
using System.Data;
namespace DB2ClientCS
{
/// <summary>
/// Parameter object for DB2 client
/// </summary>
public sealed class DB2ClientParameter : MarshalByRefObject, IDbDataParameter, IDataParameter, ICloneable
{
private DbType dbType;
private IntPtr db2DataType;
private ParameterDirection direction;
private bool nullable;
private string parameterName;
private string sourceColumn;
private IntPtr paramSize;
private IntPtr decimalDigits;
private DataRowVersion sourceVersion;
object dataVal;
byte[] bDataVal;
private int iDataVal;
private byte scale, precision;
private int size;
bool selfDescribe = false;
#region Contructors and destructors
public DB2ClientParameter()
{
}
public DB2ClientParameter (string name)
{
parameterName = name;
}
public DB2ClientParameter(string name, DbType type)
{
parameterName = name;
dbType = type;
}
public DB2ClientParameter(string name, object data)
{
parameterName = name;
this.Value = data;
}
public DB2ClientParameter(string name, DbType type, string columnName)
{
parameterName = name;
dbType = type;
sourceColumn = columnName;
}
public DB2ClientParameter(string name, int db2Type)
{
parameterName = name;
dbType = inferTypeFromDB2Type(db2Type);
db2DataType = new IntPtr(db2Type);
}
#endregion
#region Properties
#region DbType Property
///
/// Parameter data type
///
public DbType DbType
{
get
{
return dbType;
}
set
{
dbType = value;
}
}
#endregion
#region Direction
///
/// In or out parameter, or both
///
public ParameterDirection Direction
{
get
{
return direction;
}
set
{
direction = value;
}
}
#endregion
#region IsNullable
///
/// Does this parameter support a null value
///
public bool IsNullable
{
get
{
return nullable;
}
set
{
nullable = value;
}
}
#endregion
#region ParameterName
public string ParameterName
{
get
{
return parameterName;
}
set
{
parameterName = value;
}
}
#endregion
#region SourceColumn
///
/// Gets or sets the name of the source column that is mapped to the DataSet
///
public string SourceColumn
{
get
{
return sourceColumn;
}
set
{
sourceColumn = value;
}
}
#endregion
#region SourceVersion
///
/// DataRowVersion property
///
public DataRowVersion SourceVersion
{
get
{
return sourceVersion;
}
set
{
sourceVersion = value;
}
}
#endregion
#region IDbDataParameter properties
public byte Precision
{
get
{
return precision;
}
set
{
precision = value;
}
}
public byte Scale
{
get
{
return scale;
}
set
{
scale = value;
}
}
public int Size
{
get
{
return size;
}
set
{
size = value;
}
}
#endregion
#region Value
///
/// The actual parameter data
///
public object Value
{
get
{
return Value;
}
set
{
this.dataVal = value;
DbType = inferType(dataVal);
// Load buffer with new value
if (dbType==DbType.Int32)
iDataVal=(int) value;
else
{
// Treat everything else as a string
// Init string buffer
if (bDataVal==null || bDataVal.Length< (((int)paramSize>20)?(int)paramSize:20) )
bDataVal=new byte[((int)paramSize>20)?(int)paramSize:20];
else
bDataVal.Initialize();
// Convert value into string and store into buffer
byte[] strValueBuffer=System.Text.Encoding.ASCII.GetBytes(dataVal.ToString());
strValueBuffer.CopyTo(bDataVal,0);
}
}
}
#endregion
#endregion
#region inferType Method
/// <summary>
/// Determine the data type based on the value
/// </summary>
private DbType inferType (object Data)
{
switch (Type.GetTypeCode(Data.GetType()))
{
case TypeCode.Empty:
throw new SystemException("Invalid data type");
case TypeCode.Object:
return DbType.Object;
case TypeCode.DBNull:
case TypeCode.Char:
case TypeCode.SByte:
case TypeCode.UInt16:
case TypeCode.UInt32:
case TypeCode.UInt64:
// Throw a SystemException for unsupported data types.
throw new SystemException("Invalid data type");
case TypeCode.Boolean:
return DbType.Boolean;
case TypeCode.Byte:
return DbType.Byte;
case TypeCode.Int16:
return DbType.Int16;
case TypeCode.Int32:
return DbType.Int32;
case TypeCode.Int64:
return DbType.Int64;
case TypeCode.Single:
return DbType.Single;
case TypeCode.Double:
return DbType.Double;
case TypeCode.Decimal:
return DbType.Decimal;
case TypeCode.DateTime:
return DbType.DateTime;
case TypeCode.String:
return DbType.String;
default:
throw new SystemException("Value is of unknown data type");
}
}
#endregion
#region inferTypeFromDB2Type
///
/// Determine the DbType from the SQL type returned by SQLDescribeParam
///
private DbType inferTypeFromDB2Type(int db2Type)
{
switch (db2Type)
{
case DB2ClientConstants.SQL_CHAR:
return DbType.AnsiString;
case DB2ClientConstants.SQL_NUMERIC:
case DB2ClientConstants.SQL_DECIMAL:
return DbType.Decimal;
case DB2ClientConstants.SQL_DATETIME:
return DbType.DateTime;
case DB2ClientConstants.SQL_FLOAT:
case DB2ClientConstants.SQL_DOUBLE:
return DbType.Double;
case DB2ClientConstants.SQL_INTEGER:
return DbType.Int32;
case DB2ClientConstants.SQL_SMALLINT:
return DbType.Int16;
case DB2ClientConstants.SQL_VARCHAR:
return DbType.String;
case DB2ClientConstants.SQL_USER_DEFINED_TYPE:
return DbType.Object;
default:
throw new SystemException("DB2 Data type is unknown.");
}
}
#endregion
#region Describe
///
/// Describe the parameter. Use at the caller's discretion
///
public short Describe(IntPtr hwndStmt, short paramNum)
{
IntPtr nullable = IntPtr.Zero;
paramSize = IntPtr.Zero;
decimalDigits = IntPtr.Zero;
short sqlRet = 0;
sqlRet = DB2ClientPrototypes.SQLDescribeParam(hwndStmt, paramNum, ref db2DataType, ref paramSize, ref decimalDigits, ref nullable);
return sqlRet;
}
#endregion
#region Bind
///
/// Bind this parameter
///
public short Bind(IntPtr hwndStmt, short paramNum)
{
short sqlRet = 0;
switch ((int)db2DataType)
{
case DB2ClientConstants.SQL_DECIMAL: //These types are treated as SQL_C_CHAR for binding purposes
case DB2ClientConstants.SQL_TYPE_DATE:
case DB2ClientConstants.SQL_TYPE_TIME:
case DB2ClientConstants.SQL_TYPE_TIMESTAMP:
case DB2ClientConstants.SQL_VARCHAR:
case DB2ClientConstants.SQL_CHAR:
sqlRet = DB2ClientPrototypes.SQLBindParameter(hwndStmt, (ushort)paramNum, DB2ClientConstants.SQL_PARAM_INPUT, DB2ClientConstants.SQL_C_DEFAULT, (short)db2DataType, Convert.ToUInt32((int)paramSize) , (short) decimalDigits, bDataVal, 0, 0);
break;
default:
sqlRet = DB2ClientPrototypes.SQLBindParameter(hwndStmt, (ushort)paramNum, DB2ClientConstants.SQL_PARAM_INPUT, DB2ClientConstants.SQL_C_DEFAULT, (short)db2DataType, Convert.ToUInt32((int)paramSize) , 0, ref iDataVal, 0, 0);
break;
}
return sqlRet;
}
#endregion
object ICloneable.Clone ()
{
throw new NotImplementedException ();
}
}
}
@@ -0,0 +1,93 @@
#region Licence
/// DB2DriverCS - A DB2 driver for .Net
/// Copyright 2003 By Christopher Bockner
/// Released under the terms of the MIT/X11 Licence
/// Please refer to the Licence.txt file that should be distributed with this package
/// This software requires that DB2 client software be installed correctly on the machine
/// (or instance) on which the driver is running.
#endregion
using System;
using System.Data;
using System.Collections;
using System.Globalization;
namespace DB2ClientCS
{
/// <summary>
/// Summary description for DB2ClientParameterCollection.
/// </summary>
public class DB2ClientParameterCollection : ArrayList, IDataParameterCollection
{
public object this[string index]
{
get
{
return this[IndexOf(index)];
}
set
{
this[IndexOf(index)] = value;
}
}
public bool Contains(string paramName)
{
return(-1 != IndexOf(paramName));
}
public int IndexOf(string paramName)
{
int index = 0;
foreach(DB2ClientParameter item in this)
{
if (0 == _cultureAwareCompare(item.ParameterName, paramName))
{
return index;
}
index++;
}
return -1;
}
public void RemoveAt(string paramName)
{
RemoveAt(IndexOf(paramName));
}
public override int Add(object value)
{
return Add((DB2ClientParameter)value);
}
public int Add(DB2ClientParameter value)
{
if (((DB2ClientParameter)value).ParameterName != null)
{
return base.Add(value);
}
else
throw new ArgumentException("parameter must be named");
}
public int Add(string paramName, DbType type)
{
return Add(new DB2ClientParameter(paramName, type));
}
public int Add(string paramName, object value)
{
return Add(new DB2ClientParameter(paramName, value));
}
public int Add(string paramName, DbType dbType, string sourceColumn)
{
return Add(new DB2ClientParameter(paramName, dbType, sourceColumn));
}
private int _cultureAwareCompare(string strA, string strB)
{
return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth | CompareOptions.IgnoreCase);
}
}
}
@@ -17,7 +17,7 @@ namespace DB2ClientCS
/// <summary>
/// DB2CLIPrototypes class is a wrapper for the db2cli.lib, IBM's Call Level Interface to DB2
/// </summary>
unsafe internal class DB2ClientPrototypes
internal class DB2ClientPrototypes
{
[DllImport("db2cli.dll", EntryPoint = "SQLAllocHandle")]
unsafe public static extern short SQLAllocHandle(short handleType, IntPtr inputHandle, ref IntPtr outputHandle);
@@ -28,7 +28,7 @@ namespace DB2ClientCS
[DllImport("db2cli.dll", EntryPoint = "SQLGetDiagRec")]
unsafe public static extern short SQLGetDiagRec( short handleType, IntPtr handle, short recNum, [Out] StringBuilder sqlState, ref IntPtr nativeErrorPtr, [Out] StringBuilder errorMessage, short bufferLength, ref IntPtr shortTextLengthPtr);
[DllImport("db2cli.Dll", EntryPoint = "SQLSetConnectAttr")]
unsafe public static extern short SQLSetConnectAttr(IntPtr sqlHdbc, long sqlAttr, IntPtr sqlValuePtr, long sqlStrLength);
unsafe public static extern short SQLSetConnectAttr(IntPtr sqlHdbc, long sqlAttr, [In] IntPtr sqlValuePtr, long sqlValueLength);
[DllImport("db2cli.Dll", EntryPoint = "SQLEndTran")]
unsafe public static extern short SQLEndTran (short handleType, IntPtr handle, short fType);
[DllImport("db2cli.Dll", EntryPoint = "SQLCancel")]
@@ -49,5 +49,20 @@ namespace DB2ClientCS
unsafe public static extern short SQLBindCol(IntPtr stmtHandle, ushort colNum, int dataType,[In][Out] IntPtr dataBufferPtr, int dataBufferLength, ref IntPtr StrLen_or_IndPtr);
[DllImport("db2cli.dll", EntryPoint = "SQLDriverConnect")]
unsafe public static extern short SQLDriverConnect(IntPtr hdbc, int centered, [In] string inConnectStr, [In] int inStrLength, [Out] StringBuilder outConnectStr, [Out] int outStrCapacity, [Out] IntPtr outStrLengthReturned, [In] int completion);
[DllImport("db2cli.dll", EntryPoint = "SQLPrepare")]
unsafe public static extern short SQLPrepare(IntPtr stmtHandle, string stmt, int length);
[DllImport("db2cli.dll", EntryPoint = "SQLDescribeParam")]
unsafe public static extern short SQLDescribeParam(IntPtr stmtHandle, short paramNumber,ref IntPtr dataType, ref IntPtr paramSize, ref IntPtr decimalDigits, ref IntPtr nullable);
[DllImport("db2cli.dll", EntryPoint = "SQLNumParams")]
unsafe public static extern short SQLNumParams(IntPtr stmtHandle, ref IntPtr numParams);
[DllImport("db2cli.dll")]
internal static extern short SQLBindParameter(IntPtr stmtHandle, ushort paramNumber,
short dataType, short valueType, short paramType, uint colSize, short decDigits,
byte[] dataBufferPtr, int dataBufferLength, int StrLen_or_IndPtr);
[DllImport("db2cli.dll", EntryPoint = "SQLBindParameter")]
unsafe public static extern short SQLBindParameter(IntPtr stmtHandle, ushort paramNumber,
short dataType, short valueType, short paramType, uint colSize, short decDigits,
ref int dataBufferPtr, int dataBufferLength, int StrLen_or_IndPtr);
}
}
@@ -8,6 +8,7 @@
#endregion
using System;
using System.Data;
using System.Runtime.InteropServices;
namespace DB2ClientCS
{
@@ -15,21 +16,22 @@ namespace DB2ClientCS
/// DB2ClientTransaction. DB2 requires nothing specific to be done to open a transaction, so we set the
/// isolation level, make sure AUTOCOMMIT is off. DB2 Also allows you to set transaction isolation
/// at the statement level, but I haven't worked that in here yet.
/// NOTE: AT THE MOMENT, SETTING OF THE ISOLATION LEVEL IS NOT WORKING
/// </summary>
public class DB2ClientTransaction : IDbTransaction
unsafe public class DB2ClientTransaction : IDbTransaction
{
DB2ClientUtils util = new DB2ClientUtils();
IsolationLevel IL = IsolationLevel.Unspecified;
DB2ClientConnection db2Conn;
public DB2ClientTransaction(DB2ClientConnection con, IsolationLevel isoL)
{
IL = isoL;
long db2IsoL = DB2ClientConstants.SQL_TXN_READ_COMMITTED;
db2Conn = con;
short sqlRet;
switch (isoL)
{
case System.Data.IsolationLevel.Chaos:
case System.Data.IsolationLevel.Chaos: //No DB2equivalent, default to SQL_TXN_READ_COMMITTED
break;
case System.Data.IsolationLevel.ReadCommitted: //SQL_TXN_READ_COMMITTED
db2IsoL = DB2ClientConstants.SQL_TXN_READ_COMMITTED;
@@ -45,10 +47,13 @@ namespace DB2ClientCS
break;
}
IL = isoL;
IntPtr iso = new IntPtr(db2IsoL);
IntPtr attr = new IntPtr(DB2ClientConstants.SQL_AUTOCOMMIT_OFF);
sqlRet = DB2ClientPrototypes.SQLSetConnectAttr(db2Conn.DBHandle, DB2ClientConstants.SQL_AUTOCOMMIT, attr, 0);
sqlRet = DB2ClientPrototypes.SQLSetConnectAttr(db2Conn.DBHandle, DB2ClientConstants.SQL_TXN_ISOLATION, iso, 0);
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_DBC, db2Conn.DBHandle, "Error setting AUTOCOMMIT OFF in transaction CTOR.");
// sqlRet = DB2ClientPrototypes.SQLSetConnectAttr(db2Conn.DBHandle, DB2ClientConstants.SQL_TXN_ISOLATION, iso, 0);
// util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_DBC, db2Conn.DBHandle, "Error setting TRANSCTION ISOLATION in transaction CTOR.");
}
+2
View File
@@ -7,3 +7,5 @@ Mono.Data.Db2Client/DB2ClientException.cs
Mono.Data.Db2Client/DB2ClientPrototypes.cs
Mono.Data.Db2Client/DB2ClientTransaction.cs
Mono.Data.Db2Client/DB2ClientUtils.cs
Mono.Data.Db2Client/DB2ClientParameter.cs
Mono.Data.Db2Client/DB2ClientParameterCollection.cs
@@ -1,3 +1,10 @@
2003-02-16 Daniel Morgan <[email protected]>
* SybaseConnection.cs: - parse data source for 2 possible uses:
"Server=hostname",
"Server=hostname,port" and open the connection based on the
resulting server name and port.
2002-12-01 Tim Coleman <[email protected]>
* Mono.Data.SybaseClient/SybaseDataReader.cs:
Change to reflect TdsSchemaInfo -> TdsDataColumnCollection
@@ -3,8 +3,10 @@
//
// Author:
// Tim Coleman ([email protected])
// Daniel Morgan ([email protected])
//
// Copyright (C) Tim Coleman, 2002
// Copyright (C) Tim Coleman, 2002, 2003
// Copyright (C) Daniel Morgan, 2003
//
using Mono.Data.Tds.Protocol;
@@ -16,6 +18,7 @@ using System.Data;
using System.Data.Common;
using System.EnterpriseServices;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace Mono.Data.SybaseClient {
@@ -282,16 +285,20 @@ namespace Mono.Data.SybaseClient {
[MonoTODO ("Figure out the Sybase way to reset the connection.")]
public void Open ()
{
string serverName = "";
if (connectionString == null)
throw new InvalidOperationException ("Connection string has not been initialized.");
try {
if (!pooling)
tds = new Tds50 (DataSource, port, PacketSize, ConnectionTimeout);
if (!pooling) {
ParseDataSource (dataSource, out port, out serverName);
tds = new Tds50 (serverName, port, PacketSize, ConnectionTimeout);
}
else {
pool = (SybaseConnectionPool) SybaseConnectionPools [connectionString];
if (pool == null) {
pool = new SybaseConnectionPool (dataSource, port, packetSize, ConnectionTimeout, minPoolSize, maxPoolSize);
ParseDataSource (dataSource, out port, out serverName);
pool = new SybaseConnectionPool (serverName, port, packetSize, ConnectionTimeout, minPoolSize, maxPoolSize);
SybaseConnectionPools [connectionString] = pool;
}
tds = pool.AllocateConnection ();
@@ -315,6 +322,22 @@ namespace Mono.Data.SybaseClient {
}
}
private void ParseDataSource (string theDataSource, out int thePort, out string theServerName)
{
theServerName = "";
thePort = 1433; // default TCP port for SQL Server
int idx = 0;
if ((idx = theDataSource.IndexOf (",")) > -1) {
theServerName = theDataSource.Substring (0, idx);
string p = theDataSource.Substring (idx + 1);
thePort = Int32.Parse (p);
}
else {
theServerName = theDataSource;
}
}
void SetConnectionString (string connectionString)
{
connectionString += ";";
@@ -1,3 +1,10 @@
2003-01-20 Gonzalo Paniagua Javier <[email protected]>
* Tds70.cs:
(FormatParameter): send input/output parameter names. This way we don't
depend on the parameter position being different of the index in the
parameter collection.
2002-12-10 Gonzalo Paniagua Javier <[email protected]>
* Tds.cs:
@@ -268,11 +268,12 @@ namespace Mono.Data.Tds.Protocol {
private string FormatParameter (TdsMetaParameter parameter)
{
if (parameter.Direction == TdsParameterDirection.Output)
return String.Format ("{0} output", parameter.ParameterName);
return String.Format ("{0}={0} output", parameter.ParameterName);
if (parameter.Value == null)
return "NULL";
return parameter.ParameterName + "=NULL";
string value = null;
switch (parameter.TypeName) {
case "bigint":
case "decimal":
@@ -283,23 +284,33 @@ namespace Mono.Data.Tds.Protocol {
case "smallint":
case "smallmoney":
case "tinyint":
return parameter.Value.ToString ();
value = parameter.Value.ToString ();
break;
case "nvarchar":
case "nchar":
return String.Format ("N'{0}'", parameter.Value.ToString ().Replace ("'", "''"));
value = String.Format ("N'{0}'", parameter.Value.ToString ().Replace ("'", "''"));
break;
case "uniqueidentifier":
return String.Format ("0x{0}", ((Guid) parameter.Value).ToString ("N"));
value = String.Format ("0x{0}", ((Guid) parameter.Value).ToString ("N"));
break;
case "bit":
if (parameter.Value.GetType () == typeof (bool))
return (((bool) parameter.Value) ? "0x1" : "0x0");
return parameter.Value.ToString ();
value = (((bool) parameter.Value) ? "0x1" : "0x0");
else
value = parameter.Value.ToString ();
break;
case "image":
case "binary":
case "varbinary":
return String.Format ("0x{0}", BitConverter.ToString ((byte[]) parameter.Value).Replace ("-", "").ToLower ());
value = String.Format ("0x{0}", BitConverter.ToString ((byte[]) parameter.Value).Replace ("-", "").ToLower ());
break;
default:
return String.Format ("'{0}'", parameter.Value.ToString ().Replace ("'", "''"));
value = String.Format ("'{0}'", parameter.Value.ToString ().Replace ("'", "''"));
break;
}
return parameter.ParameterName + "=" + value;
}
public override string Prepare (string commandText, TdsMetaParameterCollection parameters)
+7
View File
@@ -1,3 +1,10 @@
2003-02-16 Daniel Morgan <[email protected]>
* TdsConnection.cs: - parse data source for 2 possible uses:
"Server=hostname",
"Server=hostname,port" and open the connection based on the
resulting server name and port.
2002-12-01 Tim Coleman <[email protected]>
* Mono.Data.TdsClient/TdsDataReader.cs:
Change to reflect TdsSchemaInfo -> TdsDataColumnCollection
@@ -1,10 +1,12 @@
//
// Mono.Data.TdsClient.TdsConnection.cs
//
// Author:
// Authors:
// Tim Coleman ([email protected])
// Daniel Morgan ([email protected])
//
// Copyright (C) Tim Coleman, 2002
// Copyright (C) Tim Coleman, 2002, 2003
// Copyright (C) Daniel Morgan, 2003
//
using Mono.Data.Tds.Protocol;
@@ -16,6 +18,7 @@ using System.Data;
using System.Data.Common;
using System.EnterpriseServices;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace Mono.Data.TdsClient {
@@ -282,16 +285,20 @@ namespace Mono.Data.TdsClient {
[MonoTODO ("Figure out the Tds way to reset the connection.")]
public void Open ()
{
string serverName = "";
if (connectionString == null)
throw new InvalidOperationException ("Connection string has not been initialized.");
try {
if (!pooling)
tds = new Tds42 (DataSource, port, PacketSize, ConnectionTimeout);
if (!pooling) {
ParseDataSource (dataSource, out port, out serverName);
tds = new Tds42 (serverName, port, PacketSize, ConnectionTimeout);
}
else {
pool = (TdsConnectionPool) TdsConnectionPools [connectionString];
if (pool == null) {
pool = new TdsConnectionPool (dataSource, port, packetSize, ConnectionTimeout, minPoolSize, maxPoolSize);
ParseDataSource (dataSource, out port, out serverName);
pool = new TdsConnectionPool (serverName, port, packetSize, ConnectionTimeout, minPoolSize, maxPoolSize);
TdsConnectionPools [connectionString] = pool;
}
tds = pool.AllocateConnection ();
@@ -315,6 +322,22 @@ namespace Mono.Data.TdsClient {
}
}
private void ParseDataSource (string theDataSource, out int thePort, out string theServerName)
{
theServerName = "";
thePort = 1433; // default TCP port for SQL Server
int idx = 0;
if ((idx = theDataSource.IndexOf (",")) > -1) {
theServerName = theDataSource.Substring (0, idx);
string p = theDataSource.Substring (idx + 1);
thePort = Int32.Parse (p);
}
else {
theServerName = theDataSource;
}
}
void SetConnectionString (string connectionString)
{
connectionString += ";";
+3 -1
View File
@@ -1,4 +1,6 @@
*.pdb
*.dll
*.csproj.user
.makefrag
.response
library-deps.stamp
+11 -3
View File
@@ -1,10 +1,18 @@
2003-01-30 Rafael Teixeira <[email protected]>
* OptionDetails.cs : now handle composite arguments '/option:suboption'
2003-01-20 Duncan Mak <[email protected]>
* list.unix: Remove the extra reference to ArgumentProcessorAttribute.cs
2002-09-03 Rafael Teixeira <[email protected]>
* added AboutAttribute.cs, AuthorAttribute.cs, OptionAttribute.cs,
UsageComplementAttribute.cs, OptionDetails.cs, Options.cs.
Now reflection is used to drive de options processing.
UsageComplementAttribute.cs, OptionDetails.cs, Options.cs.
Now reflection is used to drive the options processing.
* added GetOptTest test subproject
* added GetOptTest test subproject
2002-08-30 Juli Mallett <[email protected]>
+12 -5
View File
@@ -31,6 +31,7 @@ namespace Mono.GetOptions
public MemberInfo MemberInfo;
public ArrayList Values;
public System.Type ParameterType;
public string ParamName = "PARAM"; // TODO: another element to get from OptionAttribute
public override string ToString()
{
@@ -42,11 +43,10 @@ namespace Mono.GetOptions
if (NeedsParameter)
{
if (this.LongForm != string.Empty && this.LongForm != null)
optionHelp += "=PARAM";
else
optionHelp += "PARAM";
optionHelp += "=";
optionHelp += ParamName;
}
optionHelp = optionHelp.PadRight(23) + " ";
optionHelp = optionHelp.PadRight(26) + " ";
optionHelp += this.ShortDescription;
return optionHelp;
}
@@ -189,11 +189,18 @@ namespace Mono.GetOptions
public bool ProcessArgument(string arg, string nextArg)
{
if (arg == ("-" + ShortForm) || arg == ("--" + LongForm))
if (arg == ("-" + ShortForm) || arg == ("--" + LongForm) ||
arg == ("/" + ShortForm) || arg == ("/" + LongForm))
{
DoIt(nextArg);
return true;
}
string temp = (arg + ":" + nextArg).TrimStart('-','/');
if (temp == LongForm)
{
DoIt(null);
return true;
}
return false;
}
}
+4 -9
View File
@@ -1,11 +1,9 @@
//
// OptionList.cs
//
// Author: Rafael Teixeira ([email protected]) (original)
// Author: Dean Scarff ([email protected]) (modifications)
// Author: Rafael Teixeira ([email protected])
//
// (C) 2002 Rafael Teixeira
// Modifications (C) 2002 Dean Scarff, distributed under the Gnu General Public License Version 2 or later
//
using System;
@@ -298,11 +296,8 @@ namespace Mono.GetOptions
if ((parsingMode & OptionsParsingMode.Windows) > 0)
{
if ((arg.Length == 2) && (arg[0] == '/')) // Windows options only come in this fashion
{
result.Add("-" + arg[1]); // translate to Linux style
continue;
}
if (arg[0] == '/')
result.AddRange(arg.Split(':'));
}
if ((parsingMode & OptionsParsingMode.Linux) > 0)
@@ -362,7 +357,7 @@ namespace Mono.GetOptions
OptionWasProcessed = false;
if (arg.StartsWith("-"))
if (arg.StartsWith("-") || arg.StartsWith("/"))
{
foreach(OptionDetails option in list)
{
-1
View File
@@ -41,7 +41,6 @@ namespace Mono.GetOptions
return optionParser.DoUsage();
}
}
}
-1
View File
@@ -1,7 +1,6 @@
AssemblyInfo.cs
ArgumentProcessorAttribute.cs
AboutAttribute.cs
ArgumentProcessorAttribute.cs
AuthorAttribute.cs
OptionAttribute.cs
UsageComplementAttribute.cs
+50 -101
View File
@@ -8,60 +8,31 @@ using System.Runtime.InteropServices;
namespace Mono.PEToolkit {
/// <summary>
/// IMAGE_FILE_HEADER
/// </summary>
[StructLayoutAttribute(LayoutKind.Sequential)]
public struct COFFHeader {
public class COFFHeader {
internal MachineId machine;
internal short sections;
internal uint tdStampRaw;
internal uint symTabPtr;
internal uint numSymbols;
internal short optHeaderSize;
internal Characteristics characteristics;
private MachineId machine;
private short sections;
private uint tdStampRaw;
private uint symTabPtr;
private uint numSymbols;
private short optHeaderSize;
private Characteristics characteristics;
/// <summary>
/// Machine identifier.
/// </summary>
public MachineId Machine {
get {
return machine;
}
set {
machine = value;
}
get { return machine; }
set { machine = value; }
}
/// <summary>
/// </summary>
public short NumberOfSections {
get {
return sections;
}
set {
sections = value;
}
get { return sections; }
set { sections = value; }
}
/// <summary>
/// </summary>
public uint TimeDateStamp {
get {
return tdStampRaw;
}
set {
tdStampRaw = value;
}
get { return tdStampRaw; }
set { tdStampRaw = value; }
}
/// <summary>
/// </summary>
public DateTime TimeStamp {
get {
return (new DateTime(1970, 1, 1) +
@@ -69,83 +40,62 @@ namespace Mono.PEToolkit {
}
}
/// <summary>
/// </summary>
public uint PointerToSymbolTable {
get {
return symTabPtr;
}
set {
symTabPtr = value;
}
get { return symTabPtr; }
set { symTabPtr = value; }
}
/// <summary>
/// </summary>
public uint NumberOfSymbols {
get {
return numSymbols;
}
set {
numSymbols = value;
}
get { return numSymbols; }
set { numSymbols = value; }
}
/// <summary>
/// </summary>
public short SizeOfOptionalHeader {
get {
return optHeaderSize;
}
set {
optHeaderSize = value;
}
get { return optHeaderSize; }
set { optHeaderSize = value; }
}
/// <summary>
/// </summary>
public Characteristics Characteristics {
get {
return characteristics;
}
set {
characteristics = value;
}
get { return characteristics; }
set { characteristics = value; }
}
/// <summary>
/// </summary>
unsafe public void Read(BinaryReader reader) {
fixed (void* pThis = &this) {
PEUtils.ReadStruct(reader, pThis, sizeof (COFFHeader), typeof (COFFHeader));
}
public void Read (BinaryReader reader)
{
machine = (MachineId) reader.ReadUInt16 ();
sections = reader.ReadInt16 ();
tdStampRaw = reader.ReadUInt32 ();
symTabPtr = reader.ReadUInt32 ();
numSymbols = reader.ReadUInt32 ();
optHeaderSize = reader.ReadInt16 ();
characteristics = (Characteristics) reader.ReadUInt16 ();
}
public void Write (BinaryWriter writer)
{
writer.Write ((ushort)machine);
writer.Write (sections);
writer.Write (tdStampRaw);
writer.Write (symTabPtr);
writer.Write (numSymbols);
writer.Write (optHeaderSize);
writer.Write ((ushort)characteristics);
}
/// <summary>
/// </summary>
/// <param name="writer"></param>
public void Dump(TextWriter writer)
{
writer.WriteLine(
"Machine ID : {0}" + Environment.NewLine +
"Machine ID : {0}" + Environment.NewLine +
"Sections : {1}" + Environment.NewLine +
"timestamp : {2}" + Environment.NewLine +
"Characteristics : {3}" + Environment.NewLine,
machine, sections,
TimeStamp + " (" + tdStampRaw.ToString("X") + ")",
characteristics + " (0x" + characteristics.ToString("X") + ")"
"Characteristics : {2}" + Environment.NewLine +
"timestamp : {3}" + Environment.NewLine
,machine, sections, (ushort)characteristics,
TimeStamp + " (" + tdStampRaw.ToString("X") + ")"
);
}
}
/// <summary>
/// </summary>
/// <returns></returns>
public override string ToString()
{
StringWriter sw = new StringWriter();
@@ -153,7 +103,6 @@ namespace Mono.PEToolkit {
return sw.ToString();
}
}
}
+45
View File
@@ -0,0 +1,45 @@
2003-02-23 Peter Williams <[email protected]>
* makefile.gnu (all): Give this dependencies
so that we don't rebuild every time.
(all): Take two.
2003-02-22 Jackson Harper <[email protected]>
* Image.cs: Write CorHeader
2003-02-22 Jackson Harper <[email protected]>
* Image.cs: Write Sections
2003-02-22 Jackson Harper <[email protected]>
* Section.cs: Add method for writing Sections
2003-02-21 Jackson Harper <[email protected]>
* Section.cs: Add Method to write Headers
2003-02-21 Jackson Harper <[email protected]>
* Section.cs: Make Read method safe
2003-02-21 Jackson Harper <[email protected]>
* Section.cs: Convert Header to a class and lowers it accesability.
2003-02-17 Jackson Harper <[email protected]>
* COFFHeader.cs: Convert to class, use Read and Write methods. Compress some code
* CheckSum.cs: Access Lfanew through property not field.
* CorHeader.cs: Convert to class, use Read and Write methods.
* DOSHeader.cs: Convert to class, use Read and Write methods, and Init method for creating
new DOSHeaders
* DataDir.cs: Convert to class, use Read and Write methods.
* Image.cs: Access lfanew through property, add Write method.
* PEHeader.cs: Convert to class, use Read and Write methods.
* PEUtils.cs: Add GetString method for converting byte pointers to strings.
* RVA.cs: Add Write method
* Section.cs: Use PEUtils.GetString method instead of new string (byte*)
* makefuile.gnu: Compile all the files I want compiled ;-)
+1 -1
View File
@@ -37,7 +37,7 @@ namespace Mono.PEToolkit {
PEHeader peHdr = new PEHeader();
dosHdr.Read (reader);
reader.BaseStream.Position = dosHdr.lfanew;
reader.BaseStream.Position = dosHdr.Lfanew;
ExeSignature peSig = (ExeSignature) reader.ReadUInt16();
if (peSig != ExeSignature.NT) {
throw new BadImageException("Checksum : Invalid image format, cannot find PE signature.");
Loaded 100 of 1109 files, more files were not shown because too many files have changed in this diff. Show more