Re: [Mono-list] Can this linq be optimised?

2013-06-06 Thread Rolf Bjarne Kvinge
Hi,

If you have lots of duplicates it _might_ be faster to pass a custom
comparison function to Distinct() and then fixup the resulting strings in
the tmp list afterwards instead.

Another thing you might want to try is to check if the string actually
needs modification instead of always creating substrings and then
concatenating them, even if the result would be identical to the input.

Rolf

On Wed, Jun 5, 2013 at 1:32 AM, Paul Johnson wrote:

> Hi,
>
> I have a class containing ints, strings and anything else you'd expect to
> find in a class. I create a list of the class and then extract the strings
> and perform a Distinct() on them. That bit is easy.
>
> Problem is this - the strings all have something in brackets. Sometimes
> the braces have a space on the inside before and after the single word
> inside of them and sometimes they don't.
>
> My LINQ query looks like this
>
>  List tmp = (from m in cropTypes
>   let cw = m.CropName
>   let kw = cw.Substring(0,
> cw.LastIndexOf(")") + 1)
> let t = kw.IndexOf('(')
> let p1 = kw.Substring(0, t)
> let p2 = kw.Substring(t, (kw.Length - 1) -
> t + 1).Replace(" ", string.Empty)
> let p3 = p1 + p2
>   select p3).Distinct().ToList();
>
> This query works fine but looks inefficient. Is there a way to rewrite
> this to remove any spaces inside of the braces?
>
> Thanks
>
> Paul
> --
> "Space," it says, "is big. Really big. You just won't believe how vastly,
> hugely, mindbogglingly big it is. I mean, you may think it's a long way
> down the road to the chemist's, but that's just peanuts to space, listen..."
> Hitch Hikers Guide to the Galaxy, a truly remarkable book!
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Ported code from VB6 to VB.NET problem

2013-03-21 Thread Rolf Bjarne Kvinge
Hi,

On Thu, Mar 21, 2013 at 4:57 PM, Paul Johnson
 wrote:
> Hi,
>
> I've ported some of my old code from VB6 to VB.NET and have fixed just about
> all of the issues except for one.
>
> In VB6, there are collection arrays (so you can have the likes of an array
> of buttons etc). To get around the lack of these in VB.NET, I'm using a List
> for them
>
> For example
>
> Dim WithEvents cmdButtons As New List(Of Button)
>
> then in the Load event
>
> cmdButtons.AddRange(New Button() {_cmdButton_0, _cmdButton_1})
>
> etc
>
> This works fine. The problem is with the event handling. You obviously can't
> trigger a Click event (say) on a List.
>
> Short of creating a tonne of the same methods to fire off the events for
> each cmdButton, is there some generic way that everything within that List
> fires off the event?

The easiest solution is to not use WithEvents, but attach event
handlers manually (in any case your WithEvents declaration is wrong,
you'd be listening for events on the List, not events from the
individual buttons).

For Each button In cmdButtons
AddHandler button.Click, cmdButton_Click
Next

Rolf

>
> Paul
> --
> "Space," it says, "is big. Really big. You just won't believe how vastly,
> hugely, mindbogglingly big it is. I mean, you may think it's a long way down
> the road to the chemist's, but that's just peanuts to space, listen..."
> Hitch Hikers Guide to the Galaxy, a truly remarkable book!
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Where can I get Mono.Options.dll ?

2012-10-08 Thread Rolf Bjarne Kvinge
Hi,

Actually Mono.Options isn't shipped as a library, it's a single source file
you're supposed to add to your project.

As already answered by Ryan, the file is here:
https://github.com/mono/mono/tree/master/mcs/class/Mono.Options/Mono.Options

Rolf

On Sun, Oct 7, 2012 at 6:28 PM, Kervin L. Pierre wrote:

> Hello,
>
> Where can I get Mono.Options.dll?
>
> http://docs.go-mono.com/?link=N%3aMono.Options
>
> It doesn't seem to exist with the Mono dlls.
>
> pkg-config --variable=Sources mono-options
>
> ...returns an empty string.
>
> How do I get this library?
>
> Thanks,
> Kervin
>
> Business Web Development
> http://adevsoft.com/
>
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Are mono nightly builds available?

2012-07-16 Thread Rolf Bjarne Kvinge
Hi,

You can find builds here:
https://wrench.mono-project.com/Wrench/index.aspx?lane=mono

Rolf

On Mon, Jul 9, 2012 at 10:23 AM, Lionel Cuir wrote:

> Hi,
>
>
>
> I’m wondering if there is a place where to download mono’s nightly builds?
> (to test some of mono’s latest feature without having to recompile from
> source).
>
>
>
> Regards
>
> Lionel
>
>
>
>
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Async sockets and memory leaks in BeginSend

2012-05-23 Thread Rolf Bjarne Kvinge
Hi,

Which version of Mono are you using? I believe this particular scenario has
been improved a lot in mono master, so can you try that if you're not
already using it?

Rolf

On Mon, May 21, 2012 at 10:51 PM, xplicit  wrote:

> I am developing server with mono using async socket model. Currently it's
> about 500 simultaneously working clients with 20-100 operations per
> seconds.
> The code should send messages accordingly theirs creation time, so I use
> such pattern:
>
> Send()
> {
>//Dequeue message from queue. Messages placed in the queue accordingly
> theirs creation time
>SendStateObject state=new SendStateObject();
>state.buffer=Dequeue();
>state.socket=client;
>
>//some checks in the code were removed, this function is called only
> when no other send callbacks were ran
>client.BeginSend(state.buffer, 0, state.buffer.Length, SocketFlags.None,
> new AsyncCallback(SendCallback), state);
>
> }
>
> private void SendCallback(IAsyncResult ar)
> {
>SendStateObject sendState = (SendStateObject)ar.AsyncState;
>Socket client = sendState.workSocket;
>
>try
>{
>  client.EndSend(ar);
>}
>catch() /*Some exceptions handling */
>{}
>finally
>{
>  sendState.buffer=null;
>  sendState.workSocket=null;
>}
>
>if (SomeItemsInQueue()) Send();
>
> }
>
> And this code produces huge memory leaks under high load. Profiler says,
> that there are millions of AsyncCallback objects and
> System.Net.Sockets.SocketAsyncResult objects.
>
> I think, I could minimize number of AsyncCallback objects by creating it
> only one time in constructor and passing it to BeginSend (I'll check it
> later), but what to do with SocketAsyncResult (and byte buffers which it
> contains in)?
> I don't create this object, it's created inside of BeginSend and in most
> cases it is not claimed by garbage collector.
>
> Maybe I use wrong pattern and must remove calling Send() from the end line
> of callback, but I don't understand, why these objects could not be freed
> by
> GC...
>
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Async-sockets-and-memory-leaks-in-BeginSend-tp4648844.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] AOT compile a static library.

2012-03-26 Thread Rolf Bjarne Kvinge
Hi,

On Sun, Mar 25, 2012 at 1:40 PM, Ergwun  wrote:

>
> Rolf Bjarne Kvinge-4 wrote
> >
> > No, this is not supported, because there are a lot of things that needs
> to
> > happen behind the scenes for managed code to work properly (it's not just
> > a matter of "export a list of methods to C").
> >
>
> Thanks for your reply Rolf.
>
> We have already made C++ bindings so it can be used in a native C++ project
> on Windows, Mac OS X and Linux that uses mono as a dynamic library and our
> library as a .NET dll, and that works fine. I had hoped a similar approach
> would work on iOS, but obviously we'd need to get rid of any JIT
> compilation
> and dynamic libraries. I figured this is the same problem that Unity and
> MonoTouch have already solved.
>
> Would I be correct in assuming that while not currently supported, this
> method would work in principle, we'll just have to modify Mono ourselves to
> get it done?
>

In theory you can of course make it work. The real question is: how much
effort is it? Unless you have a pretty deep knowledge about mono, it'll
take a while to make it work.


> > You can do the reverse: use native libraries in MonoTouch.
> >
> Since our library is already written in C#, it should already be possible
> to
> use it in MonoTouch as is (maybe a few tweaks - I haven't tried it yet).
>

I believe this is the way to go.

Rolf
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Does heapshot profiler work?

2012-03-26 Thread Rolf Bjarne Kvinge
Hi,

On Mon, Mar 26, 2012 at 1:03 PM, xplicit  wrote:

> I try to use heapshot profiler, but it seems not working.
>
> I run as test the following program:
>
> using System;
> using System.Collections.Generic;
> using System.Threading;
>
> namespace heapshottest
> {
>class MainClass
>{
>public static void Main(string[] args)
>{
>List testList = new List();
>
>for (int i=0; i<50; i++)
>{
>testList.Add("test");
>testList.Add("anotherTest");
>testList.RemoveAt(0);
>if (i % 10 == 0)
>{
>//  Thread.Sleep(1000);
>Console.WriteLine("i={0}",i);
>}
>}
>}
>}
> }
>
> Then I run mono with heapshot profile:
> *mono --profile=log:heapshot=2000ms,alloc ./heapshot-test.exe *
>

Try running with mono-sgen instead of mono

Rolf
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] AOT compile a static library.

2012-03-23 Thread Rolf Bjarne Kvinge
Hi,

On Fri, Mar 23, 2012 at 7:59 AM, Ergwun  wrote:

> Hi,
>
> Is it currently supported to use AOT compilation to create a static library
> from a .NET dll? I only know how to create a shared object file.
>

No, this is not supported, because there are a lot of things that needs to
happen behind the scenes for managed code to work properly (it's not just a
matter of "export a list of methods to C").


>
> The objective would be to then use this static library and a static libmono
> in a native application on iOS.
>

You can do the reverse: use native libraries in MonoTouch. This is
supported - and if you do it this way the only thing you actually need is
the managed Main method, there you can call your native library which does
everything else.

Rolf
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Moonlight problem

2011-03-07 Thread Rolf Bjarne Kvinge
Hi,

 

Can you run your browser like this from a terminal:

 

MOONLIGHT_DEBUG=codecs firefox 

 

and attach the output after trying to play the video?

 

Rolf

 

From: mono-list-boun...@lists.ximian.com
[mailto:mono-list-boun...@lists.ximian.com] On Behalf Of Alberto
Sent: domingo, 06 de marzo de 2011 22:40
To: mono-list@lists.ximian.com
Subject: [Mono-list] Moonlight problem

 

Hello,
I installed Moonlight on my Firefox 3 in my VectorLinux 6.0 Light (Linux
kernel 2.6.27.12) successfully.
The Microsoft Media Pack (codecs), also, was installed successfully, but
when I need to use it I receive again the request to install the Microsoft
Media Pack as if I had not installed it already (!?).
I wonder why. Any suggestions?
Best Regards,
Alberto

--
View this message in context:
http://mono.1490590.n4.nabble.com/Moonlight-problem-tp3338098p3338098.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1204 / Virus Database: 1435/3485 - Release Date: 03/06/11

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


Re: [Mono-list] [Fwd: issues mono 2.8(.1)]

2010-12-01 Thread Rolf Bjarne Kvinge
Hi,

This looks very much like a thread-pool bug that was fixed not long ago. I'm
not sure if the fix was backported to 2.8[.1], Gonzalo do you know?

Rolf

>-Original Message-
>From: mono-list-boun...@lists.ximian.com [mailto:mono-list-
>boun...@lists.ximian.com] On Behalf Of Peter Hagen
>Sent: martes, 30 de noviembre de 2010 13:03
>To: mono-list@lists.ximian.com
>Subject: [Mono-list] [Fwd: issues mono 2.8(.1)]
>
>Hi again,
>
>I have some extra information. When one of the requests seems to hang,
>which always seems to be a postback, and I have a second tab with the
>same website and I just refresh or open again (not necessarily a
>postback) the hanging window will suddenly give a "Internal Server
>Error" and in the logs I see a:
>
>[Tue Nov 30 12:59:08 2010] [error] (104)Connection reset by peer:
>read_data failed
>[Tue Nov 30 12:59:08 2010] [error] Command stream corrupted, last
>command was -1
>
>It doesn't happen on the same situation. The second tab loads quickly,
>so its not that the site is being restarted.
>
>Any ideas?
>
>Cheers
>
>Peter
>
> Forwarded Message 
>From: Peter Hagen 
>To: mono-list@lists.ximian.com
>Subject: issues mono 2.8(.1)
>Date: Tue, 30 Nov 2010 12:17:38 +0100
>
>Hi
>
>I have been testing out the 2.8+ release for my Asp.net application,
>running with mod-mono. At first the site looked faster then before, but
>some times I notice that (at random) a page stops loading, and after a
>while (10+ seconds some times) it goes on. Mostly on giving a refresh it
>loads again. Could this have anything to do with the stop_world() and
>restart_world() principle of the new Garbage Collection?
>
>Yesterday I tried the site with SGEN by modifying
>the /usr/bin/mod-mono-server2 like this:
>
>exec /usr/bin/mono --gc=sgen $MONO_OPTIONS
>"/usr/lib/mono/2.0/mod-mono-server2.exe" "$@"
>
>and the result was eventually, that my entire memory was been eaten by
>the mono process. Is this a known issue? Maybe it was just an issue
>because of not completely restarting apache or something. I didnt dare
>to try it again, cause its a live site.
>
>In several different situations (with different sites on different
>machines) I noticed the stuttering of the website. This is all with
>2.8.1 (2.8.0 also did it) and one machine is a Debian 4 version while
>the other is a Ubuntu 10.4 running in VirtualBox. It happens with and
>without SGEN enabled. Any ideas about this?
>
>Cheers
>
>Peter
>
>
>___
>Mono-list maillist  -  Mono-list@lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-list

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


Re: [Mono-list] NBC Olympics Video under Ubuntu 9.10

2010-02-17 Thread Rolf Bjarne Kvinge
Hi,

 

You might want to read:

 

http://www.mono-project.com/Moonlight/OlympicsPlayerIssues#Performance_Issue
s

 

Rolf

 

From: mono-list-boun...@lists.ximian.com
[mailto:mono-list-boun...@lists.ximian.com] On Behalf Of cement_head
Sent: miércoles, 17 de febrero de 2010 12:36
To: mono-list@lists.ximian.com
Subject: [Mono-list] NBC Olympics Video under Ubuntu 9.10

 

