fikr4n | 5 Oct 14:01 2010
Picon

Running Visual Studio-made in Linux


Hi, please help me.
When I run a program which is made with Visual Studio in Ubuntu I got this
message:

System.OutOfMemoryException: Not enough memory to complete operation [GDI+
status: OutOfMemory]

Help me please...
--

-- 
View this message in context: http://mono.1490590.n4.nabble.com/Running-Visual-Studio-made-in-Linux-tp2955864p2955864.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Rafael Teixeira | 5 Oct 14:22 2010
Picon

Re: Running Visual Studio-made in Linux

You need to give us more details, like the stack trace, for instance.

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

On Tue, Oct 5, 2010 at 9:01 AM, fikr4n <fikr4n <at> gmail.com> wrote:
>
> Hi, please help me.
> When I run a program which is made with Visual Studio in Ubuntu I got this
> message:
>
> System.OutOfMemoryException: Not enough memory to complete operation [GDI+
> status: OutOfMemory]
>
> Help me please...
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Running-Visual-Studio-made-in-Linux-tp2955864p2955864.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
(Continue reading)

fikr4n | 6 Oct 07:25 2010
Picon

Re: Running Visual Studio-made in Linux

System.OutOfMemoryException: Not enough memory to complete operation [GDI+ status: OutOfMemory] at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] at System.Drawing.Graphics.ResetTransform () [0x00000] at (wrapper remoting-invoke-with-check) System.Drawing.Graphics:ResetTransform () at System.Windows.Forms.ToolStrip.OnPaint (System.Windows.Forms.PaintEventArgs e) [0x00000] at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.StatusStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000]
View this message in context: Re: Running Visual Studio-made in Linux
Sent from the Mono - WinForms mailing list archive at Nabble.com.
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
J Arrizza | 7 Oct 05:08 2010
Picon

libX11.so.6.so?

Hi,

Working with Mono on an Ubuntu 10.04 system. After some exceptions were thrown during a build on our build server (Hudson):

An exception was thrown by the type initializer for System.Windows.Forms.XplatUI

we traced it down to a couple of things:

- we were missing DISPLAY=:0.0 (which was easy to fix)
- mono could not find libX11.so.6.so. We found the missing lib using "strace mono my.exe".

Fixed the second one by adding a soft link to /usr/lib/libX11.so.6.3.0, now all works well.

My question is: why is mono looking for "libX11.so.6.so" (i.e. it has a second ".so" in there)

BTW Google has no hits for "libX11.so.6.so"... it seems that the correct name is "libX11.so.6". 


John


_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
miszacus | 22 Oct 21:27 2010
Picon

Re: "The class UiaAtkBridge.Table could not be loaded"


Hi,

I had the same problem and I managed to work around it by downloading the
the UiaAtkBridge source code, modifying the necessary classes and building
it on my machine (Ubuntu x86). 

If you want, take a look here:  http://miszacus.net/index.php?a=uiaatkbridge
http://miszacus.net/index.php?a=uiaatkbridge  - you can download the library
and the modified source code from there.

Hope this helps!
Michal

--

-- 
View this message in context: http://mono.1490590.n4.nabble.com/The-class-UiaAtkBridge-Table-could-not-be-loaded-tp2999215p3007768.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Mario Carrion | 22 Oct 22:40 2010
Picon

Re: "The class UiaAtkBridge.Table could not be loaded"

On Fri, 2010-10-22 at 12:27 -0700, miszacus wrote:
> Hi,
Hello

> I had the same problem and I managed to work around it by downloading the
> the UiaAtkBridge source code, modifying the necessary classes and building
> it on my machine (Ubuntu x86). 
> 
> If you want, take a look here:  http://miszacus.net/index.php?a=uiaatkbridge
> http://miszacus.net/index.php?a=uiaatkbridge  - you can download the library
> and the modified source code from there.
That shouldn't happen because loading those libraries is wrapped around
a try/catch, anyway, something is clearly broken.

If I recall correctly UiaAtkBridge.Table was introduced in 1.0, and
since it's saying that this class is missing I bet you are using 0.9 or
lower, to fix it you could try two things:

1. Uninstall all "uia" related packages, this in case you don't need
accessibility.
2. If you *do* need accessibility you will have to wait a little bit, we
are working on packaging the 2.1 packages for Ubuntu 10.04, packages for
other distributions[1] are already available.

I guess this happened because you installed/mixed UI Automation versions
or built them from source and then you overwrote your packaged mono. If
you didn't do anything like that I will appreciate if you tell me where
you downloaded the debs, if you built them from sources or what you did
to get this error otherwise it will be really hard to fix.

- Mario

[1] http://mono-project.com/Accessibility:_Release_Notes_2.1

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Michal | 23 Oct 08:09 2010
Picon

Re: "The class UiaAtkBridge.Table could not be loaded"

Hi,

I first installed Mono on Ubuntu 10.4 using Synaptics - I selected what libs I thought might be useful, et voila, it was working fine for my needs. Then, after I upgraded to Ubuntu 10.10 the applications I wrote previously didn't want to start, and the error appeared similar to the one in the original post. At first I thought it was some configuration error, so I did uninstall _everything_ even remotely related to mono and installed it back, again using Synaptics.

