Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MyProgramme has caused an error in USER.EXE

Status
Not open for further replies.

Asgard2k

Programmer
Nov 17, 2003
3
GB

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
 
My first bet would be to Build your project instead of just compiling. This forces all units to be re-compiled, regardless of whether they've been modified.

Then check for any updates to Delphi 7. Sorry to not be of more help.
 
Thanks, but already tried both actions without success.
 
hi

Are you running the app with the 'Stop on Delphi Exceptions' checked in the Debugger options | Language Exceptions settings, to try to pinpoint the problem?

lou

 
Already set, but does not produce any clues as to nature of problem. Actually been chasing this on and off for months.

Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top