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 / baffling missing text problem

Author
Message
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 2nd Jan 2011 19:44 Edited at: 2nd Jan 2011 19:47
Just occasionally I run into a problem that completely defeats me.

It's happened today.

I was dusting off one of my old fog shader demos and ran it on my laptop. Everything seemed fine till I noticed that the text wasn't showing. After removing most of the code the problem persisted. I tried other projects and all the code displayed perfectly. I ran the compiled exe over the netwok on my pc and, yes, the text showed perfectly again. I took a screenshot on the PC and kept just the top left corner showing the text. Here's that part of the image:



I then went back to my laptop and ran the same exe - no text displayed. Took a screenshot in the usual way and pasted it into MS Paint intending to post it here as a comparison (hardly necessary of course - you know what's missing ).

Surprise, surprise, the missing text magically appeared! So I can't show you a screenshot of the missing text after all.

This problem has survived a re-boot.

Does anyone have an idea what might be causing this? I'm totally baffled.

[Edit Forgot to add that this is the only project that behaves this way.]
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 2nd Jan 2011 20:50
This seems to be something to do with the project settings.

I suspect my usual settings must have got changed after testing someone else's project in the last couple of days. Projects compiled a few days ago on my PC run fine on either machine - but not those compiled yesterday or today.

It turns out that the text wasn't missing after all. Somehow - and I'm not sure how - the screen resolution has been changed to something greater than the laptop supports. Here's the simplified dba code:



I expected that to be sufficient for the code to run correctly on both machines. But it wasn't.

The project with the missing text reports a resolution of 1792x1344 whereas a new project, using my usual settings, works correctly and reports a resolution of 1200x800. In fact the text in question really wasn't missing at all - it was merely displayed off-screen since the resolution was too large! But the screenshot grabbed all of it even the stuff off-screen. Confusing.

No wonder newcomers have trouble getting their programs running consistently on different machines.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 2nd Jan 2011 21:04
Quote: "I suspect my usual settings must have got changed after testing someone else's project in the last couple of days."


Er, the problem is closer to home.

It was my old project settings that caused the problem. Several of my old projects have the project's window setting as "fullscreen" whereas my current ones have it set as "fulldesktop". The "fulldesktop" setting works consistently on both machines.

Login to post a reply

Server time is: 2026-07-18 07:32:45
Your offset time is: 2026-07-18 07:32:45