Still didn't work, so I decided to go from scratch: I downloaded mono, monodevelop, gtk-sharp and other latest sources, and started building. I finally got to UiaAtkBridge and then I saw some compilation errors - something to do with delay-signing the library (for this I had to add parameters to the compiler flags) and some classes (e.g. TextContainerWithGrid) implementing Table interface just weren't up to date. To be precise: public int[] SelectedColumns and public int[] SelectedRows properties were missing, which were apparently added to the latest UiaAtkBridge.Table. After getting around these errors I was able to successfully build the library and putting it in my bin folder, solved my problem.

To be true I don't think I need any accessibility libraries (at least I'm not using them explicitly), but my simple programs - referencing System and System.Drawing - seem to load them anyway.

That's the whole story. Now you see that I didn't do anything 'special' at first, and I wouldn't have if the normal setup worked fine.

Best regards,
Michal

On Fri, Oct 22, 2010 at 11:40 PM, Mario Carrion <mario.carrion <at> gmail.com> wrote:
On Fri, 2010-10-22 at 12:27 -0700, miszacus wrote:
> Hi,
Hello

> I had the same problem and I managed to work around it by downloading the
> the UiaAtkBridge source code, modifying the necessary classes and building
> it on my machine (Ubuntu x86).
>
> If you want, take a look here:  http://miszacus.net/index.php?a=uiaatkbridge
> http://miszacus.net/index.php?a=uiaatkbridge  - you can download the library
> and the modified source code from there.
That shouldn't happen because loading those libraries is wrapped around
a try/catch, anyway, something is clearly broken.

If I recall correctly UiaAtkBridge.Table was introduced in 1.0, and
since it's saying that this class is missing I bet you are using 0.9 or
lower, to fix it you could try two things:

1. Uninstall all "uia" related packages, this in case you don't need
accessibility.
2. If you *do* need accessibility you will have to wait a little bit, we
are working on packaging the 2.1 packages for Ubuntu 10.04, packages for
other distributions[1] are already available.

I guess this happened because you installed/mixed UI Automation versions
or built them from source and then you overwrote your packaged mono. If
you didn't do anything like that I will appreciate if you tell me where
you downloaded the debs, if you built them from sources or what you did
to get this error otherwise it will be really hard to fix.

- Mario

[1] http://mono-project.com/Accessibility:_Release_Notes_2.1


_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
张亮 熊 | 24 Oct 06:10 2010
Picon

Mono AOT problem from Samsung

Dear all,
 
I am Xiong ZhangLiang from Samsung Electronics (China) RD Center.
 
Recently we try to adopt Mono2.8 as embedded S/W platform for Samsung products,
and we wrote an network communication App with Winform UI on it.
The app of LOC is approximately 70K.
Target board is S3C24400(ARM920T-ARMv4t, 400MCPU, 128M Flash, 128M SDRAM, Linux2.4.20, arm-
v4t-le_gcc3.2.1).
We ported XServer for UI.
 
We found the app performance on Mono is bad.
Init time is more than 3 min, Memory occupation is more than 80M and UI repsonse time is
more than 8 sec.
And memory cannot be released when user operated until memory is used up.
ARM byte order is middle order, but App on Mono can not execute double calculation correctly
because of the byte order.
 
Then we try the AOT to reduce the startup time.
Full AOT can be executed except two Mono files (I18Rare.dll), but it cannot run and print
"undefined instructions".
If compile Mono file with --aot -O=all option, about 10 Mono files cannot be compiled (most
important is System.Windows.Winform.dll), then libGdiplus.so can be found, the app can be
executed with 10% startup time reduce. But that's not enough.
 
If we compile System.Windows.Winform.dll with --aot option, it can be compiled.
But with compiled System.Windows.Winform.dll.so, app cannot run and print "libGdiplus.so
unable to be load" because of "error loading libFontconfig.so.1:R_ARM_PC24 relocation out of
range". But to reduce the startup time significantly, I think compile
System.Windows.Winform.dll is the most important.
Could you kindly give us some guidance?
 
Thank you very much.
With BR,
Xiong ZhangLiang
--------------------------------------------------
Samsung Electronics (China) RD Center
Mono project, Project Leader, PhD
Mobile:86-13913925119
Office:86-25-58748787-3440
Mail:xdz3701 <at> hotmail.com
--------------------------------------------------
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Anubhava Dimri | 27 Oct 08:16 2010
Picon

Convert .Net Application To MAC OS


Hello Experts,

I am .Net Application Developer. I have an Application Which i want to
Convert for MAC Operating System.

--

-- 
View this message in context: http://mono.1490590.n4.nabble.com/Convert-Net-Application-To-MAC-OS-tp3014887p3014887.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Anubhava Dimri | 27 Oct 08:17 2010
Picon

Convert .Net Application To MAC OS


Hello Experts,

I am .Net Application Developer. I have an Application Which i want to
Convert for MAC Operating System.

So How Can I do that. Your Suggetion and Help Required.

Thanks
Anubhava Dimri

--

-- 
View this message in context: http://mono.1490590.n4.nabble.com/Convert-Net-Application-To-MAC-OS-tp3014889p3014889.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Gmane