Re: [Mono-dev] Soft Debugger issues (can't suspend threads in wait_for_suspend)

2011-01-26 Thread Levi Bard
 Turns out it might be due to Win32 limitations (QueueUserAPC works only if
 SleepEx/WaitForMultipleObjectsEx etc... are used), as notify_thread_apc is
 never called back.
 I can fix that on my own threads. However, finalizer thread should use such
 functions as well otherwise it will always hang internally.

What version of mono are you using? I believe this was fixed several
months ago in the 2.6 and later branches.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] xsp2 won't run when invoked as service

2011-01-26 Thread Tomasz Kubacki
hi,

Marek Habersack helped me to find a solution! (Thanks Marek !)

the problem solver was to add --nonstop as xsp parameter.

As Marek says with this option xsp will not try to read from stdin
(which s redirected to /dev/null by default)

Cheers,

Tomasz Kubacki



Dnia 2011-01-16, nie o godzinie 21:54 -0600, Eddy Zavaleta pisze:
 Googling a little I found another clue.
 
 
 I've learned sometime that apache only likes those folders where it
 can list+read the parent-folders. Means if you have /foo/bar/fu and
 'fu' is the folder apache accesses, it also wants to be able to read 
 list 'foo' and 'bar'.
 
 
 Give it a chance...
 
 On Fri, Jan 14, 2011 at 10:41 AM, Tomasz Kubacki
 tomasz.kuba...@gmail.com wrote:
 hi,
 
 Thanks for clue, but it did not help.
 
 I've done:
 
 chmod -R a+rwx myapp
 
 and the result is the same as in previous email.
 
 Tomasz Kubacki
 
 
 Dnia 2011-01-12, śro o godzinie 19:40 -0600, Eddy Zavaleta
 pisze:
 
  Hi,
 
 
  It seems to be an access right (permission) problem.
  You should verify what user own the service and if that user
 has
  access to your app's path.
 
 
  To make sure everyone can read your app's path try
 executing:
  $ chmod -R a+r /path/to/your/web/app
 
 
 
  On Wed, Jan 12, 2011 at 4:18 PM, Tomasz Kubacki
  tomasz.kuba...@gmail.com wrote:
  Hi,
  I've sheeva plug box (arm) with default mono 2.6.1
 and
  facing strange issue.
  I can run my asp.net app from console without any
 problems,
  but when i try to run it as a service i've got below
 error on
  request.
  What can cause this ?
 
 
  cheers,
 
 
  Tomasz Kubacki
  -
 
 
  Error: System.UnauthorizedAccessException: Access to
 the path
  /root/Piecyk/[Unknown] is denied.
at System.IO.FileStream.ReadData (IntPtr handle,
  System.Byte[] buf, Int32 offset, Int32 count)
 [0x0] in
  filename unknown:0
at System.IO.FileStream.ReadInternal
 (System.Byte[] dest,
  Int32 offset, Int32 count) [0x0] in filename
 unknown:0
at System.IO.FileStream.Read (System.Byte[] array,
 Int32
  offset, Int32 count) [0x0] in filename
 unknown:0
at System.IO.StreamReader.ReadBuffer () [0x0]
 in
  filename unknown:0
at System.IO.StreamReader.ReadLine () [0x0] in
 filename
  unknown:0
at System.IO.UnexceptionalStreamReader.ReadLine ()
 [0x0]
  in filename unknown:0
at System.IO.SynchronizedReader.ReadLine ()
 [0x0] in
  filename unknown:0
at System.Console.ReadLine () [0x0] in
 filename
  unknown:0
at Mono.WebServer.XSP.Server.RealMain
 (System.String[] args,
  Boolean root, IApplicationHost ext_apphost, Boolean
 quiet)
  [0x0] in filename unknown:0
 
 
 
  ___
  Mono-devel-list mailing list
  Mono-devel-list@lists.ximian.com
 
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 
 
  --
  Eddy Zavaleta
  mictlanix.org
 
 
 
 
 
 
 
 
 
 
 -- 
 Eddy Zavaleta
 mictlanix.org
 
 
 


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Make it go faster

