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.

Bug Reports / Visual C++ Runtime Error When I Open The DBPro Editor

Author
Message
BlackChaos
13
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 22nd Mar 2012 11:14 Edited at: 22nd Mar 2012 11:32
Hi guys, I was coding a second ago and the DPro Editor crashed randomly. Now when I re-open the editor it crashes imediatly with the same error

Ive uploaded an image.

Engine V2 Ameadus Project

Attachments

Login to view attachments
BlackChaos
13
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 22nd Mar 2012 12:34 Edited at: 22nd Mar 2012 12:41
Ok so ive worked out the problem and I will say but I doubt if anyone will try to remedy this in the next build of DBPro.

Basically I was building a function but without testing or saving I wrote the function in a Do .. Loop.

Example:
Do
Function Myfunction()
//Something goes here
Endfunction
Loop

After I moved the cursur and was about to click save.. DaDaaa! It crashed

After removing the entire editor 3 time and re- entering my key etc.

I worked out that if I open my project file's .dba in a text editor and deleted the lines with the function statement between the do .. loop it worked after starting the editor up again

And moral of the story, beware of the function inside the do loop


Engine V2 Ameadus Project
BlackChaos
13
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 22nd Mar 2012 12:47
Oh and now when I try to make functions there is an error that says :The name 'smlLongButton' duplicated in the program at line 439

Can somebody please help

Engine V2 Ameadus Project
BlackChaos
13
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 22nd Mar 2012 13:00
Ok it seem that Ive found a way around that last issue. If I write the functio in a seperate #Include file then it runs normally. Now I just cant write functions in the main project file

Sorry if im posting too much.

Engine V2 Ameadus Project
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 22nd Mar 2012 13:46
I took a chance and tried your snippet - the compiler threw it out with the correct error message in the usual way.

Nothing strange has happened yet.

You could try re-booting and if that fails, try re-installing DBPro.

Sounds as if something has gone wrong with your setup/installation.

Login to post a reply

Server time is: 2024-04-23 10:22:44
Your offset time is: 2024-04-23 10:22:44