gamecreator Posted February 6, 2012 Share Posted February 6, 2012 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! Quote Link to comment Share on other sites More sharing options...
Canardia Posted February 6, 2012 Share Posted February 6, 2012 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. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Josh Posted February 6, 2012 Share Posted February 6, 2012 .NET is not required. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
gamecreator Posted February 6, 2012 Author Share Posted February 6, 2012 Good info on both counts. I'll have him try Metatron's suggestion. Quote Link to comment Share on other sites More sharing options...
gamecreator Posted February 7, 2012 Author Share Posted February 7, 2012 That worked. It runs on his computer now. Thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.