Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / October 2004

Tip: Looking for answers? Try searching our database.

Object reference not set to an instance of an object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Olaf Baeyens - 07 Oct 2004 11:32 GMT
Another question:

I have a mixed managed/unmanaged MVC++ 2003 project and it uses a VC++ 6.0
lib file that only uses windows functionality no MFC. So far it worked fine.

But somehow now I get a an error during the construction of a pure unmanaged
class at the very beginning,

An unhandled exception of type 'System.NullReferenceException' occurred in
Three.dll
Additional information: Object reference not set to an instance of an
object.

The function:

public: CPluginExt(DWORD style, LPCTSTR lpszName, LPCTSTR lpszDescription,
                            LPCTSTR lpszStdOut, LPCTSTR pszStdErr ) :
                      CPlugIn(style,lpszName, lpszDescription, lpszStdOut,
pszStdErr ) {
              Init();
};

The debugger stops on that very first line of the constructor, at that point
I did not execute functionality.

The odd thing is that if I recompile the lib file with VC++ 2003 then it
works.
But plans here is that they only want to distribute the VC 6.0 lib file and
not many versions for every compiler.

Any ideas?
Ronald Laeremans [MSFT] - 07 Oct 2004 17:21 GMT
Static libs in general are specific to a version of the compiler. Third
party vendors need to provide different versions.

Ronald Laeremans
Visual C++ team

> Another question:
>
[quoted text clipped - 31 lines]
>
> Any ideas?
Olaf Baeyens - 08 Oct 2004 12:59 GMT
> Static libs in general are specific to a version of the compiler. Third
> party vendors need to provide different versions.

That I was afraid of, thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.