[Pkg-mono-devel] RE: Pkg-mono-devel digest, Vol 1 #36 - 1 msg

Peter Arnold peter@intrinsica.co.uk
Tue, 13 Apr 2004 08:09:02 +0100


>=20By=20the=20way,=20does=20anyone=20reading=20this=20actually=20have=20a=
=20WinForms=20app
>=20working=20on=20Debian?

I've=20got=20my=20simple=20form=20app=20to=20run,=20but=20then=20it=20cras=
hes=20when=20trying=20to=20draw=20the=20control=20on=20the=20form.

The=20steps=20that=20I=20took=20to=20get=20as=20far=20as=20I=20have=20were=
:

1)=20I=20was=20getting=20Unhandled=20Exception:=20System.DllNotFoundExcept=
ion=20for=20user32.dll,=20kernel32.dll=20and=20gdi32.dll.=20=20I=20solved=20=
this=20by=20creating=20links=20to=20them=20in=20/usr/lib.=20=20Note=20ther=
e=20is=20some=20name=20mangling=20required:

cd=20/usr/lib
ln=20-s=20/usr/lib/wine/gdi32.dll.so=20libgdi32.dll.so
ln=20-s=20/usr/lib/wine/kernel32.dll.so=20libkernel32.dll.so
ln=20-s=20/usr/lib/wine/user32.dll.so=20libuser32.dll.so

I=20didn't=20have=20any=20problems=20with=20libwinnt.dll

To=20run=20my=20app=20I=20first=20had=20to=20launch=20/usr/lib/wine/winese=
rver,=20then=20run=20my=20application.=20=20I=20get=20the=20following=20st=
acktrace:

peter@oxygen:~/MonoTesting/WindowsApplication1$=20/usr/lib/wine/wineserver=

peter@oxygen:~/MonoTesting/WindowsApplication1$=20./Form1.exe
******************=20Starting=20up
WARNING:=20Missing=20call=20to=20FillRectangle=20in=20OnPaintBackground
GdipCreateBitmapFromGraphics:=20This=20routine=20has=20not=20been=20checke=
d=20for=20stride=20size
WARNING:=20bitmap.c(230)=20initializing=20bitmap=20to=200xff=20in=20
GdipCreateBitmapFromGraphics=20(for=20SWF)
DrawText=20ToHfont()=20hack=20active
X=20Error=20of=20failed=20request:=20=20BadDrawable=20(invalid=20Pixmap=20=
or=20Window=20parameter)
=20=20Major=20opcode=20of=20failed=20request:=20=20152=20(RENDER)
=20=20Minor=20opcode=20of=20failed=20request:=20=204=20(RenderCreatePictur=
e)
=20=20Resource=20id=20in=20failed=20request:=20=200x0
=20=20Serial=20number=20of=20failed=20request:=20=2071
=20=20Current=20serial=20number=20in=20output=20stream:=20=20102
peter@oxygen:~/MonoTesting/WindowsApplication1$


I=20can=20see=20the=20applications=20main=20window=20appear=20on=20the=20s=
creen,=20and=20it's=20obviously=20failing=20when=20tring=20to=20draw=20the=
=20one=20text=20label=20on=20the=20form.


Still,=20things=20are=20getting=20there.=20=20Hope=20this=20information=20=
helps

Peter=20Arnold
(f2w@peoplespresident.plus.com)

_____________________________________________________________________
This=20e-mail=20has=20been=20scanned=20for=20viruses=20by=20MCI's=20Intern=
et=20Managed=20Scanning=20Services=20-=20powered=20by=20MessageLabs.=20For=
=20further=20information=20visit=20http://www.mci.com