Hello, Managed to get Moonlight to work with NBC Olympics Videos. It is
imperative that these instructions be followed:
http://www.mono-project.com/Moonlight/OlympicsPlayerIssues I originally did
the standard upgrade of the plugin and it did not work. But removal of the
Moonlight 2.0 and new install of the Moonlight 3.0 seems to have gotten it
to work. However, the CPU cycles are bad - one of my dual cores is pinned to
100% (50% of the total CPU) when the 3.0 Beta is running. - CH 

  _  

View this message in context: NBC
  Olympics Video under Ubuntu 9.10
Sent from the Mono - 
General mailing list archive at Nabble.com.

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2693 - Release Date: 02/17/10
08:35:00

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


Re: [Mono-list] mono performance, 20x differential with Java (what am i doing wrong)

2010-01-29 Thread Rolf Bjarne Kvinge

Hi,

Can you post the source code for the java sample? I have a hard time
understanding how the sample can run so fast with java, here I get the
following results:

C#: 3.346 seconds
C (compiled with gcc –O3, see attached source code): 1.132 seconds

Rolf


>Hi,
>
>I'm quite familiar with both the .NET and Java development environments,
but only recently have begun to experiment with mono, so forgive me if I'm
not clued-in.   
>
>I specialize in numerical work that often involves a lot large-scale array
manipulation for linear algebra, timeseries, etc.    My main production
platforms are OSX and Linux.   I've been doing most of my work on the JVM
over the >past few years, though spent a couple of years with .NET when it
was pre-release / pre-1.0.  
>
>My main interest is in Ocaml, particularly the F# variant as the basis for
my numerical work.
>
>One of the first things I do when considering a platform is run benchmarks,
as performance is critical for what I do.    Starting with C# I wrote a test
to gauge the array-access overhead associated with the platform.  Without
>knowing how to tweak the mono runtime to turn on any particular
optimisations, the results were quite poor for this specific test (see code
at the end of this posting).
>
>
>The test on my MacPro 2.6 Ghz / Snow Leopard with mono 2.6.1 gave the
result of:
>
>   16 sec, 130 ms for 1000 iterations
>
>the same code, modified just for IO, etc on the Java VM (without -server)
 gave a runtime of:
>
>    0 sec, 831 ms
>
>changing the # of iterations to higher amounts did nothing to improve the
ratio.   Java is 20x faster in this benchmark.
>
>I could not find any documentation concerning settings for the -optimize
flag on the mono VM, so perhaps there is a setting I should be using.   
>
>Secondly, I saw the posting concerning the optional use of LLVM.  I have
not been able to build mono on OSX as am having problems building glib.  I'm
wondering whether anyone has a packaged up version of glib or better a
packaged up >version of mono with LLVM enabled.
>
>I have heard only good things about LLVM performance, so hoping that this
will help address this gap.   Hopefully I am doing something wrong here and
the performance is much closer.   Test code below ...
>
>regards
>
>Jonathan
--
http://tr8dr.wordpress.com/

#include 
#include 

double test1 (double *vec, int length)
{
double sum = 0;
int i, j;
for (i = 8; i < length; i++) {
vec [i] = 2 * vec [i] - vec [i-1];
for (j = 1; j < 8; j++)
sum += 1.3 * vec [j - 1];
}
return sum;
}

int main (int argc, char **argv)
{
const int iterations = 1000;
const int length = 10;
double *vec = malloc (length * sizeof (double));
int i;

for (i = 0; i < length; i++) {
vec [i] = i;
}

double sum = 0;
for (i = 0; i < iterations; i++)
sum += test1 (vec, length);

printf ("result: %f\n", sum);   
}___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] I can't build Moonlight 2.0

2010-01-04 Thread Rolf Bjarne Kvinge
Hi,

> Hello list.
> 
> I use Ubuntu 9.10, so I prefer to install mono and monodevelop by
> building it from sources.
> 
> I built mono and monodevelop fine, but moonlight I can't. When I
> type ./configure appears an error that says "mcs_path doesn't exists",
> well, how can I to set this path?

./configure --with-mcspath=

Rolf

> 
> Thanks in advance.
> 
> Daniel.
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

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


Re: [Mono-list] Creating VB.NET Desktop application

2009-11-03 Thread Rolf Bjarne Kvinge
Hi,

> Hi All,
> 
> Sorry if this is an easy question, but im new to Mono and Linux.
> Im using Ubuntu 9.04 and latest Mono Develop.
> 
> I have a windows application developed in Visual Studio for my desktop,
> it is our companies CRM system and as such is vital to our company.
> 
> I want to port over to Linux, so my question (at last) is how do i
> create a VB desktop app in Mono ? I can see web project but not desktop.

You can open the Visual Studio solution in MonoDevelop, no need to create a
new project.

Rolf

> 
> Any help for newbie would be greatfull.
> 
> Cheers
> Mark
> --
> View this message in context: http://www.nabble.com/Creating-VB.NET-
> Desktop-application-tp26115822p26115822.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

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


Re: [Mono-list] VB .NET and default instances

2009-11-03 Thread Rolf Bjarne Kvinge
Hi,

> 
> Hi,
>I have inherited a VB.net application.  The application
> is currently developed under Visual Studio 2008 and is
> a GUI using a bunch of Windows Forms.  I would
> like to be able to run this under Linux and it appears I
> need Mono to do this.  In the documentation, I noticed
> the documentation mention that the "Default Instance"
> is not supported.  This application happens to use this
> feature in several places.

Default Instances was implemented some time ago, where did you read this so
that I can update the documentation?

>The way I have seen this done in Java is to have a
> "getInstance() method which accesses a static copy of the
> object and creates it the first time getInstance() is called.
> Would this be a workable mechanism to get the program
> to run under Mono?  It would be a pretty easy change to make.
> 
>The documentation seems to say that I can run the .exe
> created by Visual Studio with the Mono Runtime if I can get
> the libraries correct.  I have not been able to do this yet,
> but I am thinking I need to clean up the default instance issue
> first.  Is this the case?

No, default instances needs to be supported by the vb compiler, you should
still be able to run the application with the Mono Runtime. Can you explain
exactly what you've done and what happens?

Rolf

> 
> Bob Styma
> Phoenix, Az, USA
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

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


Re: [Mono-list] The assembly mscorlib.dll was not found

2009-10-01 Thread Rolf Bjarne Kvinge
Hi,
 
> I'm embarrassed about the amount of hand-holding I'm needing in this.
> 
> I'm trying to install mono from svn onto my desktop machine (Ubuntu
> 9.04).  In order to bootstrap the process, I installed the apt-get
> version of mono-devel to get a working mcs.
> 
> This reports (via --version)  Mono C# compiler version 2.0.1.0
> 
> I then checked out the following repositories:
> 
> svn://anonsvn.mono-project.com/source/trunk/mono
> svn://anonsvn.mono-project.com/source/trunk/mcs
> 
> Having done this, ./autogen.sh --prefix=/usr/local and make built the
> latest version with no problem.
> 
> I then ran ldconfig (as root) and hash -r.  I now get the following:
> 
> cl...@cms:~$ type mcs
> mcs is hashed (/usr/local/bin/mcs)
> cl...@cms:~$ mcs
> The assembly mscorlib.dll was not found or could not be loaded.
> It should have been installed in the
> `/usr/local/lib/mono/1.0/mscorlib.dll' directory.
> 
> mscorlib.dll is actually in /usr/local/lib/mono/2.1 even though mono
> - --version reports Mono JIT compiler version 2.5.
> 
> What am I missing?  How do I make mcs find the right path for
> mscorlib.dll?

I think this might help you:
http://www.mono-project.com/Parallel_Mono_Environments

Rolf

> 
> Thanks,
> Cliff.
> 
> - --
> Cliff Stanford
> Might Limited   +44 845 0045 666 (Office)
> Suite 67, Dorset House  +44 7973 616 666 (Mobile)
> Duke Street, Chelmsford, CM1 1TB
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkrD+LEACgkQfNTx9pWyKfy5zACfWNxCLSPbieJDO1pYISgeHzXI
> PpMAn1A1qHh1ClnOwj0j7gse6f3Vl25t
> =/LPn
> -END PGP SIGNATURE-
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

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


Re: [Mono-list] does mono support int32

2009-09-09 Thread Rolf Bjarne Kvinge
Hi,
> 
> My project is using int32 like
> 
> dim loginBranchNo As Int32
> or
> iLoginBranchNo = Convert.ToInt32
> 
> I am getting some error , please contact to system administrator.

Could you be more specific tan "some error"? Explaining exactly what you do
and copy/paste the error would make it a lot easier to help.

Rolf

> Priviosly I have removed some windows specific function from my project.
> 
> so I want to know is there any problem with Int32 in mono.
> 
> Thanks
> --
> View this message in context: http://www.nabble.com/does-mono-support-
> int32-tp25343836p25343836.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

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


Re: [Mono-list] Re lated to VBNC compiler

2009-08-13 Thread Rolf Bjarne Kvinge
Hi,

This looks like a mono bug which has been fixed a couple of weeks ago.

If you have a (public) link to the site I can check easily if it's fixed (or
fix it if I hasn't been fixed already).

Rolf

> -Original Message-
> From: mono-list-boun...@lists.ximian.com [mailto:mono-list-
> boun...@lists.ximian.com] On Behalf Of Bharti Mishra
> Sent: martes, 04 de agosto de 2009 11:35
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] Re lated to VBNC compiler
> 
> 
> hi,
> I am migrating vb.net code onto OpenSuse Platform using mono2.4.2,
> when I access my vb.net project through browser, I get following error :-
> 
> Server Error in '/BLa4' Application
> 
> ---
> -
> 
> Compilation Error
> Description: Error compiling a resource required to service this
> request.
> Review your source file and modify it to fix this error.
> 
> Compiler Error Message: VBNC_CRASH: Visual Basic.Net Compiler version
> 0.0.0.5914 (Mono 2.4.2 - r) Copyright (C) 2004-2008 Rolf Bjarne Kvinge.
> All
> rights reserved.
> Error : VBNC9: Unexpected error: The classes in the module cannot
> be
> loaded.
> at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes
> (bool) at
> System.Reflection.Assembly.GetTypes () [0x0] in
> /usr/src/packages/BUILD/mono-
> 2.4.2/mcs/class/corlib/System.Reflection/Assembly.cs:348
> at vbnc.TypeManager.LoadReferencedTypes () [0x00028] in
> /usr/src/packages/BUILD/mono-basic-
> 2.4.2/vbnc/vbnc/source/General/TypeManager.vb:441
> at vbnc.TypeManager.LoadReferenced () [0x000e3] in
> /usr/src/packages/BUILD/mono-basic-
> 2.4.2/vbnc/vbnc/source/General/TypeManager.vb:306
> at vbnc.Compiler.Compile () [0x001e2] in
> /usr/src/packages/BUILD/mono-basic-
> 2.4.2/vbnc/vbnc/source/General/Compiler.vb:534
> Compilation took 00:00:00.4634310
> 
> ~/Global.asax
> 
> 
> ---
> -
> Version information: Mono Version: 2.0.50727.1433; ASP.NET Version:
> 2.0.50727.1433 Error : VBNC9: Unexpected error: The classes in the
> module cannot be loaded.
> at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes
> (bool) at
> System.Reflection.Assembly.GetTypes () [0x0] in
> /usr/src/packages/BUILD/mono-
> 2.4.2/mcs/class/corlib/System.Reflection/Assembly.cs:348
> at vbnc.TypeManager.LoadReferencedTypes () [0x00028] in
> /usr/src/packages/BUILD/mono-basic-
> 2.4.2/vbnc/vbnc/source/General/TypeManager.vb:441
> at vbnc.TypeManager.LoadReferenced () [0x000e3] in
> /usr/src/packages/BUILD/mono-basic-
> 2.4.2/vbnc/vbnc/source/General/TypeManager.vb:306
> at vbnc.Compiler.Compile () [0x001e2] in
> /usr/src/packages/BUILD/mono-basic-
> 2.4.2/vbnc/vbnc/source/General/Compiler.vb:534
> Compilation took 00:00:00.4634310 at
> System.Web.Compilation.AssemblyBuilder.BuildAssembly
> (System.Web.VirtualPath
> virtualPath, System.CodeDom.Compiler.CompilerParameters options)
> [0x0]
> at System.Web.Compilation.AssemblyBuilder.BuildAssembly
> (System.Web.VirtualPath virtualPath) [0x0] at
> System.Web.Compilation.BuildManager.GenerateAssembly
> (System.Web.Compilation.AssemblyBuilder abuilder,
> System.Collections.Generic.List`1 buildItems, System.Web.VirtualPath
> virtualPath,
> Buil___
> __
> 
> pls describe me why I am getting this error? and Is there any problem
> in my
> vbnc compiler.
> 
> thanx
> --
> View this message in context: http://www.nabble.com/Related-to-VBNC-
> compiler-tp24805277p24805277.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

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


Re: [Mono-list] The Mono 1.0 profile.

2009-07-21 Thread Rolf Bjarne Kvinge
Hi,
 
> Sure, but you could just make the 1.0 profile opt-in.

Every now and then somebody checks in code that doesn't build on the 1.0
profile (this happens several times a month).

If we make the 1.0 profile opt-in, these breakages won't get fixed
immediately, which will sooner or later lead to bit rotten 1.0 code.

I'm all for making the 1.0 profile obsolete, and I don't believe having it
optionally will gain anything, since pretty soon the 1.0 profile will end up
in a non-compilable state. The community could of course provide
fixes/patches/etc, but imho it would only delay the inevitable. Besides, if
somebody needs a fix in 1.0, it would most certainly be most time-efficient
to backport that to the latest 1.0 profile enabled branch (mono 2.8) instead
of going through the head-ache it would be to make trunk (for let's say mono
3.0) work with the 1.0 profile.

Rolf


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


Re: [Mono-list] Mono 2.4 under SUSE Linux cannot find VisualBasic assembly

2009-05-26 Thread Rolf Bjarne Kvinge
Hi,
>> You need to install the mono-basic package.
>>
>> Rolf
>>
>
>>From inside Yast?
>
> (I am not used to Linux.)

You don't mention how you installed mono nor which distro you use, but if
you have opensuse 11/11.1 you can use the command 'sudo zypper install
mono-basic'

Rolf

> 
> --
> View this message in context: http://www.nabble.com/Mono-2.4-under-
> SUSE-Linux-cannot-find-VisualBasic-assembly-tp23714432p23718691.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

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


