programs compiled in 32 bit version, not working under 64 bit AMD64

Asked by Colin Hutcheson

I'm using BASIC binary code compiled under dosemu using Ubuntu 12.04 (32 bit version) and the compiler is Quick Basic 1.04.
The software uses a main program that dives into une of eight sub directories that contain different data sets.

Although the main program works exactly as on Ubuntu 12.04 32 bit version, under the AMD 64 bit O/S it HANGS instead of chaining to one of the following programs.

Is this because under the AMD64 bit version the directory structure is giving a problem and needs recompiling under a 64 bit compiler such as the one at qb64.net? (which unfortinately still appears to have the CHAIN problem unsolved) or is there another explanation?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu dosemu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Do you have the dependencies installed in 32bit?

Revision history for this message
cohutche (colinhutcheson) said :
#2

I haven't checked that but do you believe that it could affect the
operation under the 64 bit version of the O/S since there's no problem with
dosemu that I know of under the 32 bit O/S.

In fact it reminds me of the problem we had many years back before DOS 3.1
was released.
Previously, access to sub-directories was not working.

On 30 August 2013 13:26, actionparsnip <<email address hidden>
> wrote:

> Your question #234903 on dosemu in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/dosemu/+question/234903
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> Do you have the dependencies installed in 32bit?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/dosemu/+question/234903
>
> You received this question notification because you asked the question.
>

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#3

Yes, you answered your own question

"Is this because under the AMD64 bit version the directory structure is giving a problem and needs recompiling under a 64 bit compiler such as the one at qb64.net?"

32bit compiled programs usually not playing at all in 64bit OS.

For example, here in Launchpad we have 3 different compilers. When you sent a source code , Launchpad Virtual compilers , compile the binary on 3 different architectures.. 32bit, 64bit and armf.

Regards
 NikTh

Revision history for this message
cohutche (colinhutcheson) said :
#4

Thanks NikTh

The only problem is that I'm still using the only compiler that works with
the DOS version of the programs and this makes use of Microsoft's 1986 QB
1.02 (16 bit) compiler.

That's why I mentioned the issue with chaining programs under
qb64<http://qb64.net>
.

According to Microsoft chaining in BASIC

1. stops the first program
2. loads the 2nd program into memory.
3. the 2nd program starts to run.

In QB64 step one still doesn't take place when last tested.

So each time you chain a program using QB64 it leaves a preceding version
running in memory which in a typical business management session could mean
there are multiple programs running and each has to be exited before
shutting down.

And of course it eventually becomes extremely confusing as to which program
was the last to be used.

Any other ideas how to solve the problem?

Colin

On 30 August 2013 18:01, Nik.Th. <email address hidden>wrote:

> Your question #234903 on dosemu in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/dosemu/+question/234903
>
> Nik.Th. proposed the following answer:
> Yes, you answered your own question
>
> "Is this because under the AMD64 bit version the directory structure is
> giving a problem and needs recompiling under a 64 bit compiler such as
> the one at qb64.net?"
>
> 32bit compiled programs usually not playing at all in 64bit OS.
>
> For example, here in Launchpad we have 3 different compilers. When you
> sent a source code , Launchpad Virtual compilers , compile the binary on
> 3 different architectures.. 32bit, 64bit and armf.
>
> Regards
> NikTh
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/dosemu/+question/234903/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/dosemu/+question/234903
>
> You received this question notification because you asked the question.
>

Can you help with this problem?

Provide an answer of your own, or ask Colin Hutcheson for more information if necessary.

To post a message you must log in.