/[gr2lib]/trunk/gr2lib/core/coretypes/implementation/grnfileinfo.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/coretypes/implementation/grnfileinfo.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/gr2lib/core/coretypes/implementation/grnfileinfo.cs	2010/07/16 23:34:41	85
+++ trunk/gr2lib/core/coretypes/implementation/grnfileinfo.cs	2010/07/16 23:35:21	86
@@ -82,7 +82,9 @@
                     managed.Textures = new List<Texture>(length);
                     foreach (IntPtr ptr in textures)
                     {
-                        managed.Textures.Add(new Texture());
+                        Texture _tmp = new Texture();
+                        _tmp.NativePointer = ptr;
+                        managed.Textures.Add(_tmp);
                     }
                     for (int i = 0; i < length; i++)
                     {
@@ -158,16 +160,7 @@
             }
             catch (Exception ex)
             {
-                try
-                {
-                    coreapi.FreeFile(file);
-                    return null;
-                }
-                catch (Exception ex1)
-                {
-                    Exception _ex = new Exception(ex.Message, ex1);
-                    throw _ex;
-                }
+                Console.WriteLine(ex.ToString());
             }
         }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22