Harbour - MingW compiled EXE not running under Windows 98 ??

619 views
Skip to first unread message

SD

unread,
Aug 16, 2012, 7:50:47 AM8/16/12
to harbou...@googlegroups.com
Dear HU Group:

I've successfully converted one of my Clipper Application to Harbour using MingW compiler.
This new EXE is running great in Windows 7 and Win XP on client systems and smoothly getting connected to the Novell Server.

But its NOT RUNNING under Windows 98.

The client PC specs:
Computer: Pentium III
RAM      : 320MB
OS        :  Win 98

The Server:
Novell Server

What happens when EXE is executed:

The while screen becomes black, and the cursor just blinks, no error messages or the exe doesn't crashes to the DOS prompt. I awaited for 5 minutes, and then had to
force "END NOW" from windows to close the application.

May I know the root cause for application not running in this case? Is it because of using modern compiler MingW instead of BCC, or something else?


Regards,
Swapan

francesco perillo

unread,
Aug 16, 2012, 7:54:28 AM8/16/12
to harbou...@googlegroups.com

Check if the dos window has hundreds of rows and your text is in other parte.
Set the screen size to 80*25.

--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

oleksa

unread,
Aug 16, 2012, 9:03:53 AM8/16/12
to harbou...@googlegroups.com
Hi!

I'm build harbour on win xp machine, copy it to win98, build and run my app on win98, all works fine.
MinGW GNU C 4.6.2 (32-bit) the same for xp and 98.

One note, on win 98 kernelex installed!

My build script for harbour

cd _svn\harbour
SET HB_INSTALL_PREFIX=c:\dev\harbour\
SET HB_BUILD_DYN=no
SET HB_WITH_OPENSSL=C:\dev\openssl\include
SET HB_WITH_CURL=C:\curl\include
win-make install %1 %2 > logssl.txt 2>&1

On wi98 harbour build info:
C:\dev\harbour\bin\>harbour -build
Harbour 3.2.0dev (Rev. 17932)
Copyright (c) 1999-2012, http://harbour-project.org/

Harbour Build Info
---------------------------
Version: Harbour 3.2.0dev (Rev. 17932)
Compiler: MinGW GNU C 4.6.2 (32-bit)
Platform: Windows 98 4.10.2222 A
PCode version: 0.3
ChangeLog last entry: 2012-07-25 11:51 UTC+0200 Viktor Szakats (harbour syenar.n
et)
ChangeLog ID: ChangeLog 17932 2012-07-25 09:54:40Z vszakats
Built on: Jul 25 2012 16:41:21
Build options: (Clipper 5.3b) (Clipper 5.x undoc)
---------------------------

Regards,
Alexey Myronenko


--- пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ ---
ВіпїЅ пїЅпїЅпїЅпїЅ: "SD" <swapan...@gmail.com>
пїЅпїЅпїЅпїЅ: harbou...@googlegroups.com
пїЅпїЅпїЅпїЅ: 16 пїЅпїЅпїЅпїЅпїЅпїЅ 2012, 14:50:50
пїЅпїЅпїЅпїЅ: [harbour-users] Harbour - MingW compiled EXE not running under Windows 98 ??




> Dear HU Group:
>
> I've successfully converted one of my Clipper Application to Harbour using MingW compiler.
> This new EXE is running great in Windows 7 and Win XP on client systems and smoothly getting connected to the Novell Server.
>
> But its NOT RUNNING under Windows 98.
>
> The client PC specs:
> Computer: Pentium III
> RAM пїЅ пїЅ пїЅ: 320MB
> OS пїЅ пїЅ пїЅ пїЅ: пїЅWin 98

SD

unread,
Aug 16, 2012, 2:36:23 PM8/16/12
to harbou...@googlegroups.com
Dear Fperillo:

Set the screen size to 80*25.

Yes, I'm using setmode(25,80). And hope this clipper command doesn't crashes in Win 98...

Regards,
Swapan

SD

