slyprid
07-10-2005, 07:52 PM
The project i'm currently working on is giving me some odd errors. At first it was crashing it, but I resolved that. Now instead of crashing the program, all the text that appears in the game just disappears. I'm using the commands surface.drawtext(...) to draw the text.
This is the error my error logger is catching.
NEW ERROR: 7/10/2005 8:48:28 PMSystem.ArgumentNullException: Value cannot be null.
at Microsoft.DirectX.DirectDraw.Surface.set_ForeColor(Color value)
at N2O___Game_Client.Form1.DrawTime() in D:\Documents and Settings\Slyprid\My Documents\Visual Studio Projects\N2O\N2O - Game Client\frmMain.vb:line 294
Extra info: DRAWTIME
~END ERROR~
Unfortunately its the same error throughout the entire program. From the looks of it, once one does it, the entire program blows up. My error logger logs like 30 drawtext errors when it happens. Also it keeps saying that the surface.forecolor value cannot be null, but all of them have values. So would it be easier to fix this, or scrap it and use a font set made from images. Thanks for your time.
Slyprid
This is the error my error logger is catching.
NEW ERROR: 7/10/2005 8:48:28 PMSystem.ArgumentNullException: Value cannot be null.
at Microsoft.DirectX.DirectDraw.Surface.set_ForeColor(Color value)
at N2O___Game_Client.Form1.DrawTime() in D:\Documents and Settings\Slyprid\My Documents\Visual Studio Projects\N2O\N2O - Game Client\frmMain.vb:line 294
Extra info: DRAWTIME
~END ERROR~
Unfortunately its the same error throughout the entire program. From the looks of it, once one does it, the entire program blows up. My error logger logs like 30 drawtext errors when it happens. Also it keeps saying that the surface.forecolor value cannot be null, but all of them have values. So would it be easier to fix this, or scrap it and use a font set made from images. Thanks for your time.
Slyprid