Re: [Mono-list] Mono 2.4 under SUSE Linux cannot find VisualBasic assembly

2009-05-26 Thread Rolf Bjarne Kvinge

Hi,

> 
> I installed Mono 2.4 using the instructions on the download page.
> 
> mono -V claims that Mono 2.4 is installed. But starting my test program
> (which works on Windows and Mac OS) gives me this error:
> 
> 
> ** (MonoTest.exe:18695): WARNING **: The following assembly referenced
> from
> /home/ajbrehm/Desktop/MonoTest.exe could not be loaded:
>  Assembly:   Microsoft.VisualBasic(assemblyref_index=1)
>  Version:8.0.0.0
>  Public Key: b03f5f7f11d50a3a
> The assembly was not found in the Global Assembly Cache, a path listed
> in
> the MONO_PATH environment variable, or in the location of the executing
> assembly (/home/ajbrehm/Desktop/).
> 
> 
> ** (MonoTest.exe:18695): WARNING **: Could not load file or assembly
> 'Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
> 
> 
> What am I doing wrong?

You need to install the mono-basic package.

Rolf

> --
> View this message in context: http://www.nabble.com/Mono-2.4-under-
> SUSE-Linux-cannot-find-VisualBasic-assembly-tp23714432p23714432.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

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


Re: [Mono-list] DLL Created in Visual Basic 6.0 can run on cross platform

2009-05-21 Thread Rolf Bjarne Kvinge
Hi,

> i have a .dll created in visual basic 6.0.
> now i want to run that .dll in linux platform, so how can i do this?.

Use wine (http://www.winehq.org/)

> is it possible with mono framework?
> if so then can you guide me how to start?, how to compile?, how to
> execute?

If you absolutely do not want to use wine, you need to convert your VB6
dll/project/application to VB7+ using Visual Studio first, when you got it
working in Windows, you just copy your application to a linux machine where
you have mono installed and execute 'mono myapp.exe'.

Rolf

> can you tell me what are the steps to use mono framework?
> 
> i will be thankfull to all of you...
> 
> 
> 
> 
> --
> View this message in context: http://www.nabble.com/DLL-Created-in-
> Visual-Basic-6.0-can-run-on-cross-platform-tp23611949p23611949.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

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


Re: [Mono-list] VB code completion

2009-04-02 Thread Rolf Bjarne Kvinge
As soon as somebody volunteers to do it J

 

The MonoDevelop team is really busy with other stuff right now.

 

Rolf

 

From: mono-list-boun...@lists.ximian.com
[mailto:mono-list-boun...@lists.ximian.com] On Behalf Of Chris LaFond
Sent: lunes, 30 de marzo de 2009 19:47
To: MonoDevel
Subject: [Mono-list] VB code completion

 

I asked this a few days ago, i dont know if it got sent because i was new to
the list:

Anyone know when monodevelop will have VB .Net code completion?

 

 


Chris LaFond

Programmer 


Pro-West & Associates Inc.




8239 State 371 NW
PO Box 812
Walker, MN 56484
www.prowestgis.com
claf...@prowestgis.com 
(v) 218-547-3374 ext 125 
(f) 218-547-3375

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.285 / Virus Database: 270.11.31/2028 - Release Date: 04/01/09
06:06:00

<>___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Implement StrLike in C#

2008-09-28 Thread Rolf Bjarne Kvinge
Hi,

mcs -r:Microsoft.Visual.Basic.dll ... and you can use that code snippet.

The code is in mono-basic/vbruntime/Microsoft.VisualBasic/... (i.e. not in
the mcs module) 

Rolf

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Andrus
> Sent: domingo, 28 de septiembre de 2008 17:36
> To: Mono-list@lists.ximian.com
> Subject: [Mono-list] Implement StrLike in C#
> 
> How to implement method below in Mono in C# ?
> 
> I havent from StrLike implementation in MCS source code.
> Since VB Like operator requires this it must be implemented somewhere.
> 
> Andrus.
> 
> public static bool Like(string pattern, string source)
> {
> return
> Microsoft.VisualBasic.CompilerServices.StringType.StrLike(source,
> pattern,
> Microsoft.VisualBasic.CompareMethod.Text);
> }
> 
> I created this code by following this thread:
> 
> http://groups.google.com/group/microsoft.public.dotnet.languages.csharp
> /browse_thread/thread/32649965654df408/57ba3e39a6c2711f?lnk=st&q=#57ba3
> e39a6c2711f
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

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


Re: [Mono-list] Cannot compile/run with VBnet.

2008-09-19 Thread Rolf Bjarne Kvinge
Hi,

It looks like you don't have vbnc (the vb compiler) installed. Try executing
'vbnc' in a terminal, if it fails you need to install the mono-basic package
(that's what it's called in OpenSuse, I think there are packages for ubuntu
available now too, but they might be named differently).

Rolf

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Darkalfx
> Sent: miércoles, 17 de septiembre de 2008 22:11
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] Cannot compile/run with VBnet.
> 
> 
> I have unbuntu hardy.
> 
> I just installed mono though the add/remove program.
> 
> Everything went well.
> 
> But every time I try to compile a VB program, even the default hello
> world,
> I get this:
> 
> 
> Building Solution Tp_triangle
> 
> Building Project: Tp_triangle (Debug)
> Performing main compilation...
> vbnc
> -
> out:"/home/darkalfx/Desktop/Tp_triangle/Tp_triangle/bin/Debug/Tp_triang
> le.exe"
> -nologo -utf8output -target:exe
> "/home/darkalfx/Desktop/Tp_triangle/Tp_triangle/Application.vb"
> "/home/darkalfx/Desktop/Tp_triangle/Tp_triangle/AssemblyInfo.vb"
> 
> Build failed. ApplicationName='vbnc',
> CommandLine='"@/tmp/tmp6e45ed27.tmp"',
> CurrentDirectory='/home/darkalfx/Desktop/Tp_triangle/Tp_triangle',
> PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr
> /games'
> 
> 
> How do I fix this?
> 
> 
> --
> View this message in context: http://www.nabble.com/Cannot-compile-run-
> with-VBnet.-tp19540135p19540135.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

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


Re: [Mono-list] NOOB Question

2008-08-28 Thread Rolf Bjarne Kvinge
Hi,

> Folks, I am in need of some help.  I have been all over the internet
> and these forums looking for some answers, but I am afraid I can't find
> any.  My apologies if this has been covered already and my search skills
just
> stink.
> 
> I have been asked to pursue a replacement for the front-end of a
> network node information PostGRES database we have running on a *nix
server.
> Currently, the front-end is in an old and hokey version of Zope.  After
> looking around for a replacement CMS, and realizing that I would have
> to do a lot of programming anyways, I decided to just develop it in
> asp.net(vb). The situation is this: my test page works fine on my PC
(connects to
> the DB, gridview shows records, buttons for add/edit/delete work, etc) but
we
> don't have a single windows server on the platform.  So, I want to do a
> proof-of-concept to the powers that be with my existing page on my
> persnal *nix box.  Problem is, I am having nothing but problems porting
the
> application over.
> 
> I installed what I believe to be all the necessary packages
> (mod_mono-1.2.1-1, mono-core-1.2.4-2, mono-data-postgresql-1.2.4-2,
> mono-basic-1.9-1, mono-web-1.2.4-2, mono-winforms-1.2.4-2, and
> mono-data-1.2.4-2)

Your versions are pretty mixed, you'll have a lot let problems if you use
the same version for all components (1.9.1). A lot of VB+aspx issues have
been fixed in mono-core since 1.2.4.

> and made the changes required per a few sites I
> found with some how-to's.  But, still no luck.  I am 99% sure that it is
> because of my ignorance that I am having these issues.  My personal *nix
> machine is running CentOS 5.2, and the development server is running
RHEL4.
> 
> So, here are my questions to you fine folks:
> 
> 1.) When I am developing the page, am I better with a "code behind"
> style or "inline" for functionality with mono?
It shouldn't matter.

> 2.) When I copy the page over, do I copy over the entire directory?  Or
> just my aspx and .config files?
You'll need everything you need to run on Windows, if you have other
referenced assemblies or resources for instance you'll need to copy over
those too.

> 3.) Are there any limitations I need to know about in regard to mono
> and asp.net(vb)?
It should be compatible, otherwise it's a bug.

> 
> I can post code snippets, etc...  whatever is needed to work through
> these issues so that I can harness the power of asp.net(vb) for this
project
> as opposed to something like Drupal or Joomla.

It would be a lot easier to help if you explained the issues (error
messages, etc) :)

Rolf

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


Re: [Mono-list] ASP (Visual Basic); vbnc vs mbas; was C++/CLI

2008-08-28 Thread Rolf Bjarne Kvinge
Hi,

> Hi all,
> 
> I have read that to get a Visual Basic ASP site working with mono on
> linux, I need to install mbas, the mono visual basic compiler.
> 
> The mono visual basic compiler that I have managed to install is called
> "vbnc".  Are vbnc and mbas the same thing, and if not, which one do I
> need?
 
mbas was the first VB compiler mono had (a fork from mcs, the C# and written in 
C), while vbnc is the second (written in VB and from scratch). Since vbnc 
supports VB8, and mbas only VB7, it was decided to discontinue mbas and use 
vbnc only.

This also means that if you have old versions of mono installed, it will try 
looking for mbas when compiling aspx pages with VB code (< 1.2.3 I think the 
switch was made). I recommend using the newest mono version though (either 
1.9.1 or the 2.0 beta), since quite a few issues have been fixed since when we 
started using vbnc.

Rolf 


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


Re: [Mono-list] Object additional implicit operator.

2008-08-15 Thread Rolf Bjarne Kvinge
> >
> >> Sorry, I'll drop this point.
> >>
> >> It would have been really really simple when the language was
> conceived
> >> to consider that a simple test for object existance should not
> require
> >> the
> >> specification of a null constant;
> >
> > It would make things very weird, things like !((object) true)) would
> > return
> > true.
> >
> >
> 
> How does that expression even mean anything?
> Wouldn't you get like expected operator before true ?
> 
>   {
> 
>   bool whatever = true;
> 16:   if( !((whatever)true)))
>   Console.WriteLine( "true" );
> else
>   Console.WriteLine( false" );
>   }
> 

'(object)' is a cast, a full sample to make it easier to understand:

{
  object o = false;
  if (!o)
Console.WriteLine ("true");
  else
Console.WriteLine ("false");
}

would print false (or is it true? I can't really make my head around this)

Rolf

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


Re: [Mono-list] Object additional implicit operator.

2008-08-15 Thread Rolf Bjarne Kvinge
> Sorry, I'll drop this point.
> 
> It would have been really really simple when the language was conceived
> to consider that a simple test for object existance should not require the
> specification of a null constant; 

It would make things very weird, things like !((object) true)) would return
true.

> nor should it require the extra overhead of a comparison operator.  A
really simple check for existance.

A few more characters generally make a language more explicit and easier to
understand, and it avoids weird issues like the above, which can be really
annoying if you stumble upon them.

Rolf


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


Re: [Mono-list] About mono vb compiler in Ubuntu

2008-08-05 Thread Rolf Bjarne Kvinge
Hi,

 

You have to install mono-basic somehow, probably from source.

I don’t think anybody has volunteered to package mono-basic for Ubuntu yet.

 

Rolf

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roilan Cardoso
Sánchez
Sent: martes, 05 de agosto de 2008 20:30
To: mono-list@lists.ximian.com
Subject: [Mono-list] About mono vb compiler in Ubuntu

 

Hello everybody

 

I'm trying to use mono in Ubuntu, but i can't find the vb compiler, please
anybody can help me

 

thanks

Roilan

 

  _  


Enviado desde Correo
  Yahoo!
La bandeja de entrada más inteligente.

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.138 / Virus Database: 270.5.12/1592 - Release Date: 05/08/2008
6:0

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


Re: [Mono-list] how to use 'Conversions.ToInteger' in mono?

