Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Problem Compiling .EXE with 3D Commands

Author
Message
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 14th Jul 2015 01:16
Something has happened to either my Windows XP, DBPro, DirectX or perhaps Microsoft .NET
(I'm obviously way overdue for a newer version of Windows)

Whenever I compile an app with no 3D commands it seems run fine, but if I include any 3D command, it compiles but crashes when I run it.

I reinstalled all of the 4 things listed above but nothing helped.
I was just wondering if this problem sounded familiar to anyone - it could be as simple as a faulty DLL, but I'm lost as how to troubleshoot this!

wattywatts
14
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 14th Jul 2015 18:51
Never had a problem like this so just random shots in the dark here.
I'm assuming it won't launch after pressing f5 in the editor either? Also, did you make sure to uninstall dbp before re-installation?
James H
17
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 14th Jul 2015 19:46 Edited at: 14th Jul 2015 19:49
Just like wattywatts stated I can not help but feel random shots in the dark are what you are going to receive here, would not be the first time I was wrong though! However, in light of this I think a little more information might help, such as posting the crash report so that more adept users can aid you.

Quote: "Something has happened to either my Windows XP, DBPro, DirectX"

Firstly I could not say what state XP is in with regards to updates as I do not have it. Either you have automatically updated something or you have done something manually, or perhaps you have some sort of virus though it would be inexplicable to me as to why a virus would target dll's of the 3D nature just in DBP's installation. The only issues I have ever had with DBP when its been a DBP related issue in the past has been with plugins, for example I did not properly follow IanM's instructions for his plugin and ended up going around in circles because of it, getting my wires crossed being unaware that some of his dll's commands are replacement commands for some of the 3D commands in DBP. In terms of direct x, well there is no automatic update for that I am aware of so in this case you would have had to change something. As wattywatts stated uninstalling DBP should be done along with removing any residual files left in the install folder just in case there is a plugin you have forgotten about still installed - I am unclear as to whether DBP uninstall deletes the folders as well.

Quote: "or perhaps Microsoft .NET"

This is not a dependency for DBP so I do not see how that would be of relevance, unless there is some factor my meagre knowledge is unaware of which is of course entirely possible.

Quote: "Whenever I compile an app with no 3D commands it seems run fine, but if I include any 3D command, it compiles but crashes when I run it."

This did make me think about what I have already mentioned regarding IanM's matrix1utility commands. There also remains the possibility that perhaps you have recently installed either manually or by automation a new driver for you hardware or maybe an old one or the wrong one by mistake. If that turns out to be the case you can try rolling the driver(s) back. Does other software that uses direct x 3D run fine? Knowing this might help others determine the cause.

That is all I can think of at this time so best of luck with this
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 15th Jul 2015 15:13
Quote: "it compiles but crashes when I run it"


Any error messages? Any "CrashOnExit" file in the project folder? Etc?

You could try compiling something very simple like



and then post the exe here so we can test it for you.

Are you sure it's crashing and not simply being removed or disabled by your AV software/settings?



Powered by Free Banners
Attila
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 15th Jul 2015 16:36 Edited at: 15th Jul 2015 16:37
I had similar problems on a pc running WXP. The problem was based on a DirectX-installation with DirectX 9b (DB needs 9c). What shows dxdiag as the installed version?

To run dxdiag use start-button and enter in the execute-field dxdiag.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 15th Jul 2015 16:42
Quote: "DB needs 9c"


Actually, it needs at least a specific version of that. The details are given in one of the Stickies on the Bug Reports board.



Powered by Free Banners
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 15th Jul 2015 18:39
Hi all,

I also thought DirectX was the logical culprit..
When I get home later I will try that specific installation and post my results.

Thanks for the leads, everyone!

MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 17th Jul 2015 01:39
Just Run:

PRINT Get Dx Version$()
WAIT KEY
END

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 17th Jul 2015 01:53
@Derek Darkly

I hesitate to suggest this, but have you tried a reboot?



Powered by Free Banners
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Chris Tate
DBPro Master
15
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 18th Jul 2015 00:38
Check the graphics card driver updates which may have caused issues. Any crash caused by 3D commands is highly likely related to your graphics card and its drivers.

Sorry if I missed if you answered this question before; but have you tried running any .EXE files previously compiled such as the DBP example 3D projects or past 3D projects? If they also fail to work then the compiler can be disregarded as the culprit.

Good luck

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 18th Jul 2015 00:52
Good point.



Powered by Free Banners
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 18th Jul 2015 04:29
Hey Chris, good to see you man!

Some of my previous apps still work and some don't. I'm staring to suspect some sort of hard drive failure. I may need to do a "checkdisk" or defrag or something...

All of the DirectX 9.0c tests went fine as per Attila's suggestion.
I was running the correct version but I reinstalled it anyway.

I've attached an .EXE of GG's idea:

MAKE OBJECT CUBE 1,1
WAIT KEY


It crashes on me - would anyone care to see if it works for them?

I think the universe is telling me it's time to upgrade my system... LoL
I may just format my whole (expletive) C drive tomorrow and start from scratch.

Thanks again everyone!

Attachments

Login to view attachments
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 18th Jul 2015 12:52
Quote: "It crashes on me - would anyone care to see if it works for them?"


Runs fine for me so you can probably rule out a defective exe. Do you get any error messages when you run it? A CrashOnExit file or something else, perhaps? Or just the usual uninformative Windows "stopped working" message?



Powered by Free Banners
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 18th Jul 2015 16:05
It's just the generic error message.

I am wondering which libraries, etc. are used specifically for 3D commands, because like I say, as long as I don't use 3D objects everything runs fine.

This also crashes on me:

BACKDROP ON
WAIT KEY


Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 18th Jul 2015 16:51
Among other things that will use the "DBProCameraDebug.dll" found in your DBPro/Compiler/Plugins folder. Perhaps that file is the culprit. Post your copy of that DLL and I'll test it. It obviously isn't missing otherwise your program wouldn't compile.



Powered by Free Banners
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 19th Jul 2015 04:46
Thanks GG!

I put DBProCameraDebug.dll as well as DBProBasic3DDebug.dll together in a zip file, since they both seemed relevant.

I did reinstall DBPro recently, but I suppose it's still worth a try.

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 19th Jul 2015 12:54
Quote: "I put DBProCameraDebug.dll as well as DBProBasic3DDebug.dll together in a zip file"


But where did you put the zip file?



Powered by Free Banners
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 20th Jul 2015 00:25
Another thought: have you tried running any game exes that also use DX9c? If the DirectX files were corrupt you'd expect such exes to crash as well.



Powered by Free Banners
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 20th Jul 2015 19:12
WTH!!
Sorry I thought I attached the file.

I'll correct that when I get home... I am also copying the DLLs from the install here at work and emailing them to myself.

This is madness!

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 20th Jul 2015 21:13
Quote: "This is madness!"


Close , but not quite there yet.



Powered by Free Banners
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 21st Jul 2015 14:30
OK, after many personal distractions... here are the 2 libraries zipped together.

I have a feeling they will work fine for you, GG, and that I am just being punished by the gods for not making better games previously. This may go on for years before I can create a cube once again.

Attachments

Login to view attachments
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 21st Jul 2015 16:41
Quote: "I have a feeling they will work fine for you, GG"


They did - but they both seem to be from an earlier version of DBPro. Have you tried upgrading to the latest beta U77RC7? Does the problem persist when you do that?



Powered by Free Banners
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 21st Jul 2015 17:08
Here are the same two DLLs zipped up from my copy of U77RC7. Interestingly, the DLLs are both smaller than yours despite the fact that one of them has the same file creation date as one of yours. Weird.



Powered by Free Banners

Attachments

Login to view attachments
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 22nd Jul 2015 01:55
EUREKA!!!!... and stuff.

Replacing my home files with all of my work installation DLLs did the trick. Took about 5 minutes to put them in their proper folders and... WHABAM!

It finally works...it's glorrrrriouuussss 3D....



Now I can sleep.

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 22nd Jul 2015 12:55
Quote: "Now I can sleep."


Result! Good news.



Powered by Free Banners
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 22nd Jul 2015 22:30
Now I can get back to simply not having any good game ideas!

Thanks for everyone's attention to this first-world problem.

Login to post a reply

Server time is: 2024-04-27 01:57:41
Your offset time is: 2024-04-27 01:57:41