Release 0.95.

This commit is contained in:
UnknownShadow200 2015-09-24 19:48:06 +10:00
parent fe1d808025
commit 571580a2f4
4 changed files with 7 additions and 5 deletions

View file

@ -96,6 +96,7 @@ namespace ClassicalSharp {
public void Dispose() {
game.OnNewMap -= OnNewMap;
game.OnNewMapLoaded -= OnNewMapLoaded;
graphics.DeleteDynamicVb( weatherVb );
}
int GetRainHeight( int x, int z ) {

View file

@ -20,7 +20,7 @@ namespace ClassicalSharp {
public static class Utils {
public static string AppName = "ClassicalSharp 0.9";
public static string AppName = "ClassicalSharp 0.95";
public static void Clamp( ref float value, float min, float max ) {
if( value < min ) value = min;

View file

@ -10,7 +10,7 @@ namespace Launcher {
public partial class MainForm : Form {
public const string AppName = "ClassicalSharp Launcher 0.9";
public const string AppName = "ClassicalSharp Launcher 0.95";
public MainForm() {
InitializeComponent();

View file

@ -48,14 +48,15 @@ namespace SharpDX
if( comPointer != IntPtr.Zero ) {
if( !disposing ) {
string text = String.Format( "Warning: Live ComObject [0x{0:X}], potential memory leak: {1}", comPointer.ToInt64(), GetType().Name );
string text = String.Format( "Warning: Live ComObject [0x{0:X}], potential memory leak: {1}",
comPointer.ToInt64(), GetType().Name );
Console.WriteLine( text );
}
int refCount = Marshal.Release( comPointer );
if( refCount > 0 ) {
string text = String.Format( "Warning: ComObject [0x{0:X}] still has some references, potential memory leak: {1}", comPointer.ToInt64(), GetType().Name );
Console.WriteLine( text );
string text = String.Format( "Warning: ComObject [0x{0:X}] still has some references, potential memory leak: {1} ({2})",
comPointer.ToInt64(), GetType().Name, refCount );
}
comPointer = IntPtr.Zero;
}