2008-06-23 Thread Rolf Bjarne Kvinge
> From: Josh Hammond [mailto:[EMAIL PROTECTED]
>
> Ok, I'm compiling mono-basic now but that's what I get:
> 
> Error : VBNC9: Unexpected error: Array index is out of range.
>   at
> System.Collections.Generic.Dictionary`2+Enumerator[System.String,vbnc.M
> emberCacheEntry].get_CurrentValue

This is strange, I can't remember seeing this error before.

Which version of mono and mono-basic are you using?
 
Rolf


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


Re: [Mono-list] [SPAM DETECT] Re: how to use 'Conversions.ToInteger' in mono?

2008-06-21 Thread Rolf Bjarne Kvinge
> >> Yes it is.
> >> You need to install the mono-basic package.
> 
> Thanks. Does anyone know if there's a debian package (I'm getting lazy
> :D )?

Sorry, as far as I know nobody has volunteered to do that yet.

Rolf

> 
> Josh
> 
> No virus found in this incoming message.
> Checked by AVG.
> Version: 8.0.100 / Virus Database: 270.4.1/1511 - Release Date:
> 20/06/2008 11:52

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


Re: [Mono-list] how to use 'Conversions.ToInteger' in mono?

2008-06-21 Thread Rolf Bjarne Kvinge
> 
> Hey guys.
> I am trying, for the first time, to port a win c# application to a
> linux
> system.
> The code is used to access a usb sensor that acts as a rs-232 device,
> so I figured out that it is something doable even on linux.
> But I also need to perform a binary->decimal conversion.
> 
> When working in MS environment I just used
> Microsoft.VisualBasic.CompilerServices which, AFAIK, isn't available in
> mono

Yes it is.
You need to install the mono-basic package.

Rolf

.
> The function I need to port is:
> 
> private static double Bin2Dec(String strBin)
> {
> try
> {
> double lDec = 0.0;
> if (strBin == null || strBin.Length == 0)
> strBin = "0";
> double lCount = Strings.Len(strBin);
> double t_double = lCount;
> for (double i = 1.0; i <= t_double; i++)
> {
> lDec += Conversions.ToInteger(Strings.Left(strBin,
> 1))
> * Math.Pow(2.0, (double)(Strings.Len(strBin) - 1));
> strBin = Strings.Right(strBin, Strings.Len(strBin)
> - 1);
> }
> return lDec;
> }
> catch (Exception) { }
> 
> return double.MinValue;
> }
> 
> 
> Anyone has any suggestions on how to implent this in a way that works
> on
> linux?
> Thanks
> 
> Josh
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> No virus found in this incoming message.
> Checked by AVG.
> Version: 8.0.100 / Virus Database: 270.4.1/1511 - Release Date:
> 20/06/2008 11:52

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


Re: [Mono-list] Detecting mono at runtime

2008-05-30 Thread Rolf Bjarne Kvinge
Hi,

See
http://www.mono-project.com/FAQ:_Technical#How_can_I_detect_if_am_running_in
_Mono.3F

Rolf

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Zappo
> Sent: jueves, 29 de mayo de 2008 10:56
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] Detecting mono at runtime
> 
> 
> Hi all,
> 
> I'm in the process of porting a .NET app to Mono, but I need it to also
> still compile and run with the standard .NET tools. There are just a
> couple
> points in the code where I need to do something different in order to
> make
> the app work with Mono.
> 
> I'd like to be able to write something like:
> 
> if ( ThisIsMono() )
>DoMonoCode()
> else
>DoNormalCode()
> 
> What I'm missing is ThisIsMono - is there any way to detect whether the
> application is being run by Mono, without having to import any Mono-
> related
> library? (The app must still compile and run on a non-Mono machine). I
> dunno, some way to detect the .NET runtime version?
> 
> Sorry if the answer is trivial - I'm a Mono noob. ^^ Thanks for any
> help. :)
> --
> View this message in context: http://www.nabble.com/Detecting-mono-at-
> runtime-tp17530408p17530408.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> No virus found in this incoming message.
> Checked by AVG.
> Version: 8.0.100 / Virus Database: 269.24.4/1473 - Release Date:
> 29/05/2008 19:53

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


Re: [Mono-list] VB problems

2008-05-02 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Lyle - CosmicPerl.com Support
> Sent: jueves, 01 de mayo de 2008 21:16
> To: Robert Jordan
> Cc: Mono-list@lists.ximian.com
> Subject: Re: [Mono-list] VB problems
> 
> Robert Jordan wrote:
> > If VB pages were working under 1.0 then you've installed the old
> > discontinued mono-basic compiler. This guy does not support
> > 2.0 at all.
> >
> > Please consider upgrading your mono to a recent version.
> > 1.2.4 is over one year old.
> >
> >
> 
> Hi Robert,
>   This is the only version of Mono we've managed to get working. We've
> tried new versions but without much luck. As Mono-Project only provide
> 32bit RPM's for RHEL4 I'm guessing there are problems getting it to
> work
> on 64bit  RHEL5.
> 
> 
> I'm struggling to find some good clear guides on setting up and
> configuring Mono.
> 
> VB pages were only half working under .NET 1, some loaded fine, others
> gave an error can't find VB8 compiler. When I looked at the file system
> VB7 is under mono/1/ and VB8 is under mono/2 so I guessed that was the
> VB 8 compiler for .NET 2?
> 

The VB7 compiler we had (mbas) has been removed completely, and replaced by
a new compiler (vbnc) which targets VB8 / .NET 2.0.

You should be able to download and install newer versions of the VB compiler
(and runtime) without updating your entire mono, just go to
http://www.go-mono.com/mono-downloads/download.html and get the mono-basic
package/source.

If this still doesn't work, I'd need more info about the error (accessing
the page from the same machine as localhost will normally show an error page
with more information).

Rolf

> 
> 
> Thanks for your reply. I appreciate it.
> 
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.7/1408 - Release Date:
> 30/04/2008 18:10


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


Re: [Mono-list] VB problems

2008-05-02 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: Lyle - CosmicPerl.com Support [mailto:[EMAIL PROTECTED]
> Sent: viernes, 02 de mayo de 2008 15:58
> To: Rolf Bjarne Kvinge
> Cc: Mono-list@lists.ximian.com
> Subject: Re: [Mono-list] VB problems
> 
> Rolf Bjarne Kvinge wrote:
> >> Robert Jordan wrote:
> >>
> >>> If VB pages were working under 1.0 then you've installed the old
> >>> discontinued mono-basic compiler. This guy does not support
> >>> 2.0 at all.
> >>>
> >>> Please consider upgrading your mono to a recent version.
> >>> 1.2.4 is over one year old.
> >>>
> >>>
> >> Lyle wrote:-
> >>
> >> VB pages were only half working under .NET 1, some loaded fine,
> others
> >> gave an error can't find VB8 compiler. When I looked at the file
> system
> >> VB7 is under mono/1/ and VB8 is under mono/2 so I guessed that was
> the
> >> VB 8 compiler for .NET 2?
> >>
> >>
> >
> > The VB7 compiler we had (mbas) has been removed completely, and
> replaced by
> > a new compiler (vbnc) which targets VB8 / .NET 2.0.
> >
> > ...
> > If this still doesn't work, I'd need more info about the error
> (accessing
> > the page from the same machine as localhost will normally show an
> error page
> > with more information).
> >
> > Rolf
> >
> 
> Pages have
> 
> <%@ Page Language="VB" %>
> 
> at the top
> 
> Under mono 1.0: (mod-mono-server.exe)
VB for mono 1.0 isn't supported anymore, you need to use 2.0.

(...)

> Under mono 2.0 (mod-mono-server2.exe)
> an internal server message error occurs on loading all pages

This should work, but it's impossible to diagnose without more information. 
Are you sure vbnc (the VB8 compiler) is installed and accessible for
mod-mono-server2.exe?

Rolf


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


Re: [Mono-list] Last Mono-Basic SVN problem

2008-03-17 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Andy Hume
> Sent: domingo, 16 de marzo de 2008 16:08
> To: 'monodevelop-list'; mono-list@lists.ximian.com
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Mono-list] Last Mono-Basic SVN problem
> 
> Apparently not
>
http://mono.ximian.com/monobuild/python/monobuild.py/packagestatus?platform=
sles-9-x86_64&package=mono-basic&HEAD_or_RELEASE=HEAD or
>
http://mono.ximian.com/monobuild/builds/HEAD/sles-9-x86_64/mono-basic/98378/
logs/build.log :-(
> 
> There was a change in the behaviour of the GAC itself this week, so
> mono-basic will likely need an update to suit.
> 

This issue has been fixed now.

Rolf

> Andy
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Petit Eric
> > Sent: 16 March 2008 14:44
> > To: monodevelop-list; mono-list@lists.ximian.com
> > Subject: [Mono-list] Last Mono-Basic SVN problem
> >
> > Is it bug or am i alone with this :
> >
> > gacutil /i ../../class/lib/vbnc/Microsoft.VisualBasic.dll /f
> > /gacdir /usr/lib /root /usr/lib /package 2.0 Assembly
> > ../../class/lib/vbnc/Microsoft.VisualBasic.dll is
> > delay-signed but not strongnamed Failure adding assembly
> > ../../class/lib/vbnc/Microsoft.VisualBasic.dll
> > to the cache: Attempt to install an assembly without a strong name.
> > make[3]: *** [install-local] Erreur 1
> > ___
> > Mono-list maillist  -  Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date:
> 16/03/2008 10:34


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


Re: [Mono-list] WinForms X Wine?

2008-02-11 Thread Rolf Bjarne Kvinge
>From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carlos Adriano
Portes
>Sent: lunes, 11 de febrero de 2008 14:48
>To: mono-list@lists.ximian.com
>Subject: [Mono-list] WinForms X Wine?
>
>Hi friends
> 
>I would like very much to know why mono Winforms are not developed upon
wine libraries instead of a remake of everything, would it not be much
better to use wine libraries and just create the classes bindings as it is
with gtk and >gtk#?
> 
>Thank you very much.

It has been tried.

See http://www.mono-project.com/WinForms#History

Rolf

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


Re: [Mono-list] Hosting Silverlight applications on Apache2

2008-01-30 Thread Rolf Bjarne Kvinge
>
>From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Timothy Parez
>Sent: miércoles, 30 de enero de 2008 23:32
>To: Jeffrey Stedfast
>Cc: mono-list@lists.ximian.com
>Subject: Re: [Mono-list] Hosting Silverlight applications on Apache2
>
>I just remembered that I had already checked this.
>All the casings are correct, still have the same problem.
>

Apache + Mono/ASP.Net + Silverlight applications don't work well together
yet.

Trying to access
http://www.itcrowd.be/silverlight/ClientBin/NetrisSilverEdition.dll I get a
403 error (Error Message: HTTP 403. System.Web.HttpException: Forbidden).

What's happening is that Mono/ASP.Net is handling the dll, and preventing it
from being downloaded.

Rolf

>Timothy
>On Jan 30, 2008 6:49 PM, Timothy Parez <[EMAIL PROTECTED]> wrote:
>I'll check the filenames and let you know if it works :)
>
Thnx.

On 30 Jan 2008, at 18:33, Jeffrey Stedfast wrote:

> The only problem I've come across hosting Silverlight apps over
> lighttpd
> (did feel like configuring Apache for local testing) was filename case
> sensitivity.
>
> IIS seems to be case insensitive while lighttpd (and likely Apache)
> are
> not.
>
> Also, fwiw, I didn't have to add any mime types.
>
> Jeff
>
> On Wed, 2008-01-30 at 18:16 +0100, Timothy Parez wrote:
>> Hi,
>>
>> While this is not purely mono related, I think some of you might be
>> able to help.
>> I had a sample application which worked fine when hosted with IIS,
>> but
>> doesn't work when hosted on Apache2.
>>
>> http://www.itcrowd.be/silverlight/netrissilver.html
>>
>> The exception I get it this:
>>
>> The Page at http://www.itcrowd.be says:
>>
>> Silverlight error message
>> ErrorCode: 1001
>> ErrorType: ParserError
>> Message: AG_E_UNKNOWN_ERROR
>> XamlFile: netris.xaml
>> Line: 11
>> Position: 9
>>
>> If you check out a sample by someone else, also hosted on Apache:
>> http://www.zendurl.com/t/timheuer/v1_1/Default.html
>>
>> You get this
>> The page at http://www.zendurl.com says:
>> Silverlight error message
>> Errorcode: 1001
>> ErrorType: ParserError
>> Message: AG_E_UNKNOWN_ERROR
>> XamleFile: Page.xaml
>> Line: 9
>> Position: 2
>>
>> Quite similar, so I'm guessing it's not my code.
>>
>> I've added the following Mime types to the Apache configuration, but
>> it still doesn't work:
>>
>> AddType application/xaml+xml xaml
>> AddType application/x-ms-application application
>> AddType application/x-ms-xbap xbap
>> AddType application/manifest manifest
>> AddType application/octet-stream deploy
>> AddType application/vnd.ms-xpsdocument xps
>> AddType application/x-msdownload dll
>>
>>
>> Since the Mono team is working on Moonlight,
>> I assume they also know how to host these applications on Linux?
>>
>> It's all client side isn't it? So it shouldn't require Mono/ASP.NET
>> right?
>> (Even though it's an ASP.NET site, so even then it should still work)
>> (Mono is installed on my server. It's version 1.2.6 --with-
>> preview=yes
>> --with-moonlight=yes)
>>
>> Thank you for any suggestions.
>>
>> Timothy.
>> ___
>> Mono-list maillist  - [EMAIL PROTECTED]
>> http://lists.ximian.com/mailman/listinfo/mono-list
>


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


Re: [Mono-list] Error VBNC30203: Not valid as identifier?

2008-01-16 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Jason DeVelvis
> Sent: miércoles, 16 de enero de 2008 19:15
> To: mono-list@lists.ximian.com
> Subject: Re: [Mono-list] Error VBNC30203: Not valid as identifier?
> 
> 
> I can, but I'm thinking it's just a case of me not setting up mono
> 1.2.6, xsp 2, and mod_mono 2 correctly on my server.
> 

If it's happening with xsp2 as well, then it has nothing to do with
mod_mono/apache configuration, and if a dummy asp.net file works in xsp2,
you've got xsp2 setup correctly.

Given that VB hasn't been used nearly as much as C# on mono/ASP.Net, you
might be hitting a bug there.

Rolf

> Are there any resources I can go to to pay someone to get it set up
> correctly for me at a decent price? I have a good feeling that's the
> problem, and once that's taken care of I should be able to run my app
> with
> no problems. (It's all standard vb asp.net 2.0 code, with a few
> standard 3rd
> party .dlls)
> 
> Thanks!
> Jason
> 
> 
> Rolf Bjarne Kvinge-2 wrote:
> >
> >
> >
> >> -Original Message-
> >> From: [EMAIL PROTECTED] [mailto:mono-list-
> >> [EMAIL PROTECTED] On Behalf Of Jason DeVelvis
> >> Sent: lunes, 14 de enero de 2008 17:01
> >> To: mono-list@lists.ximian.com
> >> Subject: Re: [Mono-list] Error VBNC30203: Not valid as identifier?
> >>
> >>
> >> My mono version is 1.2.6, as is my copy of xsp and xsp2.
> >>
> >> Here's the output from one of the files it lists in the error:
> >>
> >> vti_encoding:SR|utf8-nl
> >> vti_timelastmodified:TR|10 Jan 2008 12:42:41 -
> >> vti_extenderversion:SR|5.0.2.6790
> >> vti_lineageid:SR|{B99B3351-D012-44F7-9982-9167481B82E6}
> >> vti_backlinkinfo:VX|
> >> vti_author:SR|jasonserver\\jason
> >> vti_modifiedby:SR|jasonserver\\jason
> >> vti_nexttolasttimemodified:TW|08 Sep 2007 18:13:52 -
> >> vti_timecreated:TR|10 Jan 2008 12:42:41 -
> >> vti_cacheddtm:TX|08 Sep 2007 18:13:52 -
> >> vti_filesize:IR|22196
> >
> > This clearly isn't valid VB.
> >
> > However it's hard to find the cause without having a reproducible
> test
> > case,
> > any chance you can send us one (either publicly or privately)?
> >
> > Rolf
> >
> >>
> >> So it must be trying to grab data from my files.
> >>
> >> Before now, I wasn't actively running xsp or xsp2, but I ran xsp2
> and
> >> refreshed the page and got the same error. I have these lines in my
> >> httpd.conf file:
> >>
> >> Include /etc/apache2/mod_mono.conf
> >> MonoServerPath /usr/bin/mod-mono-server2
> >>
> >> I figured the mod-mono-server2 was what told apache to use
> mod_mono2,
> >> am I
> >> wrong?
> >>
> >> Thanks for your help!
> >> Jason
> >>
> >>
> >> Rolf Bjarne Kvinge-2 wrote:
> >> >
> >> >
> >> >
> >> >> -Original Message-
> >> >> From: [EMAIL PROTECTED] [mailto:mono-list-
> >> >> [EMAIL PROTECTED] On Behalf Of Jason DeVelvis
> >> >> Sent: viernes, 11 de enero de 2008 19:52
> >> >> To: mono-list@lists.ximian.com
> >> >> Subject: Re: [Mono-list] Error VBNC30203: Not valid as
> identifier?
> >> >>
> >> >>
> >> >> As far as I know, I'm using 1.2.6, (That's what I installed, but
> the
> >> >> man page says 1.0) is there another way to verify that?
> >> >
> >> > "mono --version" will show you the version you're using
> >> >>
> >> >> I installed mono, mod_mono, xsp, and mono-basic from source from
> the
> >> >> http://go-mono.com/sources-stable/ list yesterday.
> >> >
> >> > Are you using mod_mono2 or xsp2?
> >> >
> >> >> I didn't install mono-basic until after I encountered a problem
> >> running
> >> >> my app, though, if that helps.
> >> >>
> >> >> And as for what's in the /tmp/apache-temp-aspnet-
> >> >> 0/e6918b54/37fa1594._30.vb
> >> >> file, I have no idea - I unpacked mono, mod_mono, xsp, and mono-
> >> basic
> >> >> into the /tmp folder, but my asp.net app never went there.
> >> >>
> >> >
> >> > Set the environment variable MONO_ASPNE

Re: [Mono-list] FileSystemWatcher

2008-01-16 Thread Rolf Bjarne Kvinge
>
> 
> I have just discovered that the bug is not where I thought it is
> 
> this file should work under .NET but not mono. As a rule I always
> compile
> under .NET
> http://www.nabble.com/file/p14815890/Form1.vb Form1.vb
> 
> the crash will occur on line 33

Thanks for the repro, I've been able to reproduce it and will inform you
when I've fixed it.

Rolf

> --
> View this message in context: http://www.nabble.com/FileSystemWatcher-
> tp14160191p14815890.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.19.2/1223 - Release Date:
> 13/01/2008 20:23


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


Re: [Mono-list] Error VBNC30203: Not valid as identifier?

2008-01-16 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Jason DeVelvis
> Sent: lunes, 14 de enero de 2008 17:01
> To: mono-list@lists.ximian.com
> Subject: Re: [Mono-list] Error VBNC30203: Not valid as identifier?
> 
> 
> My mono version is 1.2.6, as is my copy of xsp and xsp2.
> 
> Here's the output from one of the files it lists in the error:
> 
> vti_encoding:SR|utf8-nl
> vti_timelastmodified:TR|10 Jan 2008 12:42:41 -
> vti_extenderversion:SR|5.0.2.6790
> vti_lineageid:SR|{B99B3351-D012-44F7-9982-9167481B82E6}
> vti_backlinkinfo:VX|
> vti_author:SR|jasonserver\\jason
> vti_modifiedby:SR|jasonserver\\jason
> vti_nexttolasttimemodified:TW|08 Sep 2007 18:13:52 -
> vti_timecreated:TR|10 Jan 2008 12:42:41 -
> vti_cacheddtm:TX|08 Sep 2007 18:13:52 -
> vti_filesize:IR|22196

This clearly isn't valid VB.

However it's hard to find the cause without having a reproducible test case,
any chance you can send us one (either publicly or privately)?

Rolf

> 
> So it must be trying to grab data from my files.
> 
> Before now, I wasn't actively running xsp or xsp2, but I ran xsp2 and
> refreshed the page and got the same error. I have these lines in my
> httpd.conf file:
> 
> Include /etc/apache2/mod_mono.conf
> MonoServerPath /usr/bin/mod-mono-server2
> 
> I figured the mod-mono-server2 was what told apache to use mod_mono2,
> am I
> wrong?
> 
> Thanks for your help!
> Jason
> 
> 
> Rolf Bjarne Kvinge-2 wrote:
> >
> >
> >
> >> -Original Message-
> >> From: [EMAIL PROTECTED] [mailto:mono-list-
> >> [EMAIL PROTECTED] On Behalf Of Jason DeVelvis
> >> Sent: viernes, 11 de enero de 2008 19:52
> >> To: mono-list@lists.ximian.com
> >> Subject: Re: [Mono-list] Error VBNC30203: Not valid as identifier?
> >>
> >>
> >> As far as I know, I'm using 1.2.6, (That's what I installed, but the
> >> man page says 1.0) is there another way to verify that?
> >
> > "mono --version" will show you the version you're using
> >>
> >> I installed mono, mod_mono, xsp, and mono-basic from source from the
> >> http://go-mono.com/sources-stable/ list yesterday.
> >
> > Are you using mod_mono2 or xsp2?
> >
> >> I didn't install mono-basic until after I encountered a problem
> running
> >> my app, though, if that helps.
> >>
> >> And as for what's in the /tmp/apache-temp-aspnet-
> >> 0/e6918b54/37fa1594._30.vb
> >> file, I have no idea - I unpacked mono, mod_mono, xsp, and mono-
> basic
> >> into the /tmp folder, but my asp.net app never went there.
> >>
> >
> > Set the environment variable MONO_ASPNET_NODELETE=1 and then try
> again
> > with
> > xsp2 (you'll get the same problem, bug the filename will be
> different, and
> > mono won't delete it, so you can see what it contains).
> >
> > Rolf
> >
> >> Thanks,
> >> Jason
> >>
> >>
> >> Rolf Bjarne Kvinge-2 wrote:
> >> >
> >> >
> >> >
> >> >> -Original Message-
> >> >> From: [EMAIL PROTECTED] [mailto:mono-list-
> >> >> [EMAIL PROTECTED] On Behalf Of PMicro
> >> >> Sent: viernes, 11 de enero de 2008 18:34
> >> >> To: mono-list@lists.ximian.com
> >> >> Subject: [Mono-list] Error VBNC30203: Not valid as identifier?
> >> >>
> >> >>
> >> >> I'm trying to port a ASP.Net 2.0 app (written in vb.net) over to
> >> mono,
> >> >> and I'm running into problems. So far, I've been able to search
> and
> >> find
> >> >> answers to my problems, but this one isn't coming up in any
> searches
> >> I've
> >> > made.
> >> >>
> >> >> I've tried porting the app for JIT comiling and I've also tried
> >> >> precompiling the app, and I'm getting this error both ways:
> >> >>
> >> >> Compilation Error
> >> >> Description: Error compiling a resource required to service this
> >> >> request. Review your source file and modify it to fix this error.
> >> >
> >> > Which version of mono are you using? An bug which caused this kind
> of
> >> > failure was fixed recently (when trying to compile resource files
> >> without
> >> > any resources).
> >> >
> >> >>

Re: [Mono-list] FileSystemWatcher

2008-01-14 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of pjd
> Sent: lunes, 14 de enero de 2008 19:54
> To: mono-list@lists.ximian.com
> Subject: Re: [Mono-list] FileSystemWatcher
> 
> 
> 
> 
> Rolf Bjarne Kvinge-2 wrote:
> >
> > Hi,
> >
> > This is probably a problem out late binding in visual basic, but I'd
need to know what this method is trying to do (what method/property is it
trying
> > to access, etc), could you paste the code in this method?
> >
> > Rolf
> >
> >
> 
> it is a filesystemwatcher_changed event
> 

Can you create some code to that reproduces this so that I can try it out?
Otherwise it will be hard to get any further.

Rolf

> --
> View this message in context: http://www.nabble.com/FileSystemWatcher-
> tp14160191p14809207.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.19.2/1223 - Release Date:
> 13/01/2008 20:23


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


Re: [Mono-list] FileSystemWatcher

2008-01-14 Thread Rolf Bjarne Kvinge
Hi,

> 
> 
> 
> pjd wrote:
> >
> > With mono 1.2.6 the program starts but crashes as soon as the filesystem
> > watcher detects any changes in the directory it monitors. I can't give
the
> > error message because windows can't copy from a command prompt but there
> > are a lot of references to C:\cygwin\tmp\... I don't know why this is as
> > you are not supposed to need cygwin to run mono.
> >
> 
> The error message is:
> 
> Unhandled Exception: System.MissingMemberException: Cannot find the
requested class member.
> at Microsoft.VisualBasic.CompilerServices.LateBinder.BindToMethod
>
(System.Reflection.BindingFlags,System.Reflection.MethodBase[],object[]&,Sys
tem.Refle
>
ction.ParameterModifier[],System.Globalization.CultureInfo,string[],object&)
> <0x00426>
> at System.MonoType.InvokeMember
(string,System.Reflection.BindingFlags,System.Reflection.Binder,object,objec
t[],System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,s
tring[]) [0x00203] in
>
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\corlib\System\MonoT
ype.cs:371
> at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet
(object,System.Type,string,object[],string[],bool[]) <0x00095>
> at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet
(object,System.Type,string,object[],string[],System.Type[],bool[]) <0x0001c>
> at Room_booking.frmMain.delBooking (int) <0x00074>

This is probably a problem out late binding in visual basic, but I'd need to
know what this method is trying to do (what method/property is it trying to
access, etc), could you paste the code in this method?

Rolf

> at (wrapper remoting-invoke-with-check) Room_booking.frmMain.delBooking
(int) <0x00045>
> at Room_booking.frmBooking.delbooking () <0x0018d>
> at (wrapper remoting-invoke-with-check) Room_booking.frmBooking.delbooking
() <0x00038>
> at Room_booking.frmBooking.cmdDelete_Click (object,System.EventArgs)
<0xd>
> at System.Windows.Forms.Control.OnClick (System.EventArgs) [0x0001c] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For
ms\System.Windows.Forms\Control.cs:5657
> at System.Windows.Forms.Button.OnClick (System.EventArgs) [0x00024] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For
ms\System.Windows.Forms\Button.cs:104
> at System.Windows.Forms.ButtonBase.OnMouseUp
(System.Windows.Forms.MouseEventArgs) [0x00076] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For
ms\System.Windows.Forms\ButtonBase.cs:616
> at System.Windows.Forms.Button.OnMouseUp
(System.Windows.Forms.MouseEventArgs) [0x0] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For
ms\System.Windows.Forms\Button.cs:126
> at System.Windows.Forms.Control.WmLButtonUp
(System.Windows.Forms.Message&) [0x0005c] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For
ms\System.Windows.Forms\Control.cs:5253
> at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&)
[0x0017c]
inC:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.F
orms\System.Windows.Forms\Control.cs:5006
> at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message&)
[0x00055] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For
ms\System.Windows.Forms\ButtonBase.cs:674
> at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message&)
[0x0] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For
ms\System.Windows.Forms\Button.cs:148
> at ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) [0x0]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For
ms\System.Windows.Forms\Control.cs:225
> at ControlNativeWindow.WndProc (System.Windows.Forms.Message&) [0x0]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For
ms\System.Windows.Forms\Control.cs:206
> at System.Windows.Forms.NativeWindow.WndProc
(intptr,System.Windows.Forms.Msg,intptr,intptr) [0x0006a] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\clas\Managed.Windows.Form
s\System.Windows.Forms\NativeWindow.cs:188
> at System.Windows.Forms.XplatUIWin32.InternalWndProc
(intptr,System.Windows.Forms.Msg,intptr,intptr) [0x0002c] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For
ms\System.Windows.Forms\XplatUIWin32.cs:1886
> at (wrapper native-to-managed)
System.Windows.Forms.XplatUIWin32.InternalWndProc
(intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00065>
> at (wrapper managed-to-native)
System.Windows.Forms.XplatUIWin32.Win32DispatchMessage
(System.Windows.Forms.MSG&) <0x4>
> at System.Windows.Forms.XplatUIWin32.DispatchMessage
(System.Windows.Forms.MSG&) [0x0] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\Managed.Windows.For
ms\System.Windows.Forms\XplatUIWin32.cs:2081
> at System.Windows.Forms.XplatUI.DispatchMessage
(System.Windows.Forms.MSG&) [0x0] in
C:\cygwin\tmp\mon

Re: [Mono-list] Error VBNC30203: Not valid as identifier?

2008-01-11 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Jason DeVelvis
> Sent: viernes, 11 de enero de 2008 19:52
> To: mono-list@lists.ximian.com
> Subject: Re: [Mono-list] Error VBNC30203: Not valid as identifier?
> 
> 
> As far as I know, I'm using 1.2.6, (That's what I installed, but the
> man page says 1.0) is there another way to verify that?

"mono --version" will show you the version you're using
> 
> I installed mono, mod_mono, xsp, and mono-basic from source from the
> http://go-mono.com/sources-stable/ list yesterday.

Are you using mod_mono2 or xsp2?

> I didn't install mono-basic until after I encountered a problem running
> my app, though, if that helps.
> 
> And as for what's in the /tmp/apache-temp-aspnet-
> 0/e6918b54/37fa1594._30.vb
> file, I have no idea - I unpacked mono, mod_mono, xsp, and mono-basic
> into the /tmp folder, but my asp.net app never went there.
> 

Set the environment variable MONO_ASPNET_NODELETE=1 and then try again with
xsp2 (you'll get the same problem, bug the filename will be different, and
mono won't delete it, so you can see what it contains).

Rolf

> Thanks,
> Jason
> 
> 
> Rolf Bjarne Kvinge-2 wrote:
> >
> >
> >
> >> -Original Message-
> >> From: [EMAIL PROTECTED] [mailto:mono-list-
> >> [EMAIL PROTECTED] On Behalf Of PMicro
> >> Sent: viernes, 11 de enero de 2008 18:34
> >> To: mono-list@lists.ximian.com
> >> Subject: [Mono-list] Error VBNC30203: Not valid as identifier?
> >>
> >>
> >> I'm trying to port a ASP.Net 2.0 app (written in vb.net) over to
> mono,
> >> and I'm running into problems. So far, I've been able to search and
> find
> >> answers to my problems, but this one isn't coming up in any searches
> I've
> > made.
> >>
> >> I've tried porting the app for JIT comiling and I've also tried
> >> precompiling the app, and I'm getting this error both ways:
> >>
> >> Compilation Error
> >> Description: Error compiling a resource required to service this
> >> request. Review your source file and modify it to fix this error.
> >
> > Which version of mono are you using? An bug which caused this kind of
> > failure was fixed recently (when trying to compile resource files
> without
> > any resources).
> >
> >>
> >> Error message:
> >>
> >> (0,0) : error VBNC_CRASH: Visual Basic.Net Compiler version
> 0.0.0.5850
> >> Copyright (C) 2004-2007 Rolf Bjarne Kvinge. All rights reserved.
> >>
> >>
> >> Already added type: Members_Default
> >> Already added type: MasterPage
> >> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (1,14) : Error
> >> VBNC30203:
> >
> > What's in /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb?
> >
> > Rolf
> >
> >> Not valid as identifier.
> >> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (1,17) : Error
> >> VBNC30037:
> >> Symbol is not valid.
> >> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (2,21) : Error
> >> VBNC30203:
> >> Not valid as identifier.
> >> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (2,24) : Error
> >> VBNC30037:
> >> Symbol is not valid.
> >> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (3,20) : Error
> >> VBNC30203:
> >> Not valid as identifier.
> >> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (3,23) : Error
> >> VBNC30037:
> >> Symbol is not valid.
> >> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (4,14) : Error
> >> VBNC30203:
> >> Not valid as identifier.
> >> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (4,17) : Error
> >> VBNC30037:
> >> Symbol is not valid.
> >> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (5,17) : Error
> >> VBNC30203:
> >> Not valid as identifier.
> >> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (5,20) : Error
> >> VBNC30037:
> >> Symbol is not valid.
> >> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (6,11) : Error
> >> VBNC30203:
> >> Not valid as identifier.
> >> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (6,14) : Error
> >> VBNC30037:
> >> Symbol is not valid.
> >> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (7,15) : Error
> >> VBNC30203:
> >> Not valid as identifier.
> >> /tmp/apache-temp-asp

Re: [Mono-list] Error VBNC30203: Not valid as identifier?

2008-01-11 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of PMicro
> Sent: viernes, 11 de enero de 2008 18:34
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] Error VBNC30203: Not valid as identifier?
> 
> 
> I'm trying to port a ASP.Net 2.0 app (written in vb.net) over to mono,
> and I'm running into problems. So far, I've been able to search and find
> answers to my problems, but this one isn't coming up in any searches I've
made.
> 
> I've tried porting the app for JIT comiling and I've also tried
> precompiling the app, and I'm getting this error both ways:
> 
> Compilation Error
> Description: Error compiling a resource required to service this
> request. Review your source file and modify it to fix this error.

Which version of mono are you using? An bug which caused this kind of
failure was fixed recently (when trying to compile resource files without
any resources).

> 
> Error message:
> 
> (0,0) : error VBNC_CRASH: Visual Basic.Net Compiler version 0.0.0.5850
> Copyright (C) 2004-2007 Rolf Bjarne Kvinge. All rights reserved.
> 
> 
> Already added type: Members_Default
> Already added type: MasterPage
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (1,14) : Error
> VBNC30203:

What's in /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb?

Rolf

> Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (1,17) : Error
> VBNC30037:
> Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (2,21) : Error
> VBNC30203:
> Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (2,24) : Error
> VBNC30037:
> Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (3,20) : Error
> VBNC30203:
> Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (3,23) : Error
> VBNC30037:
> Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (4,14) : Error
> VBNC30203:
> Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (4,17) : Error
> VBNC30037:
> Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (5,17) : Error
> VBNC30203:
> Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (5,20) : Error
> VBNC30037:
> Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (6,11) : Error
> VBNC30203:
> Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (6,14) : Error
> VBNC30037:
> Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (7,15) : Error
> VBNC30203:
> Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (7,18) : Error
> VBNC30037:
> Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (8,27) : Error
> VBNC30203:
> Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (8,30) : Error
> VBNC30037:
> Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (9,16) : Error
> VBNC30203:
> Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (9,19) : Error
> VBNC30037:
> Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (10,14) : Error
> VBNC30203: Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (10,17) : Error
> VBNC30037: Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (11,13) : Error
> VBNC30203: Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._30.vb (11,16) : Error
> VBNC30037: Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._31.vb (1,14) : Error
> VBNC30203:
> Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._31.vb (1,17) : Error
> VBNC30037:
> Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._31.vb (2,21) : Error
> VBNC30203:
> Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._31.vb (2,24) : Error
> VBNC30037:
> Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._31.vb (3,20) : Error
> VBNC30203:
> Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._31.vb (3,23) : Error
> VBNC30037:
> Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._31.vb (4,14) : Error
> VBNC30203:
> Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._31.vb (4,17) : Error
> VBNC30037:
> Symbol is not valid.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._31.vb (5,17) : Error
> VBNC30203:
> Not valid as identifier.
> /tmp/apache-temp-aspnet-0/e6918b54/37fa1594._31.vb (5,20) : Er

Re: [Mono-list] Process has not been started

2007-12-05 Thread Rolf Bjarne Kvinge
>
>
>From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Richard Couture
>Sent: viernes, 09 de noviembre de 2007 1:25
>To: mono-list@lists.ximian.com
>Subject: [Mono-list] Process has not been started
>
> 
>Hi, 
> 
>I wish I'm in the right list.
> 
>I have OpenSUSE 10.2. The latest mono (1.2.5). Took me a long time to get
it "sort of" working with Apache 2.x.  Now I am getting the error trying to
run a vb code.
>
> 
>HTTP Error Code 500
>System.InvalidOperationException: Process has not been started.
>blablabla...
> 
>I have look everywhere I could think of for an answer to no end. The one
answer that seems to always show is that vbnc is not in my path. I think it
is cause if I type vbnc at the prompt, it does come up (giving me an error
of >course). 
> 
>XSP2 does, to a point, work, no error msg, but not the expected result
either.
>

This suggests that even if you have vbnc in your path, but apache might not.

The problem you have with XSP2 is probably because of bugs in vbnc (or other
vb-related issues), so bug-reports are very welcome :)

Rolf
 
>Yes I am quite new to Linux and all the side of the world. But "tabarnac"
as we say in french, I cannot believe this has to be that hard to get
running. 
> 
 
Thanks for any help.


 Richard 






Express yourself with free Messenger emoticons. Get them today!

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


Re: [Mono-list] runtime error System.MissingMemberException

2007-11-06 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Gmail-RPG
> Sent: martes, 06 de noviembre de 2007 8:30
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] runtime error System.MissingMemberException
> 
> Any reference in the vb code to a combobox which is located on a
> tabpage
> gives this error. Same vb code referencing a combobox on the same form,
> but not on a tabpage, does not.

You would have to give us some sample code that can be used to repro this,
otherwise there's no way we can figure out the problem.

Rolf

> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.15.22/1112 - Release Date:
> 05/11/2007 19:11


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


Re: [Mono-list] Forms

2007-10-30 Thread Rolf Bjarne Kvinge


>From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
>Sent: martes, 30 de octubre de 2007 1:24
>To: mono-list@lists.ximian.com
>Subject: [Mono-list] Forms
>
>This is not a Mono specific question but rather a forms question.  I have
done some VB.net programming and know how to open and hide forms using
>
>form2.open ()
>me.hide()
>
>How is this done in C++.net 

I have no idea

> and in C#.net? 
>

form2 form = new form2 ();
form.Show ();
this.Hide ();

(which is the equivalent of the following VB code, since C# doesn't have
default instances, required for doing "form2.open ()")

Dim form As New form2
form.Show ()
Me.Hide ()


Rolf

>I know to hide in c++.net is This-- >Hide but don't know how to open
another form (Form2).
>
>Can someone show me the code to hide and open forms in c++ and c#

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


Re: [Mono-list] How do I compile my vb code??

2007-10-29 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of dadof6kids
> Sent: domingo, 21 de octubre de 2007 7:27
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] How do I compile my vb code??
> 
> 
> I am new to mono. I'm using monodevelop and cannot figure out how to
> compile my code. I have seen references to a compiler tool called vbnc
when I
> Google this topic but can't find it. Is this what I should be using?
> 

Which version of monodevelop are you using? You should be able to just hit
the compile button to compile your code.

Rolf

> Any help would be appreciated.
> --
> View this message in context: http://www.nabble.com/How-do-I-compile-
> my-vb-code---tf4665023.html#a13326224
> Sent from the Mono - General mailing list archive at Nabble.com.
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.15.12/1095 - Release Date:
> 26/10/2007 19:54


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


Re: [Mono-list] Get Olive

2007-10-19 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Lennie De Villiers
> Sent: viernes, 19 de octubre de 2007 14:51
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] Get Olive
> 
> Hi,
> 
> I'm using http://tortoisesvn.tigris.org/ on a MS Windows XP Pro
> machine to get a copy of Olive via SVN but the update keep stopping
> half way without me getting all the files.
> 
> how can i get all the files without the SVN dropping?
> 

Do you get any errors?

Rolf

> Kind Regards,
> 
> Lennie De Villiers
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

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


Re: [Mono-list] Get Olive

2007-10-19 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: Lennie De Villiers [mailto:[EMAIL PROTECTED]
> 
> No it just stops but no message thats it complete.
> Currently now I just get a blank screen and the download don't want to
> start.
> 

Note that if there are some big files TortoiseSVN might seem to hang for a
while until it continues. Otherwise try to update any of the subdirectories
to see which one is the offending one and that way try to find the
problematic file.

Rolf

> On 10/19/07, Rolf Bjarne Kvinge <[EMAIL PROTECTED]> wrote:
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:mono-list-
> > > [EMAIL PROTECTED] On Behalf Of Lennie De Villiers
> > >
> > > Hi,
> > >
> > > I'm using http://tortoisesvn.tigris.org/ on a MS Windows XP Pro
> > > machine to get a copy of Olive via SVN but the update keep stopping
> > > half way without me getting all the files.
> > >
> > > how can i get all the files without the SVN dropping?
> > >
> >
> > Do you get any errors?
> >
> > Rolf
> >
> > > Kind Regards,
> > >
> > > Lennie De Villiers
> > > ___
> > > Mono-list maillist  -  Mono-list@lists.ximian.com
> > > http://lists.ximian.com/mailman/listinfo/mono-list
> >
> >

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


Re: [Mono-list] file handling in mono-vb

2007-10-19 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Gmail-RPG
> Sent: sábado, 13 de octubre de 2007 7:45
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] file handling in mono-vb
> 
> Will the FileOpen/FileClose/FileGet/FilePut group of statements ever be
> supported?

Yes.

When? I can't really say, I'm busy doing other stuff now.

Rolf
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

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


Re: [Mono-list] Look and feel of WinForms applications on Linux

2007-08-27 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Frederik Carlier
> Sent: lunes, 27 de agosto de 2007 11:17
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] Look and feel of WinForms applications on Linux
> 
> Hi,
> 
> When running a WinForms application on Linux, it happens quite often
> that text gets wrapped. For example, see
> http://www.tigernet.net/od_ubuntu.png . You can see a couple of things
> here:
> - The text in the ComboBoxes gets wrapped horizontally (lower half is
> not visible);
> - The text in the labels gets wrapped, because it is wider than on
> Windows.
> 
> What are the recommended techniques to deal with such issues? In some
> cases, such as the labels, re-sizing the label is possible. However, I
> don't think resizing the combobox is a solution, because that would
> cause them to be "too big" on Windows.
> 

- A combobox does not wrap, what you see is that the text is drawn too low.
This is a bug, so please report it here: http://bugzilla.ximian.com
- Regarding the labels they have an AutoSize property that I think would fit
this purpose quite well.

Rolf



> Any ideas?
> 
> Frederik.
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.484 / Virus Database: 269.12.9/975 - Release Date:
> 26/08/2007 21:34


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


Re: [Mono-list] Input Mask Component?

2007-08-21 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Kevin Monceaux
> Sent: lunes, 20 de agosto de 2007 15:38
> To: Mono Mailing List
> Subject: [Mono-list] Input Mask Component?
> 
> Mono Enthusiasts,
> 
> Does anyone know of an Input Mask component that works with Mono?  I
> just tried one from Assisted Solutions but Mono complains that it couldn't
> find or load the Microsoft.VisualBasic file or assembly.
> 

Mono does ship the Microsoft.VisualBasic assembly, so that isn't a reason
why this component doesn't work with Mono (however you might not have the
Microsoft.VisualBasic installed, or your setup might be wrong).

In any way more information would be needed to help.

Rolf

> 
> 
> Kevin
> http://www.RawFedDogs.net
> http://www.WacoAgilityGroup.org
> Bruceville, TX
> 
> Si hoc legere scis nimium eruditionis habes.
> Longum iter est per praecepta, breve et efficax per exempla!!!
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date:
> 19/08/2007 7:27


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


Re: [Mono-list] DLL

2007-08-16 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: Michel Pérez [mailto:[EMAIL PROTECTED]
> Sent: jueves, 16 de agosto de 2007 14:16
> To: Rolf Bjarne Kvinge
> Cc: mono-list@lists.ximian.com; [EMAIL PROTECTED]
> Subject: Re: [Mono-list] DLL
> 
> I have another question. Is possible to use the VB6 DLL in C# and after
> use the C# interface in an aspx and deploy on mono ?
> 

It's not about the language you're writing in now, it's about the language
the VB6 dll was written in.

Writing the code to access the VB6 dll in C# instead of VB.NET won't change
the fact that mono's COM support is very new and needs time to mature.

Rolf 

> 
> Rolf Bjarne Kvinge wrote:
> >
> >> -Original Message-
> >> From: [EMAIL PROTECTED] [mailto:mono-list-
> >> [EMAIL PROTECTED] On Behalf Of Michel Pérez
> >> Sent: miércoles, 15 de agosto de 2007 22:11
> >> To: mono-list@lists.ximian.com
> >> Subject: [Mono-list] DLL
> >>
> >> Greetings,
> >>
> >> Im new at Mono, so I would like to know if is possible to use a dll
> >> developed in VB6 on mono, and how to do this to use it in  aspx. if
> >> that if not possible what could I do to use it dll (workaround).
> >>
> >>
> >
> > VB6 dlls are COM based, and will not work on Linux. On Windows (with
> MS) you
> > should be able to get it to work (Google will find you plenty of
> resources),
> > with Mono on Windows it might work, but our COM implementation is
> very new
> > so it might not as well.
> >
> > I suggest you try to make it work with MS first, then try to run it
> on Mono,
> > and if it doesn't work, file a bug so that we can get better :)
> >
> > Rolf
> >
> >
> >> Thanks
> >>
> >> --
> >> Ing. Michel Pérez
> >> Gerente de Proyectos
> >> Kynesoft Sistemas
> >> Teléfonos: +58 (212) 263-00-07 / 263-19-91
> >> Fax: +58 (212) 263-00-07
> >> e-mail:[EMAIL PROTECTED]
> >>
> >> ___
> >> Mono-list maillist  -  Mono-list@lists.ximian.com
> >> http://lists.ximian.com/mailman/listinfo/mono-list
> >>
> >>
> >> --
> >> No virus found in this incoming message.
> >> Checked by AVG Free Edition.
> >> Version: 7.5.476 / Virus Database: 269.11.19/953 - Release Date:
> >> 14/08/2007 17:19
> >>
> 
> 
> --
> Ing. Michel Pérez
> Gerente de Proyectos
> Kynesoft Sistemas
> Teléfonos: +58 (212) 263-00-07 / 263-19-91
> Fax: +58 (212) 263-00-07
> e-mail:[EMAIL PROTECTED]
> 
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.11.19/955 - Release Date:
> 15/08/2007 16:55


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


Re: [Mono-list] [Mono-dev] Problems getting libgdiplus from subversion repository

2007-08-16 Thread Rolf Bjarne Kvinge


>From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin Trejo
>Sent: jueves, 09 de agosto de 2007 20:15
>To: [EMAIL PROTECTED]
>Cc: Mono List; [EMAIL PROTECTED]
>Subject: Re: [Mono-dev] [Mono-list] Problems getting libgdiplus from
subversion repository
>
>Hi Sebastien,
>2007/8/9, Sebastien Pouliot <[EMAIL PROTECTED]>:
>Hey,
>
>On Thu, 2007-08-09 at 12:11 -0500, Martin Trejo wrote:
>> Hi,
>>
>> I've been trying to get the latest version of libgdiplus from
>> subversion but I'm having trouble with it. Each time I try get this 
>> message:
>>
>> svn: In directory 'cairo/doc/public/html'
>> svn: Can't copy 'cairo/doc/public/html/.svn/tmp/text-base/cairo-
>> Error-handling.html.svn-base' to
>> 'cairo/doc/public/html/.svn/tmp/cairo- Error-handling.html.tmp.tmp': No
>> such file or directory
>>
>> I'm having the same problem in two different machines and svn versions
>> ( 1.4.3 & 1.4.4)
>
>Strange, I didn't have any issues on my boxes (using svn 1.3.1).

This just happened to me too, and it's because in the cairo/doc/public/html
directory there are two files that only differ by case
(cairo-Error-handling.html and cairo-Error-Handling.html).

Checking out this on windows causes problems, while doing it on Linux does
not.

Rolf

>
>> Running svn cleanup doesn't resolve the issue. Any suggestion?
>
>I would try a new checkout in another directory.
>
>The problem happens doing checkout & update, either time it fails with the
same error. 
>
 

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


Re: [Mono-list] DLL

2007-08-16 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Michel Pérez
> Sent: miércoles, 15 de agosto de 2007 22:11
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] DLL
> 
> Greetings,
> 
> Im new at Mono, so I would like to know if is possible to use a dll
> developed in VB6 on mono, and how to do this to use it in  aspx. if
> that if not possible what could I do to use it dll (workaround).
> 

VB6 dlls are COM based, and will not work on Linux. On Windows (with MS) you
should be able to get it to work (Google will find you plenty of resources),
with Mono on Windows it might work, but our COM implementation is very new
so it might not as well.

I suggest you try to make it work with MS first, then try to run it on Mono,
and if it doesn't work, file a bug so that we can get better :)

Rolf 

> Thanks
> 
> --
> Ing. Michel Pérez
> Gerente de Proyectos
> Kynesoft Sistemas
> Teléfonos: +58 (212) 263-00-07 / 263-19-91
> Fax: +58 (212) 263-00-07
> e-mail:[EMAIL PROTECTED]
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.11.19/953 - Release Date:
> 14/08/2007 17:19


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


Re: [Mono-list] How to skip the command prompt

2007-08-16 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of OYO
> Sent: lunes, 13 de agosto de 2007 8:14
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] How to skip the command prompt
> 
> 
> Hello,
> 
> When double-click the mono executed file(such as a.exe), a widget runs.
> But the command prompt is also pop out. How to skip the command prompt?
> --

Compile the application with "mcs -target:winexe ..."

Rolf


> View this message in context: http://www.nabble.com/How-to-skip-the-
> command-prompt-tf4259378.html#a12121352
> Sent from the Mono - General mailing list archive at Nabble.com.
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.11.19/955 - Release Date:
> 15/08/2007 16:55


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


Re: [Mono-list] Mono-list Digest, Vol 28, Issue 14

2007-08-10 Thread Rolf Bjarne Kvinge
> 
> Hello Rolf,
> 
> I am using apache integrated with mono 2.0. I am loading my SUN One asp
> pages thru' browser.
> 
> Following is an example of  my source code:
> 
> 
> 


As Robert said (which I didn't know) this is ASP, not ASP.NET, and mono
doesn't support it (and vbnc can't compile it either, it's not VB code, it's
VBScript).

Rolf


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


Re: [Mono-list] Mono-list Digest, Vol 28, Issue 12

2007-08-10 Thread Rolf Bjarne Kvinge
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Ashish Goyal
> Sent: jueves, 09 de agosto de 2007 21:04
> To: mono-list@lists.ximian.com
> Subject: Re: [Mono-list] Mono-list Digest, Vol 28, Issue 12
> 
> Hello,
> 
> I have a web site running with SUN One Asp. I am trying to test this
> site
> using mono.
> 
> I get the following error when I load my pages written in visual basic
> script.
> 
> I am not able to understand what nees to be done to fix it. Does
> somebody knows anything about the following error?
> 
> Visual Basic.Net Compiler version 0.0.0.5058
> Copyright (C) 2004-2007 Rolf Bjarne Kvinge. All rights reserved.
> 
> 
> Error recovery not implemented yet.
> /srv/www/htdocs/test/index2.aspx (1,4) : Warning VBNC90019: Expected
> '>'.
> Error recovery not implemented yet.
> Unexpected error: An error message should have been shown: 'Hanging
> attributes.'
>   at vbnc.Helper.AddError (System.String Message) [0x0]
>   at vbnc.Parser.ParseAssemblyMembers (vbnc.AssemblyDeclaration Parent,
> System.String RootNamespace, vbnc.MemberDeclarations result) [0x0]
>   at vbnc.Parser.ParseAssemblyDeclaration (System.String RootNamespace)
> [0x0]
>   at vbnc.Parser.Parse (System.String RootNamespace) [0x0]
>   at vbnc.Compiler.Compile_Parse () [0x0]
>   at vbnc.Compiler.Compile () [0x0]
> Compilation took 00:00:10.9510510
> 

1. The compiler you're using is quite old, I suggest updating it.
2. It would be easier to find out what's wrong if you show us the source
code.
3. You can't compile aspx files directly with vbnc, they have to be
transformed into vb source code. This is done by starting a web server
(apache, xsp2), and then navigate to your aspx file in a browser. The web
server will transform the aspx file into vb source code.

Rolf

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


Re: [Mono-list] vbnc

2007-05-16 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Jorge Bastos
> Sent: miércoles, 16 de mayo de 2007 23:22
> To: Mono-list@lists.ximian.com
> Subject: Re: [Mono-list] vbnc
> 
> Dumb me,
> You're right!
> It works within the browser.
> Is the 1.1 version fully working?
 
No, Visual Basic is only working for 2.0.
There are plans to support 1.1 one day, but it's quite far in the future.

Rolf


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


Re: [Mono-list] Bug on mono preview?

2007-05-02 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Carlos Adriano Portes
> Sent: miércoles, 02 de mayo de 2007 1:49
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] Bug on mono preview?
> 
> Hi friends
> 
> The latest preview that I have compiled myself crashes any application
> when I press any key from the keyboard, even though the installation
> proceded without issues and the applications open normally, I think it
> has something to do with the brazilian abnt2 keyboard model, I now
> that this bug has been reported in the past by "monoman" but it is
> still not corrected, another thing is a lot of bugs in a simple mdi
> application using winforms of version 1.1, if I was to report them I
> would take too long and perhaps would not help very much, if a
> developer of mono/winforms want I would send them an application to
> show what the bugs are and how to see them happening, the application
> is very small and is a test one...
 
The best thing would be to open a bug report explaining the problems you see
with MDI and attach the application, I'll have a look at it as soon as
possible.

Rolf



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


Re: [Mono-list] Line numbers in exceptions

2007-04-26 Thread Rolf Bjarne Kvinge
> 
> Also, they say on the debugging page that using the --debug command
> line option will result in slower execution.  How much slower is this to
use
> that option?  Have you ever made benchmarks for this?

I've never noticed any slowdown, so there's not much difference I suppose.
Haven't done any benchmarks either though :)

Rolf


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


Re: [Mono-list] Line numbers in exceptions

2007-04-25 Thread Rolf Bjarne Kvinge


>From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Gagnon
>Sent: miércoles, 25 de abril de 2007 19:15
>To: mono-list@lists.ximian.com
>Subject: [Mono-list] Line numbers in exceptions
>
>Hi,
> 
>I have a program that is compiled with Visual Studio.  When I run it in
.NET, I get the line numbers in the string generated by
Exception.ToString().  But when I run it with Mono, I don't get the line
numbers.  I tried using the -->debug flag and it doesn't change anything, I
still don't have the line numbers.  I suspect that this is because I
compiled my application with Visual Studio and that Mono can't use the .pdb
files.  Am I right?  If I am right, is >there a way to at least get the IL
offset in the file?  It seems to always return 0 in my case.
>
Mono can't read pdb files, you have to recompile the assemblies with any of
the mono compilers (mcs / gmcs) in order to get the line numbers.

Rolf


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


Re: [Mono-list] Call for testing: Mono 1.2.4 Preview Available

2007-04-21 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Jorge Bastos
> Sent: sábado, 21 de abril de 2007 11:35
> To: mono-list@lists.ximian.com
> Subject: Re: [Mono-list] Call for testing: Mono 1.2.4 Preview Available
> 
> I compiled all sucessfull with gcc 4.1x and glibc2.5
> 
> Only saw this in mono-basic:
> ---
> Does 'vbnc.BoundList' have no type references?
> ---
This is not at all serious, just a diagnostic message, you can safely ignore
it as long as it compiles successfully. 

Rolf


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


Re: [Mono-list] Next Point Release?

2007-04-20 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Glen Ford
> Sent: viernes, 20 de abril de 2007 9:45
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] Next Point Release?
> 
> 
> Hi Miguel and Team :)
> 
> 
> Is there a plan for a new point release of 1.2(.3) anytime soon?
> We are currently using a version from svn post 1.2.3.1 (due to xsp load
> issues) and would like to move on to a more 'official' release soon.
> 
http://lists.ximian.com/pipermail/mono-devel-list/2007-April/023127.html

Rolf


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


Re: [Mono-list] Error in ASP.NET with XSP2

2007-04-16 Thread Rolf Bjarne Kvinge


>From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thempra
>Sent: viernes, 13 de abril de 2007 17:56
>To: mono-list@lists.ximian.com
>Subject: [Mono-list] Error in ASP.NET with XSP2
>
>Hi,
>
>  I'm try to port an application ASP.NET of Visual Studio 2005 to mono, but
when I run it, I get an error, the directory is created, but the assemblies
is not here. Where is the problem??? 

This should be fixed now, you can use SVN HEAD to try it out until the next
version is released.

Rolf

>Thanks.
>Thempra

Server error in '/' application

Description: Error processing request. 
Error Message: HTTP 500. 
Stack Trace: 
System.BadImageFormatException: Could not load file or assembly
'/tmp/root-temp-aspnet-0/95ad3c42/App_Code.40f9d8e5.dll' or one of its
dependencies. An attempt was made to load a program with an incorrect
format.

File name: '/tmp/root-temp-aspnet-0/95ad3c42/App_Code.40f9d8e5.dll'
  at <0x0> 
  at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom
(string,bool)
  at 
System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x0] 
  at Microsoft.VisualBasic.VBCodeCompiler.CompileFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x0] 

  at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x0] 
  at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile
 (System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x0] 
  at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.String
virtualPath, System.CodeDom.Compiler.CompilerParameters
 options) [0x0] 
  at System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.CodeDom.Compiler.CompilerParameters options) [0x0] 
  at System.Web.Compilation.AppCodeAssembly.Build (System.String[]
binAssemblies) [0x0] 

  at System.Web.Compilation.AppCodeCompiler.Compile () [0x0] 
  at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext
context) [0x0] 
  at System.Web.HttpApplicationFactory.GetApplication
 (System.Web.HttpContext context) [0x0] 
  at System.Web.HttpRuntime.RealProcessRequest (System.Object o) [0x0] 



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


Re: [Mono-list] Error in ASP.NET with XSP2

2007-04-13 Thread Rolf Bjarne Kvinge


>From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thempra
>Sent: viernes, 13 de abril de 2007 17:56
>To: [EMAIL PROTECTED]
>Subject: [Mono-list] Error in ASP.NET with XSP2
>
>Hi,
>
>  I'm try to port an application ASP.NET of Visual Studio 2005 to mono, but
when I run it, I get an error, ths directory is created, but the assemblies
>is not here. Where is the problem??? 

This is a known issue with VB code, I'll hopefully be able to fix it soon.

Rolf



___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Question on System.Windows.Forms

2007-02-22 Thread Rolf Bjarne Kvinge
>
>
>>From: Huub van Niekerk [mailto:[EMAIL PROTECTED] 
>>Sent: jueves, 22 de febrero de 2007 17:30
>>To: Rolf Bjarne Kvinge
>>Subject: Re: [Mono-list] Question on System.Windows.Forms
>>
>>You're mixing WinForms and Gtk#, they are two different toolkits for GUI
>>applications (see http://www.mono-project.com/Gui_Toolkits).
>>You should only be using one at a time.
>>
>>Rolf
>
>Ok, that is 1 problem. However, even if I want to use only Windows.Forms, I
have a problem. When I type System.W , the only W showing up in the list is
WeakReference, or with D (for Drawing) DataMisalignedException. So I'm
missing >Windows and Drawings in the list. I checked and found this path:
/usr/lib/mono/gac/System.Windows.Forms and /usr/lib/mono/gac/System.Drawing.
So I know the dll's are present. Any idea what I can do about this? 
>
>Huub

In MonoDevelop you'll have to add a reference to System.Windows.Forms /
System.Drawing in the solution view.

Rolf 

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


Re: [Mono-list] Question on System.Windows.Forms

2007-02-22 Thread Rolf Bjarne Kvinge
>
>From: Huub van Niekerk [mailto:[EMAIL PROTECTED] 
>Sent: jueves, 22 de febrero de 2007 16:40
>To: Rolf Bjarne Kvinge
>Subject: Re: [Mono-list] Question on System.Windows.Forms
>
>>On 2/22/07, Rolf Bjarne Kvinge <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>If you show us the code and the command line you're trying to compile with
>>it would be easier to find the problem :)
>>
>>Rolf
>
>Hi Rolf,
>
>Since it took 3 days till my message showed up in the list, I hope you
don't mind I answer you directly. 
>
>The gmcs command: gmcs -pkg:gtk-sharp /r:System.Windows.Forms.dll
/r:System.Drawing /r:System.dll Main.cs MainWindow.cs AssemblyInfo.cs
gtk-gui/generated.cs
>
>The code (MainWindow.cs):
>
>using System;
>using System.Windows.Forms;
>using Gtk;
>
>public class MainWindow: Gtk.Window
>{    
>    public MainWindow (): base ("")
>    {
>        Stetic.Gui.Build (this, typeof(MainWindow));
>    }
>    
>    protected void OnDeleteEvent (object sender, DeleteEventArgs a)
>    {
>        Application.Quit ();
>        a.RetVal = true;
>    }
>
>    protected virtual void OnButton1Clicked(object sender, System.EventArgs
e)
>    {
>        MessageBox.Show("Welkom bij het\nwindows programmeren");
>    }
>}

You're mixing WinForms and Gtk#, they are two different toolkits for GUI
applications (see http://www.mono-project.com/Gui_Toolkits).
You should only be using one at a time.

Rolf

>Errors from within MonoDevelop (these errors appear twice each):
>
>The type or namespace name `Windows.Forms' could not be found. Are you
missing a using directive or an assembly reference?(CS0246) 
>[The type or namespace name `Windows' does not exist in the namespace
`System'. Are you missing an assembly reference?(CS0234)
>
>Same happens if I use System.Drawing or System.Drawings instead of
System.Windows.Forms , be it with the respective errors.
>
>BTW: I solved the crashing of f-spot on Fedora Core 6. Cause was that I had
installed mono from the mono-project repository, instead of the Fedora
repository. Unfortunately, it didn't solve the compile problems. 
>
>Thanks for helping out.

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


Re: [Mono-list] Question on System.Windows.Forms

2007-02-22 Thread Rolf Bjarne Kvinge


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mono-list-
> [EMAIL PROTECTED] On Behalf Of Huub
> Sent: lunes, 19 de febrero de 2007 16:10
> To: Mono-list@lists.ximian.com
> Subject: [Mono-list] Question on System.Windows.Forms
> 
> Hi,
> 
> For some time I'm trying to build an example program (HelloWindows) on
> both Windows2k, Ubuntu and FC6. So far, I only succeed on Windows. On
> both Ubuntu and FC6, I get the message that the directive Windows.Forms
> doesn't exist. However, I also installed f-spot on both FC6 and Ubuntu
> and I found out that Windows.Forms is one of its dependancies (it works
> great on Ubuntu and crashes on FC6 at importing). So Windows.Forms is
> there.
> So, my question is: what should I do to get this directive working,
> either on commandline (mcs/gmcs) on with MonoDevelop? I've tried to
> find
> out searching internet, but haven't found anything usable (yet).
> 
> Thanks for helping out.

If you show us the code and the command line you're trying to compile with
it would be easier to find the problem :)

Rolf

> 
> Huub
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date:
> 21/02/2007 15:19


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


Re: [Mono-list] vbnc

2007-01-12 Thread Rolf Bjarne Kvinge
Hopefully within a couple of weeks.

 

Rolf

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jorge Bastos
Sent: martes, 09 de enero de 2007 13:21
To: Mono-list@lists.ximian.com
Subject: [Mono-list] vbnc

 

To when vbnc integrated with mono ?

 

Jorge

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


Re: [Mono-list] Mono + VB.NET?

2007-01-12 Thread Rolf Bjarne Kvinge
Hi,

> > > I'm trying to run a VB.NET web app under Linux using Mono and vbnc.
> > > When I run xsp in the directory with the files and try to access
> > > HelloWorld.aspx, I get a 500 client-side with this information:
> > > Description: Error processing request.
> > vbnc is not working with web apps yet (it will hopefully very soon)
> Can I beta-test this or something?  Is there code missing for this
> that I might be able to contribute?  Is the problem in vbnc or xsp?
>
> > For some reason it looks like vbnc.exe got into your v1.0 gac, while
> it is a
> > v2.0 only assembly.
> I figured out what happened, I think - I had linked mbas.exe (which
> xsp references) to vbnc.  Since mbas is in .../1.0, it must make vbnc
> ask for 1.0 libraries instead of 2.0.  Any suggestions on how I could
> make xsp look for vbnc instead of mbas?

I think you'll have to use xsp2 (which references 2.0 libraries) instead of
xsp (which references 1.0).

Rolf


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


Re: [Mono-list] Mono + VB.NET?

2007-01-03 Thread Rolf Bjarne Kvinge

> I'm trying to run a VB.NET web app under Linux using Mono and vbnc.
> When I run xsp in the directory with the files and try to access
> HelloWorld.aspx, I get a 500 client-side with this information:
> Description: Error processing request.
vbnc is not working with web apps yet (it will hopefully very soon)
 
>   DEBUG RUN
> 
> 
> ** (/usr/local/lib/mono/1.0/vbnc.exe:15670): WARNING **: The class
> System.Collections.Generic.Queue`1 could not be loaded, used in
> System, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089
> Could not load type 'System.Collections.Generic.Queue`1' from assembly
> 'System, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089'.
>   at <0x0> 
>   at vbnc.Main.Main (System.String[] CmdArgs) [0x0]
> 
> What assembly am I missing?  Any suggestions?

For some reason it looks like vbnc.exe got into your v1.0 gac, while it is a
v2.0 only assembly.

What happens if you copy vbnc.exe to some other directory and then run "mono
vbnc.exe test.vb"?
 
Rolf


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


Re: [Mono-list] vb?

2006-12-17 Thread Rolf Bjarne Kvinge
Hi,

I'm working on the vb compiler now, but there is no date yet (it crashes on the 
Mono runtime while compiling itself, and I can't really know when it will 
succeed until it succeeds ;) 

