[Mono-dev] System.Drawing.Graphics exceptions

Jon James jon_james at dell.com
Fri Jul 10 18:09:29 EDT 2009


exception being thrown in RHEL5.3... 

[root at localhost BTOAD]# mono RMScreenShot.exe test.jpg
>             BTOStudio RM Client ScreenShot Utility
< ERROR >     Fatal Error: System.NotImplementedException: 0bbp depth not
supported.
  at System.Drawing.Graphics.CopyFromScreenX11 (Int32 sourceX, Int32
sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize,
CopyPixelOperation copyPixelOperation) [0x00000] 
  at System.Drawing.Graphics.CopyFromScreen (Int32 sourceX, Int32 sourceY,
Int32 destinationX, Int32 destinationY, Size blockRegionSize,
CopyPixelOperation copyPixelOperation) [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Drawing.Graphics:CopyFromScreen
(int,int,int,int,System.Drawing.Size,System.Drawing.CopyPixelOperation)
  at RMScreenShot.Program.Main (System.String[] args) [0x00000] 
[root at localhost BTOAD]# mono -debug RMScreenShot.exe test.jpg
Unknown command line option: '-debug'
[root at localhost BTOAD]# mono --debug RMScreenShot.exe test.jpg
>             BTOStudio RM Client ScreenShot Utility
< ERROR >     Fatal Error: System.NotImplementedException: 0bbp depth not
supported.
  at System.Drawing.Graphics.CopyFromScreenX11 (Int32 sourceX, Int32
sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize,
CopyPixelOperation copyPixelOperation) [0x00230] in
/root/Desktop/_fixthis/mono/mono-2.4.2.1/mcs/class/System.Drawing/System.Drawing/Graphics.cs:271 
  at System.Drawing.Graphics.CopyFromScreen (Int32 sourceX, Int32 sourceY,
Int32 destinationX, Int32 destinationY, Size blockRegionSize,
CopyPixelOperation copyPixelOperation) [0x00045] in
/root/Desktop/_fixthis/mono/mono-2.4.2.1/mcs/class/System.Drawing/System.Drawing/Graphics.cs:190 
  at (wrapper remoting-invoke-with-check)
System.Drawing.Graphics:CopyFromScreen
(int,int,int,int,System.Drawing.Size,System.Drawing.CopyPixelOperation)
  at RMScreenShot.Program.Main (System.String[] args) [0x00000] 
 cd lib

libraries
[root at localhost lib]# ls
libgdiplus.a         libMonoPosixHelper.a           libmono-profiler-cov.so           
libmono.so.0.0.0
libgdiplus.la        libMonoPosixHelper.la         
libmono-profiler-cov.so.0          libMonoSupportW.a
libgdiplus.so        libMonoPosixHelper.so         
libmono-profiler-cov.so.0.0.0      libMonoSupportW.la
libgdiplus.so.0      libmono-profiler-aot.a        
libmono-profiler-logging.a         libMonoSupportW.so
libgdiplus.so.0.0.0  libmono-profiler-aot.la       
libmono-profiler-logging.la        mono
libikvm-native.a     libmono-profiler-aot.so       
libmono-profiler-logging.so        monodoc
libikvm-native.la    libmono-profiler-aot.so.0     
libmono-profiler-logging.so.0      mono-source-libs
libikvm-native.so    libmono-profiler-aot.so.0.0.0 
libmono-profiler-logging.so.0.0.0  pkgconfig
libmono.a            libmono-profiler-cov.a         libmono.so
libmono.la           libmono-profiler-cov.la        libmono.so.0

mono version:
[root at localhost lib]# mono --version
Mono JIT compiler version 2.4.2.1 (tarball Fri Jul 10 13:46:18 CDT 2009)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none

1. Why is debug mode referencing my source directory?
2. Any thoughts why this exception is occuring?
3. How to i verify libgdiplus version? I did compile sources today (mono
2.4.2 and libgdiplus 2.4.2 )
4. Did i miss some other depenency? Is there a xserver issue here with
display?
-- 
View this message in context: http://www.nabble.com/System.Drawing.Graphics-exceptions-tp24435096p24435096.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list