unread,
Aug 16, 2012, 3:02:00 PM8/16/12
to harbou...@googlegroups.com
Thanks Alexey Myronenko for informing that MingW compiled exe does runs on Win 98.

One note, on win 98 kernelex installed!  

I Don't know about this? Does this can play any role here??
 

But let me clear it, IN MY CASE IT IS NOT RUNNING UNDER WIN 98 BUT THE SAME EXE IS OK FOR XP / WIN 7

  • I've installed harbour 3.0 using the harbour-3.0.0-win Installer/Setup - so I'm using the readymade binaries for the Windows setup of Harbour Installation.

  • I've compiled my application and built the EXE under Vista (32-bit) which seems to be ok as its running smoothly under vista/xp/win7, just fails under win 98.

  • And the configuration of Win 98 PC is (yes, quite old):
Processor: Pentium III
RAM        : 320MB

  • The current status of my issue is:

  CLIENT PCS       SERVER PC
APPLICATION VER. WIN 98 WIN XP  WINDOWS 7    
Clipper Version ok ok ok   Novell Netware 5
Harbour Version x ok ok   Novell Netware 5
(MingW compiler) (not responding - cursor blinking endlessly)        

Thanks & Regards,
Swapan Das        

francesco perillo

unread,
Aug 16, 2012, 3:07:30 PM8/16/12
to harbou...@googlegroups.com

Do you have scrollbars when cursor blinks? If yes move the scrollbar and see if the screen is painted in otger places.

Please, can you please avoid to use HTML messages?

--

Swapan Das

unread,
Aug 16, 2012, 3:16:48 PM8/16/12
to harbou...@googlegroups.com
On Fri, Aug 17, 2012 at 12:37 AM, francesco perillo <fper...@gmail.com> wrote:

Do you have scrollbars when cursor blinks? If yes move the scrollbar and see if the screen is painted in otger places.

Can tell you 2morrow, as the Win 98 system is not available now. Though I don't remember if there was any vertical/horizontal scroll bar appearing at the borders of the screen.

Please, can you please avoid to use HTML messages?

Sorry for the inconvenience ........ 
I just use gmail/google group to reply/post using the gmail's "standard" mode, if internet is very slow then use html mode.
Any settings I've to make to post here...let me know please. 
 
Regards,
Swapan

oleksa

unread,
Aug 16, 2012, 4:35:27 PM8/16/12
to harbou...@googlegroups.com
Hi!


--- пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ ---
ВіпїЅ пїЅпїЅпїЅпїЅ: "SD" <swapan...@gmail.com>
пїЅпїЅпїЅпїЅ: harbou...@googlegroups.com
пїЅпїЅпїЅпїЅ: 16 пїЅпїЅпїЅпїЅпїЅпїЅ 2012, 22:02:03
пїЅпїЅпїЅпїЅ: Re: [harbour-users] Harbour - MingW compiled EXE not running under Windows 98 ??




> Thanks Alexey Myronenko for informing that MingW compiled exe does runs on Win 98.
>
> > One note, on win 98 kernelex installed!пїЅпїЅ
> I Don't know about this? Does this can play any role here??
>
>

Description

KernelEx is an Open Source compatibility layer with an aim to allow running Windows 2000/XP-only applications on Microsoft Windows 98 and Microsoft Windows Millennium operating systems.

Try it, maybe it help you.

Regards,
Alexey Myronenko

oleksa

unread,
Aug 16, 2012, 4:36:58 PM8/16/12
to harbou...@googlegroups.com
look at http://sourceforge.net/projects/kernelex/

Regards,
Alexey Myronenko

--- пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ ---
ВіпїЅ пїЅпїЅпїЅпїЅ: "oleksa" <m.ol...@ukr.net>
пїЅпїЅпїЅпїЅ: harbou...@googlegroups.com
пїЅпїЅпїЅпїЅ: 16 пїЅпїЅпїЅпїЅпїЅпїЅ 2012, 23:35:30
пїЅпїЅпїЅпїЅ: Re: [harbour-users] Harbour - MingW compiled EXE not running under Windows 98 ??




