http://calcg.org/newlogo2.png Not Logged in.
Login | Register

General Discussion Board \ Computer Programming \ Minesweeper! Again!

Click here to log in (you must be logged in to post comments).

AuthorComment
Vectris
Ultralisk
avatar
Posted: 19 Oct 2009
15:15 GMT
Total Posts: 375
Well it's 6 month later and after learning and advancing in vb.net I've re-made my Minesweeper program. It still functions basically the same as the old one however I've re-written the entire code as well as creating new graphics, which are now custom drawn allowing a full screen mine-map to load in a couple of seconds (unlike the old one which involved waiting for each row to load across the screen). Also I used the color scheme of my highschool as well as an Eagle (our mascot) instead of the smiley face.

If anyone wants to try it out and test it for bugs or errors it'd be much appreciated.

Download Minesweeper
haveacalc
Guardian
avatar
Posted: 19 Oct 2009
19:24 GMT
Total Posts: 1111
I'm using Wine on Mac OS X. It was going fine until about 75% through the game, when I was hit with this error:
fixme:win:EnumDisplayDevicesW ((null),0,0x60dc4c,0x00000000), stub!
fixme:win:SetLayeredWindowAttributes (0x0,0x00000000,255,2): stub!
fixme:win:GetLayeredWindowAttributes (0x0,0x60f720,0x60f717,0x60f718): stub!
‡h†≠System.InvalidOperationException: WinForms_SeeInnerException ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.TimeZone ---> System.NotSupportedException: Can't get timezone name.
at System.CurrentSystemTimeZone..ctor (Int64 lnow) [0x00000]
at System.TimeZone..cctor () [0x00000]
--- End of inner exception stack trace ---
at System.DateTime.get_Now () [0x00000]
at System.Windows.Forms.TextBoxBase..ctor () [0x00000]
at System.Windows.Forms.TextBox..ctor () [0x00000]
at (wrapper remoting-invoke-with-check) System.Windows.Forms.TextBox:.ctor ()
at Minesweeper.BestTimeForm.InitializeComponent () [0x00000]
at (wrapper remoting-invoke-with-check) Minesweeper.BestTimeForm:InitializeComponent ()
at Minesweeper.BestTimeForm..ctor () [0x00000]
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
--- End of inner exception stack trace ---
at Minesweeper.My.MyProject+MyForms.Create__Instance__[BestTimeForm] (Minesweeper.BestTimeForm Instance) [0x00000]
at Minesweeper.My.MyProject+MyForms.get_BestTimeForm () [0x00000]
at Minesweeper.MainForm.GameWin () [0x00000]
at (wrapper remoting-invoke-with-check) Minesweeper.MainForm:GameWin ()
at Minesweeper.MainForm.Board_MouseUp (System.Object sender, System.Windows.Forms.MouseEventArgs e) [0x00000]
at System.Windows.Forms.Control.OnMouseUp (System.Windows.Forms.MouseEventArgs e) [0x00000]
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000]
As I doubt that the code that you wrote requested any timezone, I'd place the blame elsewhere... most likely, the .NET Framework is to blame because they don't know how to handle null pointers without terminating the program.

---
-quoted directly from most movies that don't exist (and some that do).
Vectris
Ultralisk
avatar
Posted: 21 Oct 2009
13:50 GMT
Total Posts: 375
At what point did the error happen? You say 75% so do you mean that you were in the middle of a game and it spontaneously happened or did you make any action that could have caused it.





Portal | My Account | Register | Lost Password or Username | TOS | Disclaimer | Help | Site Search | File Archives Copyright © 2002-2019 CalcG.org