devxlogo

Cannot load form, unspecified error

Cannot load form, unspecified error

Question:
I have a project that exists on a NT 3.51 machine. When I copy all source code, etc. to my Win95 PC, Delphi does not load the main form. The associated unit and all other stuff loads. I believe the error is related to a missing or incorrect module header, whatever that means. The VCL, although slightly different, contains all the components that are on the NT PC. What causes this? Also, what is the .DSM file that is sometimes generated?

Answer:
What you want to do in this case is move only the DPR, PAS and DFM filesto the other machine. Then recompile immediately. Don’t bother with theother files. They’re extra files used by the compiler internally, and are not a concern to you as a developer.

With respect to the DSM file, that is the symbol file. It’s only saved ifyou have the Desktop and Symbols option checked in the Tools|Options dialogunder the Preferences tab. This is operating system specific, which isprobably why you get the behavior you do.

See also  The Importance of Data Security in Hospitality
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist