CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #3
    Join Date
    Apr 2010
    Posts
    131

    Re: Object created in one function, is null in an other function

    For one thing, the global order is called "order," and in the confirm click, you are referencing ordersDAL, which I don't see ever being created in the code you posted....

    Looking at this, I would guess that odersDAL is throwing the null reference exception, not order.

    You can test by moving your instantiation outside of your method:

    private OrderBO order = new OrderBO();

    if you still get the null reference exception, you are not dealing with a null order.
    Last edited by mrgr8avill; May 23rd, 2010 at 11:33 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured