ROUGE Alain | 1 Mar 2004 10:11
Picon

memory leak in libgdiplus/src/font.c

hi,

crash:
fnt-> xxxxxx,  yyyyyyy,  Bitstream Vera Sans

It seems there's a memory leak in libgdiplus/src/font.c
in CreateFontFamilyFromName or GetFamilyFromName.

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

Jordi Mas | 8 Mar 2004 18:22

Re: memory leak in libgdiplus/src/font.c

En/na ROUGE Alain ha escrit:

> hi,
> 
> crash:
> fnt-> xxxxxx,  yyyyyyy,  Bitstream Vera Sans
> 
> It seems there's a memory leak in libgdiplus/src/font.c
> in CreateFontFamilyFromName or GetFamilyFromName.

It was not a memory leak, it was a debug message. It was removed a couple of 
days back.

Regarding the crash, I have no idea of what example you are trying to run, but 
it is a System.Windows.Forms there is still work in progress. A new patch to 
make wine into a lib was commited just last week.

Thanks,

Jordi,

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

XraniX | 15 Mar 2004 15:42
Picon
Favicon

"X Error: BadDrawable" while running simple Form


Hi to all,

I'm trying to make a simple windows form running in linux.
It's  a form with a textbox, a button and an info dialog.

I've installed - recompiling from cvs (in this sequence):

- wine from cvs (patched with wine-sharedlib from mcs 15.03.2004)
- cairo + libpixman from cvs (taken on 10th March)
- libgdiplus from cvs (15.03.2004)
- mono + mcs from cvs (15.03.2004 with monocharge to compile first time)
- gtk-sharp + monodoc.

The program compiles without errors. When I launch i it starts, then
disappears immediatly.

The error message:

****************** Starting up
Control notification Code 768 Id = Hwnd 65573
Control notification Code 1024 Id = Hwnd 65573
Control notification Code 256 Id = Hwnd 65573
WARNING: Missing call to FillRectangle in OnPaintBackground
GdipCreateBitmapFromGraphics: This routine has not been checked for
stride size
WARNING: bitmap.c(230) initializing bitmap to 0xff in
GdipCreateBitmapFromGraphics (for SWF)
DrawText ToHfont() hack active
X Error of failed request:  BadDrawable (invalid Pixmap or Window
(Continue reading)

Wayne.Arenz | 16 Mar 2004 21:19

Gentlefolk ... please ... how may I join the Winforms cabal?

Assuming the misunderstandings of February have been resolved and there is now a definite direction for Mono-Wine-Winforms, could someone please post and / or e-mail me rather explicit directions for how to build the latest -- even if imperfect -- Mono-Wine-Winforms solution?  As I look through the message threads, go-mono compile instructions, etc., I have to admit to (newbie) confusion re:
 
a) pre-requisites -- should there be a pre-install of Mono and/or Wine before building?
b) pre-requisites -- Peter says to be certain to have the latest version of cairo and libgdiplus from CVS ... which CVS?  I'm not "seeing" either at anonymous <at> anoncvs.go-mono.com:/mono
c) pre-requisites -- Peter indicated the one patch in CVS along with his readme, and then attached another patch or two in his Winforms-list message.  I also note ROUGE Alain mentions an mcs-0.30.patch.  What is the complete set of patches to be applied, and to what source?  What is the source for that source?  (whose CVS servers?).
d) final "baking" ... make what, in what order, and using what make flags?
e) Where does the CVS folder \mono\mcs\class\System.Windows.Forms\WINELib ... the "stub" ... fit into things, if at all?
f) Whatever else one needs to know ... what foot to stand on while doing this, what phase of the moon, what day of the week ... we all know that it's "magic" that holds code together, so I'd really like to know this particular magic.
 
Finally, it would be **great** if the tutorial could instruct how it might be done on a SPARC machine (if Winforms can work on mono-mint).  However, it will be **just fine** if the tutorial could instruct me sufficiently that I could pull this off on my new 2.8 GHz/Intel/SuSE laptop.
 
****Bottom line:  I'd like to be on "the bleeding edge", and I don't mind bleeding a little -- but I'd prefer not having to bleed to death. :)  ****

    R. Wayne Arenz
    GENERAL DYNAMICS
    Advanced Information Systems
    E-mail: wayne.arenz <at> gd-ais.com
    Phone : 937-427-7274
    2673 Commons Blvd, Suite 200
    Beavercreek, OH 45431

 
Peter Dennis Bartok | 16 Mar 2004 21:57

Re: Gentlefolk ... please ... how may I join the Winforms cabal?

Welcome to the SWF club :-)

>a) pre-requisites -- should there be a pre-install of Mono and/or Wine
before building?
You need wine and wine-devel installed on your system (or compiled from
source)

