Skip to main content
gamedev.net
🔒 Locked

Nasty runtime assertion error (?)

Started by Saandman Oct 19, 2001 at 2:02 AM 1 replies 550+ views
Original Post
Saandman
Saandman
I get a runtime error saying "Debug assertion failed" before the application (DirectX app) terminates.It refers to number 53 in the ''vfprintf.c'' file.. Ok I use vfprintf for logging to a file in my prog. If I comment those lines it runs perfect. Haven''t got any code on this comp but if you think you can help me just tell me and I''ll post.. Would appreciate any help I can get! It has something to do with the file loading routine or something.. I don''t know. Oh yeah in the same box "str != NULL" shows up. Hhmmmmm! I''m clueless.. /Sandman
________pro.gram.mer - an organism that turns caffeine into code
Dactylos
Dactylos
Looks like the FILE-pointer you''re passing to it is NULL.

   
int __cdecl vfprintf (
FILE *str,
const char *format,
va_list ap
)
{
// [...]

_ASSERTE(str != NULL); // this is line 53

_ASSERTE(format != NULL);
// [...]

Saandman
Saandman
Aww thanks alot dude I''ll check it out when I get home!

Tack! (svensk, right?)

/Sandman
________pro.gram.mer - an organism that turns caffeine into code

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.