[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

File corruption

From: Santeri Hernejärvi <gray_at_gray.mine.nu>
Date: 2002-10-29 02:04:55 CET

I have a file that was corrupted a while back, and suspect
that it might have something to do with the properties, which
I fiddled with around where the file became corrupted.

The repository can be found at
<http://gray.mine.nu:8080/svn/repos/dmesh/branches/ase-parser/>
if someone wants to take a look, although I've fixed the
corruption on the latest version.

Is it possible to look at the Berkeley DB log files to see
what happened? How are you supposed to debug these things?

.s - gotta get some sleep now though.

Original file: (Material.h)

#ifndef _MATERIAL_H
#define _MATERIAL_H

class Texture;

/**
 * Material class.
 * TODO: A lot.
 */
class Material {
  public:
    Texture * tex;
    float shininess;
    float shine_str;
    float ambient[4];
    float specular[4];
    float diffuse[4];
    float emission[4];
    char name[80];
    char filename[80];
  public:
    Material(void);
    ~Material(void);
    void apply();
    void setAmbient(float r, float g, float b, float a);
    void setDiffuse(float r, float g, float b, float a);
    void setSpecular(float r, float g, float b, float a);
    void setEmission(float r, float g, float b, float a);
#ifndef _MATERIAL_H
#define _MATERIAL_H

Here's the diff since then:
E:\dmesh\dmesh-ase>svn diff -r 14:15 Material.h
Index: Material.h
===================================================================
--- Material.h
+++ tmp.32640.00001 2002-10-29 02:01:16.000000000 +0100
@@ -9,6 +9,7 @@
  */
 class Material {
   public:
+ int id;

E:\dmesh\dmesh-ase>svn diff -r 17:18 Material.h
Index: Material.h
===================================================================
--- Material.h
+++ tmp.32640.00001 2002-10-29 01:47:18.000000000 +0100
@@ -9,7 +9,7 @@
  */
 class Material {
   public:
- int id;
+ int idat b, flint id; <-- slight corruption.
     Texture * tex;
     float shininess;
     float shine_str;
@@ -30,4 +30,4 @@
 };

-#endif // _MATERIAL_H
+#endif //
\ No newline at end of file

Property changes on: Material.h
___________________________________________________________________
Name: svn:author
   + gray

E:\dmesh\dmesh-ase>svn diff -r 18:19 Material.h
Index: Material.h
===================================================================
--- Material.h
+++ tmp.32640.00001 2002-10-29 01:47:35.000000000 +0100
@@ -1,33 +1,35 @@
-#ifndef _MATERIAL_H
-#define _MATERIAL_H
-
-class Texture;
-
-/**
- * Material class.
- * TODO: A lot.
- */
-class Material {
- public:
- int idat b, flint id;
- Texture * tex;
- float shininess;
- float shine_str;
- float ambient[4];
- float specular[4];
- float diffuse[4];
- float emission[4];
- char name[80];
- char filename[80];
- public:
- Material(void);
- ~Material(void);
- void apply();
- void setAmbient(float r, float g, float b, float a);
- void setDiffuse(float r, float g, float b, float a);
- void setSpecular(float r, float g, float b, float a);
- void setEmission(float r, float g, float b, float a);
+#ifndef _MATERIAL_H
+#define _MATERIAL_H
+
+class Texture;
+
+/**
+ * Material class.
+ * TODO: A lot.
+ */
+class Material {filename[8
+ int idatb, flint id;
+ exture * tex;
+ flat shininess;
+ flat shine_str;
+ flot ambient[4];
+ floa specular[4];
+ flot diffuse[4];
+ floa emission[4];
+ har name[80];
+ charfilename[8
+ public:
+ Mterial(void);
+ ~Mterial(void);
+ oid apply();
+ void setAmbient(float r, float g, floa b, float a);
+ void setDiffuse(float r, float g, floatb, float a);
+ void setSpecular(float r, float g, floatb, float a);
+ void setEmission(float r, float g, floa
+};
+
+t a);
 };

-#endif //
\ No newline at end of file
+#endif

Property changes on: Material.h
___________________________________________________________________
Name: svn:author
   - gray
   + gray
Name: svn:eol-style
   + native

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 29 02:05:43 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.