2011-01-26 Thread Rodrigo Kumpera
Can you post a code sample where this 2.5x performance loss happens?
Mono is usually slower, but should not be by all of that.

On Wed, Jan 26, 2011 at 10:25 AM, McLachlan, Charles 
cmclach...@illumina.com wrote:

 I have a heavily used path in my code that iterates over a big array and
 does a bit of maths.

 Mono 2.8 on 64bit linux seems to be about 2.5 times slower than .NET on
 64bit Windows.

 The path is pure .NET, but other bits of the program use native
 libraries for other computationally intensive bits. This means the whole
 lot is compiled with -unsafe.

 I have tried compiling the code with both Visual Studio and dmcs. Both
 executables run in the same sort of times (i.e. the speed hit is coming
 from the different virtual machine, not the compiler producing bad
 byte-code).

 Is there any voodoo I can give mono (at runtime) to make it do
 maths/array traversal faster?
 (or any web page that describes how to make it go faster?)

 I have tried --aot, followed by --optimize=aot as well as various
 combinations of --optimise=loop,aot,all all with no appreciable change.
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Unit testing an assembly: Makefile, std test suite, and reviewing.

2011-01-26 Thread Antoine Cailliau
Hi all,

I implemented System.ComponentModel.DataAnnotations.
RegularExpressionAttribute. And I wrote some unit tests
to check if it works. I've 3 questions for you.

First, my tests are not compiled, nor run. Where should I add
a reference to my new test class ? I didn't see any mention
in any makefile... I'm lost :-)

Second, in other tests I see references like #A1-1. Does it
refer to standard test suites? If so, where I can find these?
Or their specifications.

Third, once I'm sure that everything is ok. What's the process
for making it reviewed by some of you? Should I do a pull
request on github? Sending a mail here?

Thanks in advance for your answers,

Antoine
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Unit testing an assembly: Makefile, std test suite, and reviewing.

2011-01-26 Thread Robert Jordan
Hi,

On 26.01.2011 14:10, Antoine Cailliau wrote:
 Hi all,

 I implemented System.ComponentModel.DataAnnotations.
 RegularExpressionAttribute. And I wrote some unit tests
 to check if it works. I've 3 questions for you.

 First, my tests are not compiled, nor run. Where should I add
 a reference to my new test class ? I didn't see any mention
 in any makefile... I'm lost :-)

Sources are added to:

class/assembly/assembly.dll.sources

and test sources to:

class/assembly/assembly_test.dll.sources

In your case:
System.ComponentModel.DataAnnotations.dll.sources
System.ComponentModel.DataAnnotations_test.dll.sources

 Second, in other tests I see references like #A1-1. Does it
 refer to standard test suites? If so, where I can find these?
 Or their specifications.

The unit test messages are up to you.

 Third, once I'm sure that everything is ok. What's the process
 for making it reviewed by some of you? Should I do a pull
 request on github?

This.

Robert

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Unit testing an assembly: Makefile, std test suite, and reviewing.

2011-01-26 Thread Antoine Cailliau
Hi,

  System.ComponentModel.DataAnnotations.dll.sources
  System.ComponentModel.DataAnnotations_test.dll.sources
Thanks.

  Third, once I'm sure that everything is ok. What's the process
  for making it reviewed by some of you? Should I do a pull
  request on github?
 
  This.
I complied.

Ps: sorry for the noise Robert, I clicked on the wrong reply button.

-- 
Antoine Cailliau
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] C++ Interop

2011-01-26 Thread Sebastian Good
Thanks for the pointer. Indeed some simple how-to or tutorial documents
would be lovely, and I'm guessing that's what'll come out of the talk.
Looking forward to it. We have some C++ interop nuts to crack, and while
SWIG certainly does much of the job, it's always interesting to compare
approaches.

