[Mono-osx] Tao.Sdl on OSX

Ok Lab lab at orangekids.org
Tue May 24 22:18:22 EDT 2005


Hmmm... shouldn't this sort of thing be handled in the Tao.Sdl library?
or is it a typical thing to have to write lots of if/then dependencies
per platform in mono?


On Tue, 2005-05-24 at 11:10 -0400, Michael Taylor wrote:
> Looks like the Mac version in dependent on Cocoa.  You may need to  
> use Cocoa# to instantiate an NSAutoReleasePool object.  You need to  
> have one of those around for Cocoa's automatic memory management to  
> work.
> 
> I haven't played with Cocoa# yet, but that's the basic theory.  Let  
> me know if you are still stuck.
> 
> /\/\ike
> 
> On May 23, 2005, at 3:09 AM, Ok Lab wrote:
> 
> > Hello, I've got Tao.Sdl now working under Linux just fine.  I'm having
> > some issues getting it to run under OSX.  The following is the
> > shortest piece of C# code I could make that breaks everything.  Below
> > that is the error messages I get.  Can anyone make heads or tails of
> > this and let me know what I'm doing wrong?
> >
> > ----
> >
> > using System;
> > using Tao.Sdl;
> >
> > namespace Game
> > {
> >         public class Test
> >         {
> >                 [STAThread]
> >                 static void Main()
> >                 {
> >                         Sdl.SDL_Init(Sdl.SDL_INIT_VIDEO);
> >                         Sdl.SDL_SetVideoMode( 640, 480, 32, 0);
> >                 }
> >         }
> > }
> >
> > ------
> >
> > 2005-05-22 21:08:10.017 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x132a7a0 of class NSCFArray autoreleased with no pool in place - just
> > leaking
> > 2005-05-22 21:08:10.018 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x132bc50 of class NSCFArray autoreleased with no pool in place - just
> > leaking
> > 2005-05-22 21:08:10.019 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1364ed0 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.020 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x132a800 of class NSCFArray autoreleased with no pool in place - just
> > leaking
> > 2005-05-22 21:08:10.021 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x132bd90 of class NSCFArray autoreleased with no pool in place - just
> > leaking
> > 2005-05-22 21:08:10.022 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1364f30 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.023 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1364f50 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.024 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1364f70 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.024 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1364fc0 of class NSCFArray autoreleased with no pool in place - just
> > leaking
> > 2005-05-22 21:08:10.025 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x132b4d0 of class NSCFArray autoreleased with no pool in place - just
> > leaking
> > 2005-05-22 21:08:10.026 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1364fe0 of class NSPathStore2 autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.027 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1365040 of class NSPathStore2 autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.028 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1365070 of class NSPathStore2 autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.029 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1365d90 of class NSPathStore2 autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.030 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1365dd0 of class NSCFDictionary autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.032 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1365f30 of class NSIdEnumerator autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.033 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0xa2e7e924 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.196 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x13650a0 of class NSCFArray autoreleased with no pool in place - just
> > leaking
> > 2005-05-22 21:08:10.198 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0xa2e7e934 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.200 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0xa2e7e984 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.201 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0xa2e7e904 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.202 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0xa2e7e8c4 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.203 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0xa2e7e954 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.204 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0xa2e7e8e4 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.205 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0xa2e7e8b4 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.207 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1338670 of class NSCFNumber autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.209 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1366250 of class NSCFData autoreleased with no pool in place - just
> > leaking
> > 2005-05-22 21:08:10.214 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0xa2e7b0d0 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.217 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1366ca0 of class _NSCachedBitmapImageRep autoreleased with no pool
> > in place - just leaking
> > 2005-05-22 21:08:10.219 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1354140 of class NSImage autoreleased with no pool in place - just
> > leaking
> > 2005-05-22 21:08:10.221 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1367590 of class _NSCachedBitmapImageRep autoreleased with no pool
> > in place - just leaking
> > 2005-05-22 21:08:10.223 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1367470 of class NSImage autoreleased with no pool in place - just
> > leaking
> > 2005-05-22 21:08:10.224 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x13642b0 of class _NSThemeCloseWidget autoreleased with no pool in
> > place - just leaking
> > 2005-05-22 21:08:10.226 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0xa2e7b0d0 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.228 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1367bb0 of class _NSCachedBitmapImageRep autoreleased with no pool
> > in place - just leaking
> > 2005-05-22 21:08:10.229 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1367a00 of class NSImage autoreleased with no pool in place - just
> > leaking
> > 2005-05-22 21:08:10.230 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1367a50 of class _NSCachedBitmapImageRep autoreleased with no pool
> > in place - just leaking
> > 2005-05-22 21:08:10.231 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1367c40 of class NSImage autoreleased with no pool in place - just
> > leaking
> > 2005-05-22 21:08:10.232 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1367780 of class _NSThemeWidget autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.234 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0xa2e7b0d0 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.235 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1366b90 of class _NSCachedBitmapImageRep autoreleased with no pool
> > in place - just leaking
> > 2005-05-22 21:08:10.236 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1364380 of class NSImage autoreleased with no pool in place - just
> > leaking
> > 2005-05-22 21:08:10.237 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x13566c0 of class _NSCachedBitmapImageRep autoreleased with no pool
> > in place - just leaking
> > 2005-05-22 21:08:10.238 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1356850 of class NSImage autoreleased with no pool in place - just
> > leaking
> > 2005-05-22 21:08:10.239 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x1367ea0 of class _NSThemeWidget autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.242 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x13678a0 of class NSCFString autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.243 mono[1482] *** _NSAutoreleaseNoPool(): Object
> > 0x13632c0 of class NSException autoreleased with no pool in place -
> > just leaking
> > 2005-05-22 21:08:10.244 mono[1482] *** Uncaught exception:
> > <NSInternalInconsistencyException> Error (1002) creating CGSWindow
> > Trace/BPT trap
> > _______________________________________________
> > Mono-osx mailing list
> > Mono-osx at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-osx
> >
> 



More information about the Mono-osx mailing list