![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Base class defined and initialized variables loose initialization in subclass. Hi I have a very strange problem. In my development environment it works fine and as expected to access base class member objects that have been instantiated in the base class from a derived class. However, when I copy the exact same program to my production server I always get the "Object reference not set to an instance of an object" exception when trying to access the base class objects member. I am running .net 3.5 SP1 in both environments. The only real difference is that the dev environment is Win2k3 server 32 bit and the production server is 64 bit version of the same OS. Is the .net installation FUBARed on the production server? Or is there some settings for .net regarding how inheritance is handled that I'm completely unaware of? I think it is really bad that the same excutables doesn't work in the same way on different machines. Best regards, Trygve Lorentzen |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Base class defined and initialized variables loose initialization in subclass. Sorry everybody, it was some bad error handling that caused this sideeffect after refactoring some old code (moving common code into base class). Trygve "Trygve Lorentzen" <trygveloAThaldenDOTnet> wrote in message news:eFIWh4FVJHA.1188@xxxxxx Quote: > Hi > > I have a very strange problem. In my development environment it works fine > and as expected to access base class member objects that have been > instantiated in the base class from a derived class. However, when I copy > the exact same program to my production server I always get the "Object > reference not set to an instance of an object" exception when trying to > access the base class objects member. I am running .net 3.5 SP1 in both > environments. The only real difference is that the dev environment is > Win2k3 server 32 bit and the production server is 64 bit version of the > same OS. > > Is the .net installation FUBARed on the production server? Or is there > some settings for .net regarding how inheritance is handled that I'm > completely unaware of? I think it is really bad that the same excutables > doesn't work in the same way on different machines. > > Best regards, > Trygve Lorentzen > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| How to access variables defined on another form | .NET General | |||
| Test if a variables is defined or not | .NET General | |||
| Using a Delegate to Simulate Invoking Events in Base Class | .NET General | |||
| Creating a Custom Enumerator in a Base Class | .NET General | |||
| Setting java class variables | Vista General | |||