On Wed, Jan 26, 2011 at 1:25 AM, Alex Corrado
alexander.corr...@gmail.comwrote:


 On Tue, Jan 25, 2011 at 5:54 PM, Sebastian Good 
 sebast...@palladiumconsulting.com wrote:

 It was with great interest I read about the upcoming FOSDEM presentation
 on Mono C++ Interop. I was unaware such an project had been started. I
 looked at http://www.mono-project.com/Interop_with_Native_Libraries and
 http://www.mono-project.com/CPlusPlus and didn't see any mention of it.
 Is the result of the summer-of-code project documented somewhere?


 I am also excited to hear about this talk. There isn't much written
 documentation on the project yet, though perhaps the pages you mention
 should be updated to mention it. For now, there's the code at
 https://github.com/nirvanai/cppinterop, which holds the work I've done
 over the summer and since. I'd also be happy to answer any questions about
 it.

 Best,

 Alex Corrado




-- 
*Sebastian Good*
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Using Mono.CSharp in a syntax highlighting engine

2011-01-26 Thread David Mitchell
A couple weeks ago, I started playing around with Mono.CSharp to see if I could 
get enough information from it to hook it up to a syntax highlighter. In order 
to do so, I would need to be able to get a mapping of ranges of characters to 
lexical values (keyword, type name, etc.). After some poking around, I was 
finally able to get a very limited amount of information (mostly with respect 
to the namespaces found in a file), but not nearly enough to do what I want.

Was this an anticipated use of Mono.CSharp? Does anyone have any pointers for 
how to use it in this manner?

Thanks,
— Dave
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Using Mono.CSharp in a syntax highlighting engine

2011-01-26 Thread Miguel de Icaza
Hello,

 Was this an anticipated use of Mono.CSharp? Does anyone have any pointers
 for how to use it in this manner?

To generate code dynamically from C# text.The use as a syntax
highlighter is probably not going to be very good.

You found a first few issues with it, but you will run into more.
The internal tree created during parsing does not really correspond
with a textual interpretation of the source, but a transformation that
is useful by the compiler.   So you would have to undo that in several
places, or fork the code for your particular needs.

Miguel
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Make it go faster

2011-01-26 Thread Miguel de Icaza
 That will compile most IL code using the LLVM optimizing compiler instead of
 the mono JIT. The next mono release, 2.10 will have llvm enabled official
 packages.

I am pretty sure that our 2.8 packages shipped with LLVM support.

Another hack that we do not really encourage, but you might find
useful is to disable arrays bounds checking (only useful if you are
processing a lot of arrays).   You can toggle that by using mono
-O=unsafe
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Using Mono.CSharp in a syntax highlighting engine

2011-01-26 Thread Rafael Teixeira
Why don't you look inside/reuse MonoDevelop's C# Syntax-Highlighter?

Rafael Monoman Teixeira
---
We live in a world operated by science and technology. We have also
arranged things so that almost no one understands science and
technology. This is a prescription for disaster. We might get away
with it for a while, but sooner or later this combustible mixture of
ignorance and power is going to blow up in our faces.
-Carl Sagan



On Wed, Jan 26, 2011 at 3:13 PM, David Mitchell dmitch...@logos.com wrote:
 A couple weeks ago, I started playing around with Mono.CSharp to see if I
 could get enough information from it to hook it up to a syntax highlighter.
 In order to do so, I would need to be able to get a mapping of ranges of
 characters to lexical values (keyword, type name, etc.). After some poking
 around, I was finally able to get a very limited amount of information
 (mostly with respect to the namespaces found in a file), but not nearly
 enough to do what I want.
 Was this an anticipated use of Mono.CSharp? Does anyone have any pointers
 for how to use it in this manner?
 Thanks,
 — Dave
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] AOT + the osx installer.

2011-01-26 Thread Brian Luczkiewicz

 Perhaps we could provide the option for the user to toggle those on
 and off at install time.


Sounds good to me.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] AOT + the osx installer.

2011-01-26 Thread Brian Luczkiewicz

  This is great news, as we just recently enabled this.

 Was this with LLVM or with the regular AOT?


Regular AOT.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Advanced Text Drawing Support?

2011-01-26 Thread jddunlap