The mono-basic runtime is there though (most 1.1 classes are implemented, and 
some 2.0 - the missing classes are planned to be implemented during the first 
half of 2007).

Rolf


>Hi,
>
>Is there a pencilled in date yet for the new mono-basic yet? I've not seen 
>anything on here about it for a few weeks.
>
>TTFN
>
>Paul
>--
>Sie knnen mich aufreizen und wirklich hei machen!

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


Re: [Mono-list] vbnc in mono

2006-12-05 Thread Rolf Bjarne Kvinge
Hello,

No, vbnc is not shipped with mono yet, it will hopefully soon though.

Rolf

> Hi,
> Is vbnc present in mono by default with mono >=1.2.1 ?
>
> Jorge



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mono Basic

2006-11-13 Thread Rolf Bjarne Kvinge
Hello,

Yes, there is work in progress to make the mono basic compiler  
self-hosting on Linux, though there is not a date yet (there is an  
undetermined number of bugs in mono itself that has to be fixed).

Rolf

On Fri, 10 Nov 2006 22:03:37 +0100, Paul <[EMAIL PROTECTED]>  
wrote:

> Hi,
>
> Any signs of a Linux compilable version of mono basic coming in the near
> future?
>
> TTFN
>
> Paul


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] VBNC in Mono.

