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 / DBP keeps crashing at whatever line is clicked on

Author
Message
General Jackson
User Banned
Posted: 9th Oct 2010 01:54
My program keeps having an error at whatever line is clicked on to edit. I.e. if I have clicked on an REM line, it will not build but grey out the line with no explanation.

Any help? It compiled correctly before :s

This is blank. But actually it isn't because I wrote that it is blank.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 9th Oct 2010 02:31
Sounds like the ghost of the old editor has returned to haunt us.
General Jackson
User Banned
Posted: 9th Oct 2010 02:38
any way to fix it?

RedFlames
18
Years of Service
User Offline
Joined: 25th Aug 2007
Location: Germania
Posted: 9th Oct 2010 03:39
Yeah I get that aswell sometimes... Has that same "Failed AddToPck something..." Error message you would get if the target exe is still running/in use. Can't really give any specific circumstance when this occurs... Maybe it only happens if you hit F5 directly after closing the executable? If i wait a few seconds after that error it will compile without error for me.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 9th Oct 2010 13:18
Quote: "Has that same "Failed AddToPck something..." "


If that's the problem GJ is talking about then, yes, I get that in about 50% of my compiles on one of my machines (the XP one I think). I'm so used to just recompiling again till the problem goes away that I hardly notice it now. Sometimes I find it necessary to click somewhere else in the code to clear it. Yes, it is annoying and is a new "feature" that no-one seems interested in fixing or explaining adequately.
General Jackson
User Banned
Posted: 9th Oct 2010 17:27
Well it doesnt even have an error message though :S
It just grays out the line and doesnt build.

However, if I compile in Debug mode it does fine...

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th Oct 2010 00:04
Could you post a simple project folder that gives this problem? It's possible the project settings are screwed up in the .dbpro file. If so we might be able to see the same symptoms if nothing else.
General Jackson
User Banned
Posted: 10th Oct 2010 01:42 Edited at: 11th Oct 2010 22:39
Heres the code, if that's what you mean:



Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th Oct 2010 13:21 Edited at: 10th Oct 2010 13:24
Quote: "Heres the code, if that's what you mean"


Er, no:

Quote: "It's possible the project settings are screwed up in the .dbpro file."


How will the dba code tell me what's in the .dbpro file?

P.S. Your code tags need editing.

Edit Just looked at your code. Which editor are you using? I don't think I can compile that.
General Jackson
User Banned
Posted: 11th Oct 2010 02:37
I dont know what you mean. The same code is in the .DBA as is in the .dbpro :S

And I'm using the U75 editor. Whats wrong with the code?

Neco
18
Years of Service
User Offline
Joined: 13th Jul 2008
Location: Waterloo, Wisconsin USA
Posted: 11th Oct 2010 17:37 Edited at: 11th Oct 2010 17:39
There are small differences that pop up between revisions of the language/editor, so sometimes code produced on an older editor will not compile on a newer version, and vice-versa.

Also, your .dbpro file is your PROJECT file, it contains information ABOUT your project, such as what source files are used, and in some cases, if you set screen resolution, and other settings available in the editor to be set that way.

Your DBA file is purely the source code and does not describe or contain the information held in your Dbpro file.

Also your code tag needs a space between code and lang


If you open a .dbpro file in Notepad, this is what you will see



Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 11th Oct 2010 19:59
Quote: "I dont know what you mean. The same code is in the .DBA as is in the .dbpro :S

And I'm using the U75 editor. Whats wrong with the code?"


I don't know what you mean either - the .dbpro file is very different from the .dba file. Open both in Notepad and you'll see what I mean.

Regarding the code itself, I can't compile the very first line. I guess it's a plugin of some sort:



Also, could you go back and edit your code tags in your earlier post?
General Jackson
User Banned
Posted: 11th Oct 2010 22:39
Yes, I will edit the code tags.

Also, the StartBlue command is for the BlueGUI plugin.

I opened them both in notepad and I see what you mean... when I open them in DBP it's the same so I didn't know :S

Neco
18
Years of Service
User Offline
Joined: 13th Jul 2008
Location: Waterloo, Wisconsin USA
Posted: 11th Oct 2010 23:53 Edited at: 11th Oct 2010 23:53
Well that's how its supposed to work.

When you have a project that involves several source files, and other media components, they all have to be linked together by the project file, etc.

So when you go to open your project later, it opens the project file and you have all the sources you were working with before. As well as any particular settings you may be using.

General Jackson
User Banned
Posted: 12th Oct 2010 03:17
Forgot the source from the DBP file. here it is.



Login to post a reply

Server time is: 2026-07-22 12:41:37
Your offset time is: 2026-07-22 12:41:37