• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

Programs compiled under Win98 crash on Win95/NT

I have recently upgraded from Win95 to Win98.
Now programs compiled with MS Visual C++ 6.0
crash when they are transfered to PC's with
Win95/NT. It makes no difference whether I copy
them manually or whether I use InstallShield
for Visual C++ 6.0. Can anyone help?
1 Solution
Use Linux Instead ?
Seriously can you give some indication of the error messages ?
Bloody touchpad ! to finish off my last comment....
Number 1 thing you should do is run the depends
program on the Win95/NT machines (it's a tool
installed with VC6) on the executable. This will
show if any DLLs on the machine are missing
or out of date.
What do you mean with 'crash'? What is the error you're encountering? Could you be a bit more precise?
rernstAuthor Commented:
I've tried several applications. In most cases the program's main window
appears on the screen but is not completely drawn. Then a well known
message window pops up (the message text is roughly translated from
german but you'll probably recognize it anyway):

This application will be terminated due to an invalid operation.

DSF caused an error through an invalid page in module DSF.EXE at 137:00402fa6

The memory address is different on different machines. Unfortunately I have
no other Windows 98 machine available to test whether a similar error
would also occur there (this could exclude that it is a problem specific
to the installation on my computer.

Ok two possibilities:
1) Out of date dll.  Try building it with static libraries to see if it works when using libs for MFC and C Runtime libs.

2) Mismatched libs/includes/#defines - Visual is willing to be pretty sensitive about these but you can override it by choosing "ignore libraries" in the project settings/link/input page.  This is generally a very bad idea.  Fix the problem instead.

3) A real bug in your program.  It is likely that this would be triggered when changing OS's.  

Start by turning the compiler to warning level 4 re-compile and pay attention to the warnings.  Use standard debugging techniques to isolate where you are crashing.
Step into your program and see how far you are getting.  
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now