dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pnet-developers] Help debugging System.Drawing.Win32


From: Gopal V
Subject: Re: [Pnet-developers] Help debugging System.Drawing.Win32
Date: Wed, 2 Jul 2003 23:22:31 +0530
User-agent: Mutt/1.2.5i

If memory serves me right, Neil Cawse wrote:
> if I do:
> 
> hwnd = Win32.Api.CreateWindowExA( extendedStyle, ""/*className*/, "",
> style, Win32.Api.CW_USEDEFAULT, 0, outside.Width, outside.Height,
> IntPtr.Zero, IntPtr.Zero, Win32.Api.GetModuleHandleA(null), IntPtr.Zero
> );
> 
> the call doesn't cause an AV and correctly fails (hwnd == 0)
> 
> when I do
> 
> hwnd = Win32.Api.CreateWindowExA( extendedStyle, className, "", style,
> Win32.Api.CW_USEDEFAULT, 0, outside.Width, outside.Height, IntPtr.Zero,
> IntPtr.Zero, Win32.Api.GetModuleHandleA(null), IntPtr.Zero );
> 
> I get a seg fault.

Ok, it looks as though "className" is a NULL ptr in this case ...
(or just perhaps , we're messing up className somehow ...)

Generally ..

$ gdb ilrun
...
(gdb) run FormsHello.exe
caught ...SEGFAULT...
(gdb) bt

Should help us a bit ...

IIRC , Tum has fixed up the Pnet engine to be able to be compiled with
VC++ , maybe you could get his build files and debug with MS's debugger..

> 1. The code all runs fine on win32 using csc

That's because it might be getting a valid className ...

> Would be cool to have System.Drawing.Win32 running on pnet!

Sure :)

Gopal
-- 
The difference between insanity and genius is measured by success


reply via email to

[Prev in Thread] Current Thread [Next in Thread]