2006-09-14 Thread Rolf Bjarne Kvinge
On Thu, 14 Sep 2006 17:22:34 +0200, Jonathan Gilbert  
<[EMAIL PROTECTED]> wrote:

> In the case of an Object that is known to contain a String, a call to
> .ToString() may perform better than a direct cast. A cast still needs to
> check the type, even though the code has already just done it with a  
> TypeOf
> (I'd be very surprised if the JIT can detect that pattern and only do one
> check). Calling .ToString() will be a virtual call to "return this;".  
> It'd
> be interesting to do a comparison, but my intuition is that .ToString()
> would be significantly faster in this case.

Just tried it, but I got inconclusive results (sometimes .ToString()  
performed better, sometimes DirectCast performed better). During the first  
test runs .ToString() did perform better (5-10% better), then suddenly  
DirectCast started performed better (5-20% better), so I don't really  
think there is any big difference. I tried running with and without  
debugger, DEBUG and RELEASE builds, and with and without integer checks  
on, and always got inconclusive results (only on MS, I don't know how Mono  
will perform).

Rolf

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.3/447 - Release Date: 13/09/2006

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


Re: [Mono-list] VBNC in Mono.

2006-09-13 Thread Rolf Bjarne Kvinge
Hi Kornél,

Regarding the bug in vbnc: how (and where) did you find a type with a null  
namespace?
According to MSDN this should not happen unless it is a generic type:
http://msdn2.microsoft.com/en-us/library/system.type.namespace.aspx