> Hi!
>
>
> --- пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ ---
> ВіпїЅ пїЅпїЅпїЅпїЅ: "SD" <swapan...@gmail.com>
> пїЅпїЅпїЅпїЅ: harbou...@googlegroups.com
> пїЅпїЅпїЅпїЅ: 16 пїЅпїЅпїЅпїЅпїЅпїЅ 2012, 22:02:03
> пїЅпїЅпїЅпїЅ: Re: [harbour-users] Harbour - MingW compiled EXE not running under Windows 98 ??
>
>
>
>
> > Thanks Alexey Myronenko for informing that MingW compiled exe does runs on Win 98.
> >
> > > One note, on win 98 kernelex installed!пїЅпїЅ
> > I Don't know about this? Does this can play any role here??
> >
> >
>
> Description
>
> KernelEx is an Open Source compatibility layer with an aim to allow running Windows 2000/XP-only applications on Microsoft Windows 98 and Microsoft Windows Millennium operating systems.
>
> Try it, maybe it help you.
>
> Regards,
> Alexey Myronenko
>

José M. C. Quintas

unread,
Aug 16, 2012, 5:09:09 PM8/16/12
to harbou...@googlegroups.com
To run harbour 3.0 in W98:
- Compile/link with unicode – In this way runs on any windows version
- In W98 install unicode package
 
 
 
José M. C. Quintas

Qatan

unread,
Aug 16, 2012, 7:53:42 PM8/16/12
to harbou...@googlegroups.com
Hello,
 
    Just a tip: Look for UNICOWS in the INSTALL file.
   
Qatan

SD

unread,
Aug 17, 2012, 1:36:50 PM8/17/12
to harbou...@googlegroups.com
On Friday, 17 August 2012 00:37:30 UTC+5:30, fperillo wrote:

Do you have scrollbars when cursor blinks? If yes move the scrollbar and see if the screen is painted in otger places.

Checked - NO SCROLLBARS... Have run the exe from both, windows and command prompt - only black blank screen and cursor blinking for infinite state.
Thanks a lot for showing your concern for my issue.

SD

unread,
Aug 17, 2012, 2:47:57 PM8/17/12
to harbou...@googlegroups.com
On Friday, 17 August 2012 02:05:27 UTC+5:30, Alexey Myronenko wrote:
Description
KernelEx is an Open Source compatibility layer with an aim to allow running Windows 2000/XP-only applications on Microsoft Windows 98 and Microsoft Windows Millennium operating systems.
look at http://sourceforge.net/projects/kernelex/ 

Thanks a lot Alexey for informing me about this Compatibility Layer for Win9x....... I was not aware of it, as never had to face such compatibility issue.
It was a bit tricky initially, as my Win98 system do not have internet connection, which was required by the Kernelex setup.  Though was able to sorted it out..

In word - YES , after installing this layer MY EXE DID RUN ON WIN98 but certain issues were observed by me:

The System config.:
CPU: PIII
RAM:320MB

The APPLICATION EXE (harbour ver.3.0 using MingW): 2.5 MB Size

1) The EXE of the Harbour ver. of my application became very slow (when I move from one menu option to another rapidly, its taking time to refresh screen).

2) Certain anomalies related to Keyboard usage - For numbers if the 1st row keys, the symbol keys row like  ! @ # $ % ^ & * ( ) are used CAPS LOCK ON/OFF status becomes crucial - CAPS LOCK has to be in OFF mode. Whereas in my case my operators/users also use these keys for the numbers, and when special symbols are required SHIFT KEY is used while pressing these keys. They WON'T SWITCH TO NEW PRACTICE.

Due to above these two issues, I've uninstalled the Compatibility Layer, for the time being........ just wondering why  Alexey Myronenko didn't faced above issues - may I know Alexey, the hardware config. of your system?

Thanks & Regards,
Swapan

SD