I am trying to port a library that needs direct control over the placement of
the individual characters in the text it draws - basically all I need is to
be able to get a series of character widths, and then make a drawing call
where I send character positions for each character along with the actual
text.

On .NET + Windows I use DrawDriverString via P/Invoke to draw the text. I
know this method is not implemented in libgdiplus, but is there an
alternative?

In the Windows version I use GDI's GetCharacterPlacement API to get the
widths. MeasureCharacterRanges would work, but with the MS GDI+
implementation, it has a 32-character limit so I avoided it - does it have
this limit with Mono's libgdiplus?

My library depends on a 3rd-party library that uses System.Drawing, so I
have to be able to render the text on a Graphics object (i.e. I can't just
switch everything over to Cairo). I would prefer not to force it to depend
on WINE, just for one or two APIs. Is there any way I can control character
placement in Mono, without making a separate call for each character (which
would totally kill perf)?
-- 
View this message in context: 
http://mono.1490590.n4.nabble.com/Advanced-Text-Drawing-Support-tp3238634p3238634.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] [mono-packagers] Mono 2.10 RC1

2011-01-26 Thread Jo Shields
On Sun, 2011-01-23 at 19:56 +, Jo Shields wrote:
 * The test suite fails to build. That's not intentional.

Bug #1: missing mono/tests/finally_guard.cs from tarball 
(seems fixed in e50fc47fd550ba957534)

Bug #2: missing mcs/class/Mono.Debugger.Soft/Test/dtest-app.cs from
tarball 
(not fixed in mono-2-10 as of now)

Bug #3: missing mcs/class/Mono.Debugger.Soft/Test/dtest-excfilter.il
from tarball 
(not fixed in mono-2-10 as of now)

Bug #4: missing MONO_PATH=./../../class/lib/net_2_0:$MONO_PATH from
mono-wrapper invocation in mcs/class/Mono.Debugger.Soft/Makefile (via
$(INTERNAL_ILASM) - causes failure unless 2.0 mscorlib happens to be
available in the --prefix mono was built to use, even though make
check should work before make install 
(not fixed in mono-2-10 as of now)

Bug #5: MCS [net_2_0] System.Web.Extensions_test_net_2_0.dll
Test/../../System.Web/Test/mainsoft/NunitWeb/NunitWeb/MyTemplateControls.cs(39,38):
 error CS0507: `MyTemplateControls.TestTemplateControl.CreateChildControls()': 
cannot change access modifiers when overriding `protected' inherited member 
`System.Web.UI.Control.CreateChildControls()' 
(seems fixed in f54988c03bc5257917a4)

Bug #6: MCS [net_2_0] System.Web.DynamicData_test_net_2_0.dll
Test/../../System.Web/Test/mainsoft/NunitWeb/NunitWeb/MyTemplateControls.cs(43,19):
 error CS0507: `MyTemplateControls.TestTemplateControl.CreateChildControls()': 
cannot change access modifiers when overriding `protected' inherited member 
`System.Web.UI.Control.CreateChildControls()'
(not fixed in mono-2-10 as of now, same bug  fix as #5)

Bug #7: MCS [net_2_0] System.Data.Services_test_net_2_0.dll
Test/./DataServiceTests.cs(47,27): error CS0012: The type
`System.ServiceModel.Channels.Message' is defined in an assembly that is
not referenced. Consider adding a reference to assembly
`System.ServiceModel, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'
Caused because mcs/build/tests.make doesn't populate $(TEST_MCS_FLAGS)
with the contents of $(LIB_MCS_FLAGS) which are how
mcs/class/System.Data.Services/Makefile specifies its references (which
are also needed by the test version)
(not fixed in mono-2-10 as of now)

There are more. The nunit tests bail out on the corlib, but it's almost
2am and I started this almost 4 hours ago, so I'm going to bed. More
tomorrow, maybe


signature.asc
Description: This is a digitally signed message part
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Crystal reports in mono

2011-01-26 Thread Cesar Rabelo L JR
Hi, is possible use crystal reports in mono? if not, what is the solution
for reports?

-- 
César Rabelo
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Crystal reports in mono

2011-01-26 Thread Daniel Sell
http://go-mono.com/forums/#nabble-td3079887%7Ca3208428

On Wed, Jan 26, 2011 at 10:16 AM, Cesar Rabelo L JR
cesarrab...@gmail.comwrote:

 Hi, is possible use crystal reports in mono? if not, what is the solution
 for reports?

 --
 César Rabelo


 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] MonoTools -- remote test runner?

2011-01-26 Thread Sebastian Good
Is it possible using MonoTools -- or to extend MonoTools -- to run unit tests 
remotely? It would be very convenient to be able to kick off one or more NUnit 
tests on a mono target. 



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] [mono-packagers] Mono 2.10 RC1

