Can anyone throw some light on this.
I have an application which was developed using Delphi 4. The same code compiles and runs without problems under Delphi 6. Unfortunately, I recently migrated to Delphi 7 and the problems begin.
The code compiles without any errors, warnings etc.
The application runs okay until one of my units passes control to another (i.e. a data record is read and displayed, subsequently pressing a button on the form transfers control to an update route - different form).
When Application.CreateForm(.....) is called within the called routine (update), the programme crashes with the Windows message 'MyProgramme has caused an error in USER.EXE. MyProgramme will now close.'.
This happens every time the application is executed, and has been tried on different computers. This also sometimes has the effect of causing Delphi to produce the same error and crash after MyProgramme has bombed.
The host machine is a good spec unit with plenty of capacity etc. I am running Windows ME.
Thanks to all in hopeful anticipation