unread,
Aug 17, 2012, 3:04:44 PM8/17/12
to harbou...@googlegroups.com
On Friday, 17 August 2012 02:39:09 UTC+5:30, José M. C. Quintas wrote:
To run harbour 3.0 in W98:
- Compile/link with unicode – In this way runs on any windows version
- In W98 install unicode package


Dear José M. C. Quintas:

I really appreciate for paying attention to my issue and providing solutions/work-around for it.
 
--- In W98 install unicode package: 
Please refer to the detail reply I've given to Alexey Myronenko. It really RUNS the application but found very slow running gasping for more memory and there's issue related to keyboard usage. It will need more RAM and not sure if there's any further scope for additional RAM.

--- Compile/link with unicode – In this way runs on any windows version:

THIS IS NOT CLEAR TO ME!
You are referring what:
 a) Is it build new Harbour binaries, compiling harbour source with unicode OFF? 

OR

b)Re-compile my application using UNICODE (off) OPTION using my current HB 3.0 with MingW (- from the setup/installer version).

I don't want to use option a) as then I've to maintain two exes (one for win 98 and other for the higher windows)
Option b) - I don't know how to do it....


Thanks & Regards,
Swapan

SD

unread,
Aug 17, 2012, 3:11:07 PM8/17/12
to harbou...@googlegroups.com
On Friday, 17 August 2012 05:23:42 UTC+5:30, Qatan wrote:
    Just a tip: Look for UNICOWS in the INSTALL file.


I was really not aware of these UNICOWS.....

And what about libunicows.a library file that is under hb30\lib\win\mingw folder?
How to incorporate it in my application build....

José M. C. Quintas

unread,
Aug 17, 2012, 4:54:17 PM8/17/12
to harbou...@googlegroups.com
b) Re-compile my application using UNICODE
hbmk2 application -winuni
Same version runs on W98, XP, W7, W8
 
In W98, I install unicows from Microsoft.
 
José M. C. Quintas

SD

unread,
Aug 18, 2012, 6:06:33 AM8/18/12
to harbou...@googlegroups.com
On Saturday, 18 August 2012 02:24:17 UTC+5:30, José M. C. Quintas wrote:
b) Re-compile my application using UNICODE
hbmk2 application -winuni
Same version runs on W98, XP, W7, W8

Thank you so much for giving your time in solving this issue....
As suggested by I did the following but it DIDN'T WORKED till now:

hbmk2 myapp.hbp -winuni
(Please note I'm using the default compiler MingW) 

Compilation does not gives any error, exe also successfully gets built. But this exe doesn't runs on Win98 (without any KernelEx installation & unicows.dll) and runs smoothly on XP or Win7.

Am I missing anything from  José M. C. Quintas'  suggestion?

Regards,
Swapan

M.FACCIO adinet

unread,
Aug 18, 2012, 6:38:46 AM8/18/12
to harbou...@googlegroups.com
El 18/08/2012 07:06 a.m., SD escribió:
I send you a mail but I guess that it not arrives.
It just happens to me and solved with this (Thanks to Viktor).
You need unicows lib to run on windows 98

Hope it helps
Please review this :

[1] http://groups.google.com/group/harbour-devel/browse_thread/thread/da99c4e5f9bb4f6e
[2] http://sourceforge.net/tracker/?func=detail&aid=3317907&group_id=681&atid=100681
[3]http://www.matrixlist.com/pipermail/harbour/2010-February/032787.html

I've answered this previously, please always review the history messages of this list before posting, google is your friend.


Maurizio
--

SD

unread,
Aug 18, 2012, 8:18:40 AM8/18/12
to harbou...@googlegroups.com
Dear Maurizio:

Thanks for attending this thread to help me out.  Please refer to my answers to your post. And especially refer to the ISSUE I've mentioned in Step 4 while providing the solution which worked for me (not satisfied with the performance though...)

On Saturday, 18 August 2012 16:08:46 UTC+5:30, Maurizio wrote::
El 18/08/2012 07:06 a.m., SD escribió:
I send you a mail but I guess that it not arrives.

First thanks for your initiative. Yes your mail DIDN'T LANDED TO MY GMAIL ACCOUNT... otherwise I won't have missed it and would have acknowledged it with due respect. 

It just happens to me and solved with this (Thanks to Viktor).
You need unicows lib to run on windows 98

Hope it helps
Please review this :

[1] http://groups.google.com/group/harbour-devel/browse_thread/thread/da99c4e5f9bb4f6e
[2] http://sourceforge.net/tracker/?func=detail&aid=3317907&group_id=681&atid=100681
[3]http://www.matrixlist.com/pipermail/harbour/2010-February/032787.html

Yes, after posting my this post, 2day while awaiting for the reply, I DID searched in Google and  found your above mentioned post. Though it was not very crystal clear and (btw 3rd link has expired now) - if we go through it quickly.

By this time I was assuming have to link the unicows lib of mingW (which I mentioned earlier also...). 
 
I've answered this previously, please always review the history messages of this list before posting, google is your friend.

Yes, I'm sorry I should have done this before posting. But you know actually when someone is in a flow and his/her couple of threads are active in a group/forum discussion he tends to ask a NEW ISSUE as soon as he faces which is directly linked to his major objective (my being porting Clipper Application to Harbour with minimal changes initially) - as the members were helping thought they will shoot with answers (they did also...)

For Harbour and MingW : FROM MY END THE FINAL SOLUTION/TRICK WHICH DID IS (if any1 interested still....):

1) Incorporate the unicows library for MingW (\hb30\lib\win\mingw\libunicows.a

for this add the following lib.in your app hbp file (Myapp.hbp), before other libraries (if your application is having):

-lunicows

2)Next build exe with hbmk2:

hbmk2 myapp.hbp

(you will get error if libunicows.a is not found by hbmk2, I didn't had to copy/assign it anywhere - its located in the installation folder as mentioned in step 1.)

3)Win 98 system:

- download  unicows.dll (not part of harbour, you've to download it from internet)
- copy it to the application folder.
- So keep this harbour compiled myApp.exe and unicows.dll in the same folder.
- Run it....IT SHOULD RUN!

4)ISSUE with Step 3 / with this EXE having facility for Win 98 execution:

a) A bit strange operational keyboard behaviour - CAPS LOCK on/off status gets linked with the symbols keys ! @ # $ % ^ & * ( ).
    CAPS LOCK is to be toggled when you want 1 or ! from that key (normally Shift key is effective in such situation)

b) VERY SLOW RUNNING -  My this new compiled application runs very slow in Win98 (but much faster on XP or Win7 compared to Clipper ver.). Taking time in screen refreshes....Reason could be my this exe is around 2.5MB in size and the Win 98 system is very low in config. (CPU PIII, RAM 320MB).


Maurizio and Others who've implemented on Win 98:

Please let me know if you people did faced the issues i mentioned in my Step/point no. 4.

Thanks for the patience...... and hope this post will also help some1 who gets stuck with implementing Harbour App. using MingW in Win98. And yes Win98 will not stay much....just needed for the compatibility factor as CLIPPER runs on all these platforms (win9x to Win7).

Regards,
Swapan

José M. C. Quintas

unread,
Aug 18, 2012, 8:37:40 AM8/18/12
to harbou...@googlegroups.com
Need install unicode in W98.
Unicows is the Microsoft option for unicode in W95/W98/Millenium.
XP, Win7 and Win8 already have unicode.
 
José M. C. Quintas
--

M.FACCIO adinet

unread,
Aug 16, 2012, 3:26:39 PM8/16/12
to harbou...@googlegroups.com
El 16/08/2012 04:02 p.m., SD escribió:
I've answered this previously, please always review the history messages of this list before posting, google is your friend.
Hope it helps





>
>You need unicows lib to run on windows 98
>It just happens to me and solved with this (Thanks to Viktor).
>
>Hope it helps
>
>
>Maurizio
>
>PD: Please review this :
Reply all
Reply to author
Forward
0 new messages