2011-01-26 Thread Zoltan Varga
Hi,

  The Mono.Debugger.Soft issues should be fixed in d2fddf50625649474c8f209.

On Thu, Jan 27, 2011 at 2:53 AM, Jo Shields direct...@apebox.org wrote:

 On Sun, 2011-01-23 at 19:56 +, Jo Shields wrote:
  * The test suite fails to build. That's not intentional.

 Bug #1: missing mono/tests/finally_guard.cs from tarball
 (seems fixed in e50fc47fd550ba957534)

 Bug #2: missing mcs/class/Mono.Debugger.Soft/Test/dtest-app.cs from
 tarball
 (not fixed in mono-2-10 as of now)

 Bug #3: missing mcs/class/Mono.Debugger.Soft/Test/dtest-excfilter.il
 from tarball
 (not fixed in mono-2-10 as of now)

 Bug #4: missing MONO_PATH=./../../class/lib/net_2_0:$MONO_PATH from
 mono-wrapper invocation in mcs/class/Mono.Debugger.Soft/Makefile (via
 $(INTERNAL_ILASM) - causes failure unless 2.0 mscorlib happens to be
 available in the --prefix mono was built to use, even though make
 check should work before make install
 (not fixed in mono-2-10 as of now)

 Bug #5: MCS [net_2_0] System.Web.Extensions_test_net_2_0.dll
 Test/../../System.Web/Test/mainsoft/NunitWeb/NunitWeb/MyTemplateControls.cs(39,38):
 error CS0507:
 `MyTemplateControls.TestTemplateControl.CreateChildControls()': cannot
 change access modifiers when overriding `protected' inherited member
 `System.Web.UI.Control.CreateChildControls()'
 (seems fixed in f54988c03bc5257917a4)

 Bug #6: MCS [net_2_0] System.Web.DynamicData_test_net_2_0.dll
 Test/../../System.Web/Test/mainsoft/NunitWeb/NunitWeb/MyTemplateControls.cs(43,19):
 error CS0507:
 `MyTemplateControls.TestTemplateControl.CreateChildControls()': cannot
 change access modifiers when overriding `protected' inherited member
 `System.Web.UI.Control.CreateChildControls()'
 (not fixed in mono-2-10 as of now, same bug  fix as #5)

 Bug #7: MCS [net_2_0] System.Data.Services_test_net_2_0.dll
 Test/./DataServiceTests.cs(47,27): error CS0012: The type
 `System.ServiceModel.Channels.Message' is defined in an assembly that is
 not referenced. Consider adding a reference to assembly
 `System.ServiceModel, Version=3.0.0.0, Culture=neutral,
 PublicKeyToken=b77a5c561934e089'
 Caused because mcs/build/tests.make doesn't populate $(TEST_MCS_FLAGS)
 with the contents of $(LIB_MCS_FLAGS) which are how
 mcs/class/System.Data.Services/Makefile specifies its references (which
 are also needed by the test version)
 (not fixed in mono-2-10 as of now)

 There are more. The nunit tests bail out on the corlib, but it's almost
 2am and I started this almost 4 hours ago, so I'm going to bed. More
 tomorrow, maybe

 ___
 mono-packagers-list mailing list
 mono-packagers-l...@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-packagers-list


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list