Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Oct : LoadLibrary peculiarity - Problem with error notification from Windows

www.cryer.info
Managed Newsgroup Archive

LoadLibrary peculiarity - Problem with error notification from Windows

Subject:LoadLibrary peculiarity - Problem with error notification from Windows
Posted by:"Perry Way" (please_n-0-spam@nospam.spam)
Date:Sat, 22 Oct 2005 11:26:07 -0700

I am experiencing a peculiarity with LoadLibrary()

Since I am testing all variations of the use of the program I am working on,
I tested LoadLibrary() against a NON-.dll

First time I ever did that!  (LOL! always tested in past against an actual
.dll)

What I'm experiencing is that Windows presents a popup window with the Error
notification reading "The application or DLL <filename> is not a valid
Windows image.  Please check this against your installation diskette".

The most interesting part of this is.. it does NOT throw an exception in my
executable.  If it did, I could trap it and do whatever...

I am wracking my brains here on how to elliminate this popup from occuring!
Normal exception handling doesn't do the trick.

Anyone?

Thanks,

Perry

Glossary

File Types

Replies:

www.cryer.info
Managed Newsgroup Archive