Jump to content

Crash


gamecreator
 Share

Recommended Posts

I sent a program to my friend and to my surprise, it crashed on him. I put in notifications to help me debug where it fails and it seems to be on the CreateFramework function. It tells him that the graphics mode was set successfully but after he clicks ok, the program just crashes. Neither of the next messages are displayed. The code snippet is below.

 

He has Windows 7 (I have XP), has modern games installed and I'm pretty sure he also has .NET (but not 100%). Any idea what the problem could be?

 

if(!Initialize()) exit(1);
if(!Graphics(1024,768))
{
 MessageBoxA( 0,"Failed to set graphics mode.","Error",0);
 exit(1);
}

MessageBoxA(0,"Set graphics mode successfully\nAbout to create framework","Message",0);

fw = CreateFramework();
if(fw==NULL)
{
 MessageBoxA(0,"Failed to create framework.","Error",0);
 exit(1);
}
MessageBoxA(0,"Set framework successfully","Message",0);

 

I've attached the program if anyone else would like to try it and see if they can run it.

 

Thanks!

Link to comment
Share on other sites

It might be the OpenAL32.dll which you have in your folder. In Windows 7 you can't just copy OpenAL, but it must be installed with the oalinst.exe /q installer.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...