Black Screen when leaving TP 6.0 programm

I have created a link from my win 98 desktop to a TP 6.0 DOS programm.
The DOS programm is working correct.
When I finish the DOS programm in normal way, my screen get black and I have to restrart my PC.
This problem is not every time I finish the programm.


What can I do to solve the problem.
thomaspeterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

scrapdogCommented:
When inside TP 6, press ALT-ENTER to put the screen in a window.  To close it, click on the Close button (the Windows one).
0
lguiCommented:
First of all you must know if it's a problem of your program, your computer or your Win98 installation.

Do this:
- Install your program in another machine.
- Run it several times and see if the new computer freezes too.

If not:
- Try reinstall your Win98;
If the new computer freezes too:
- Try find on your code if you make some direct access to the memory or if you did not release some resources that you have previously allocated.

I hope help you.
0
thomaspeterAuthor Commented:
The problem occurs on different PCs.
I think it is a win 98 problem. Problably it is a problem of active desktop in win98.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

lguiCommented:
Have you tested it on Win95 and DOS machines?

But, as you sad it don't happens every time you run the program, so you need to test sometimes.

Try an upgrade to win98 SE too.

If you want you can send me the source to take a look and test it.

lgui@epade.com.br
0
VIBESPROCommented:
this should work!

I had that error when I manually made a bat file to point to pascal..

it appears that the properties of the file are pointing to DOS and not to prevent it when in windows.

right click on the file 'turbo.exe'
and select properties. then click on program..

click on Run and select normal window.
then click on the advance button and select 'prevent MS-Dos based programs from detecting windows'  and select 'suggest MS-DOS mode as neccessary'

then click apply...

then click on memory on the properties
tab.. set all the options to "auto"

then click on 'screen' and select 'full screen'...

then run pascal again...

I did that when I used Windows 95
and now I use it with Windows 98 SE
and I just tried it and it works on my system.  It should work on anyone elses system too
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
thomaspeterAuthor Commented:
thank you for the answer.

you have sent me the standard properties to start a dos programm.

I am working 3 years on a win 95 machine
without any problem.


But the properties do not work on every win 98 system. probably there is a problem with the win 98 network.
0
VIBESPROCommented:
ok.. try updating Windows 98 and check out microsoft for more information..

when I installed Windows 98 SE I had now problems until I tried to restart in DOS..  My computer went into dos mode but my monitor went blank.  I got an update that corrected it.  

The best answer anyone can give is to check www.microsoft.com  for more information...  I'm sure you will fine your answer there.. ;)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Pascal

From novice to tech pro — start learning today.