Anyway feel free to commit the patch ;)

Rolf

> Hi,
>
> Use "VB.replace.bat 2" then try to bootstrap vbnc on MS.NET.
>
> For an example have a look at the attached vbrun.diff.
>
> The bug I found when trying to compile vbnc was:
> Case TypeCode.Decimal
> Return CDec(Value)
>
> This results in a recursiong with Conversions.ToDecimal because CDec (and
> all the other CType conversions are done at runtime unless the type is  
> known
> to the compiler as well. And anyway there is no use to do  
> reinterpretation
> when the exact type is know. A simple unbox is enough.
>
> But there are other bugs (and I guess a lot of them) in VB runtime for  
> sure.
>
> And I found a bug in vbnc as well that was possible because of a bug in
> System.Windows.Forms.:)
>
> Kornél
>
> - Original Message -
> From: "Miguel de Icaza" <[EMAIL PROTECTED]>
> To: "Kornél Pál" <[EMAIL PROTECTED]>
> Cc: 
> Sent: Wednesday, September 13, 2006 12:04 AM
> Subject: Re: [Mono-list] VBNC in Mono.
>
>
>> Hey!
>>
>>> But it's unable to bootstrap itself on MS.NET using our VB runtime so  
>>> the
>>> VB
>>> runtime should be fixed as well before trying to fix vbnc on Mono.
>>
>> Do you have some details for me?
>>
>> This is a good observation, before we launch ourselves into a quest to
>> fix bugs on the Mono side (although we already fixed a known problem)



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.3/445 - Release Date: 11/09/2006

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