>b) pre-requisites -- Peter says to be certain to have the latest version
of cairo and libgdiplus from CVS ... which CVS?  I'm not "seeing" either
at anonymous <at> anoncvs.go-mono.com:/mono
<mailto:anonymous <at> anoncvs.go-mono.com:/mono>
Cairo has it's own cvs (www.cairographics.org), but 0.18 is fine, too.
libgdiplus is it's separate module in the mono cvs tree.

>c) pre-requisites -- Peter indicated the one patch in CVS along with his
readme, and then attached another patch or two in his Winforms-list
message.  I also note ROUGE Alain mentions an mcs-0.30.patch.  What is the
complete set of patches to be applied, and to what source?  What is the
source for that source?  (whose CVS servers?).
We went through several iterations of the patch, due to the fact that the
wine guys didn't want to include it as part of wine. The module is called
winelib. Just download it and run autoconf and ./configure (but make sure
wine is already on your system) and make install.

>d) final "baking" ... make what, in what order, and using what make
flags?
You need to create symbolic links for the wine dlls:
cd <libdir>
for i in <wine_dll_dir>wine/*dll.so; do ln -s $i lib`basename $i`; done

>e) Where does the CVS folder \mono\mcs\class\System.Windows.Forms\WINELib
... the "stub" ... fit into things, if at all?
It doesn't; it's only historical.

>f) Whatever else one needs to know ... what foot to stand on while doing
this, what phase of the moon, what day of the week ... we all know that
it's "magic" that holds code together, so I'd really like to know this
particular magic.
Well, other than the above, you shouldn't need anything. And with a little
bit of luck we'll have a build out soon that does all the magic for you!

>
>Finally, it would be **great** if the tutorial could instruct how it
might be done on a SPARC machine (if Winforms can work on mono-mint).
However, it will be **just fine** if the tutorial could instruct me
sufficiently that I could pull this off on my new 2.8 GHz/Intel/SuSE
laptop.
SPARC? Don't think Wine does that. But Intel will work fine.

>****Bottom line:  I'd like to be on "the bleeding edge", and I don't mind
bleeding a little -- but I'd prefer not having to bleed to death. :)  ****

Well, you definitely will be bleeding edge :-) Let me know how it goes, if
you run into problems I'd be happy to help

Peter

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

XraniX | 17 Mar 2004 09:30
Picon
Favicon

Re: Gentlefolk ... please ... how may I join the Winforms cabal?

On Tue, 2004-03-16 at 21:57, Peter Dennis Bartok wrote:
> We went through several iterations of the patch, due to the fact that the
> wine guys didn't want to include it as part of wine. The module is called
> winelib. Just download it and run autoconf and ./configure (but make sure
> wine is already on your system) and make install.

Ok, sorry for my intrusion .... "where" can i get the winelib patch ?
(mono cvs, wine cvs, mono site, ... where else?)
Is not the wine-sharedlib patch under mcs/classes/System.Windows.Forms ?

tanks again

--

-- 
XraniX <xranix <at> tiscali.it>

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

Peter Dennis Bartok | 17 Mar 2004 15:28

Re: Gentlefolk ... please ... how may I jointhe Winforms cabal?

No. The wine-sharedlib patch was rejected by the wine folks.

Do 'cvs co winelib' against the mono cvs, that will give you the patch you
should use.

Ad astra,
  Peter

-----Original Message-----
From: "XraniX" <xranix <at> tiscali.it>
To: <mono-winforms-list <at> lists.ximian.com>
Date: 17 March, 2004 01:32
Subject: Re: [Mono-winforms-list] Gentlefolk ... please ... how may I
jointhe Winforms cabal?

>On Tue, 2004-03-16 at 21:57, Peter Dennis Bartok wrote:
>> We went through several iterations of the patch, due to the fact that
the
>> wine guys didn't want to include it as part of wine. The module is
called
>> winelib. Just download it and run autoconf and ./configure (but make
sure
>> wine is already on your system) and make install.
>
>
>Ok, sorry for my intrusion .... "where" can i get the winelib patch ?
>(mono cvs, wine cvs, mono site, ... where else?)
>Is not the wine-sharedlib patch under mcs/classes/System.Windows.Forms ?
>
>
>tanks again
>
>-- 
>XraniX <xranix <at> tiscali.it>
>
>_______________________________________________
>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

XraniX | 17 Mar 2004 21:26
Picon
Favicon

Re: Gentlefolk ... please ... how may I jointhe Winforms cabal?


Thanks for the answer but no luck .... it says

export CVSROOT=:pserver:anonymous <at> anoncvs.go-mono.com:/mono
cvs login
Logging in to :pserver:anonymous <at> anoncvs.go-mono.com:2401/mono
CVS password:
cvs co winelib
cvs [server aborted]: there is no repository /mono/winelib

... maybe's not for anonymous cvs ? 

thanks and bye

On Wed, 2004-03-17 at 15:28, Peter Dennis Bartok wrote:
> No. The wine-sharedlib patch was rejected by the wine folks.
> 
> Do 'cvs co winelib' against the mono cvs, that will give you the patch you
> should use.
> 
> Ad astra,
>   Peter

--

-- 
XraniX <xranix <at> tiscali.it>

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

Peter Dennis Bartok | 17 Mar 2004 22:44

Re: Gentlefolk ... please ... how may Ijointhe Winforms cabal?

Try again now. Gonzalo updated the modules list to contain libgdiplus and
winelib.

Peter

-----Original Message-----
From: "XraniX" <xranix <at> tiscali.it>
To: <mono-winforms-list <at> lists.ximian.com>
Date: 17 March, 2004 13:28
Subject: Re: [Mono-winforms-list] Gentlefolk ... please ... how may
Ijointhe Winforms cabal?

>
>
>Thanks for the answer but no luck .... it says
>
>
>export CVSROOT=:pserver:anonymous <at> anoncvs.go-mono.com:/mono
>cvs login
>Logging in to :pserver:anonymous <at> anoncvs.go-mono.com:2401/mono
>CVS password:
>cvs co winelib
>cvs [server aborted]: there is no repository /mono/winelib
>
>
>... maybe's not for anonymous cvs ?
>
>
>thanks and bye
>
>
>
>On Wed, 2004-03-17 at 15:28, Peter Dennis Bartok wrote:
>> No. The wine-sharedlib patch was rejected by the wine folks.
>>
>> Do 'cvs co winelib' against the mono cvs, that will give you the patch
you
>> should use.
>>
>> Ad astra,
>>   Peter
>
>-- 
>XraniX <xranix <at> tiscali.it>
>
>_______________________________________________
>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

Peter Dennis Bartok | 19 Mar 2004 22:02

SWF & Winelib Q&A

Hi All,

I figured since there are quite a few questions regarding winelib that 
I'd write a little blurb on how things are connected. I tried to start 
it in FAQ form to allow later inclusion into the FAQ.
Let me know if it helps, if you have additional questions or if you 
notice something wrong/missing.

1. What dependencies does System.Windows.Forms (SWF) have?
2. When running a SWF application I get the 
System.DllNotFoundException:winelib.exe.so exception. What's wrong?
3. How can I verify that I've got winelib installed correctly?
4. When trying to run a SWF application I get the 
System.DllNotFoundException:user32.dll exception. What's wrong?
5. When running a SWF application I don't get the usual nice exception 
with stack and everything. What happened?
6. How does winelib work?
7. Why do I have to do those links from wine to the lib directory?

1. What dependencies does System.Windows.Forms (SWF) have?
The following is the dependency tree:
-> System.Windows.Forms
    -> Winelib
       -> Wine
    -> System.Drawing
       -> gdiplus
          -> cairo
             -> pixman
             -> freetype
             -> Xrender

Unless you have *all* of these libraries working on your system, SWF 
will not operate (and in most cases even initialize).

2. When running a SWF application I get the 
System.DllNotFoundException:winelib.exe.so exception. What's wrong?
Several possible causes:
- The winelib package is not installed
- Winelib is installed but wine is not
- winelib.exe.so is not in <prefix>/lib

3. How can I verify that I've got winelib installed correctly?
Winelib will be installed into the <prefix>/lib directory. <prefix> was 
chosen when the install packages was created. If you want to have 
winelib in another directory than the default where it was installed to, 
you must get the source packages and configure & compile it for a 
different path.

4. When trying to run a SWF application I get the 
System.DllNotFoundException:user32.dll exception. What's wrong?

In order for SWF and winelib to operate properly you need to have 
symbolic links for the wine dlls in the <prefix>/lib directory. While 
the rpm should install those automatically as part of the postinstall 
script you can also manually create those with the following command:

cd <prefix>/lib
for i in <wine_dll_dir>/*dll.so; do ln -s $i lib`basename $i`; done

<prefix> is the base directory where mono is installed under (ie. /usr 
or /usr/local) and <wine_dll_dir> is the directory where the wine dlls 
(user32.dll.so, gdi32.dll.so, etc) can be found (ie. /usr/lib/wine or 
/usr/local/lib/wine)

5. When running a SWF application I don't get the usual nice exception 
with stack and everything. What happened?
This is a known issue, when initializing wine the mono exception handler 
is replaced with the wine exception handler. This will be fixed shortly.

6. How does winelib work?

Winelib performs the same wine initialization as the command-line 'wine' 
application. As 'argument' it uses itself, effectively telling wine to 
rune winelib.exe.so. Before initializing, wine does a setjmp and when 
wine calls the winelib.exe.so WinMain function we perform a longjmp
back to right after the wine initialization code was called. This 
results in wine being initialized and control being back at the routine 
that got called from SWF.

7. Why do I have to do those links from wine to the lib directory?

Currently mono is not using the LD_LIBRARY_PATH to find libraries, and 
also, mono has a particular naming format it expects libraries to have, 
all libraries have to start with 'lib', and the wine dlls don't conform. 
The symbolic links remedy this issue.

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


Gmane