Re: [Mono-list] [Mono-dev] Announce: Mono.Fuse 0.3.0

2006-09-12 Thread Rolf Bjarne Kvinge
Hi,

> The problem is that FUSE is a kernal module + library pair.  To do the
> same on Windows, you'd need a Windows kernel driver, and you'd need the
> Windows kernel driver interface to support the FUSE operations.
>
> This means you'd have to have the Windows DDK, which IIRC costs money
> (as opposed to the Win32 SDK, which is typically free).
As far as I can see you can download it (for free) here:
http://www.microsoft.com/whdc/devtools/ddk/default.mspx

> So if you (a) have money, and (b) have lots of time to learn the
> intricacies of Win32 device driver development, you're more than welcome
> to attempt a port. :-)
You'll still need the time though :-)

Rolf

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.3/445 - Release Date: 11/09/2006

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


Re: [Mono-list] VBNC in Mono.

2006-09-11 Thread Rolf Bjarne Kvinge
Hi,

> The solution depends on your needs. The simplest solution is to use SRE  
> that will generate debug information in the native format of the  
> runtime. (pdb on MS.NET and mdb on Mono) If mdb generation on MS.NET is  
> only needed to make vbnc bootstrap on Mono then either patching vbnc or  
> using pdb2mdb can be used because I think in this case there is no use  
> to commit that modification to SVN.
I didn't realize that once vbnc bootstraps on mono this won't be a problem  
anymore, so I agree with you here, I think the best would be to patch vbnc  
until it can bootstrap on mono.

> But if you want build in support for mdb format in vbnc even when  
> running on MS.NET a new optional feature (along with a command line  
> option to enable it) should be added to the compiler source code to  
> generate mdb files.
This would be a nice-to-have feature, but I don't think I'll spend time on  
it, there are plenty of other areas that can be improved upon first.

> BTW Rolf, is the AscW patch OK to commit or do you have any comments? (I  
> don't want to mess up the compiler.:)
I didn't have time to look at it yet, I'll tell you later!

Rolf


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 08/09/2006

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


Re: [Mono-list] VBNC in Mono.

2006-09-11 Thread Rolf Bjarne Kvinge
Hi,

> I think an easier solution is to generate mdb debug info using MS.NET  
> SRE.
> The attached Compiler.diff implements this hack.
The problem with this solution is that it will introduce a dependency on  
Mono (it needs a reference to Mono.CompilerServices.SymbolWriter.dll). It  
might be better to check if Mono.CompilerServices.SymbolWriter.dll is  
available and if it is use the mono symbolwriter, otherwise use the  
default MS symbolwriter.

> According to my experienced source information is not always correct but  
> is
> +/-1 line correct. This may be a bug in the Mono runtime as well.
Vbnc does not always emit correct symbol information, +/-1 line is normal,  
even more in some cases.

Rolf

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 08/09/2006

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


Re: [Mono-list] VBNC in Mono.

2006-09-11 Thread Rolf Bjarne Kvinge
Hi,

>   * Go to the vbnc/vbnc/bin directory, and try the following
> scripts:
>
>   sh test-module MODULE
>
> Where MODULE is one of:
>
>   1Declarations, CompileTime, CompileTime2, Mono,
> Resources, RunTime, SelfTest or VBRunTime

Please note that only the modules 1Declarations, Resources and SelfTest  
succeed 100% on Windows now.
In CompileTime 4 tests fail, in CompileTime2 1 test fails, and in Mono  
many tests fail. VBRuntime has regressed as well, I'll try to fix this  
asap.

Rolf

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 08/09/2006

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