winform target getting null object reference


I am new to using winforms.  I watched a sybase webcast
about winforms and tried creating a new target in my
powerbuilder project. I am doing this because I want to use
the new 'intelligent update' process from a website.  My
application new will compile and run.  I have two window
objects in a second PBL file.  My two PBL files are listed
in the 'library files' tab for the project object.

Here's the problem.  I get a 'null object reference at line
3' error when I pick a menu item that opens a window object.

Here is the code that is under the menu item.

w_sample_frame.st_sample_message.Visible = True
OpenWithParm(w_sample_process, 'MAIN')  //<--line3

I tried commenting out all the code in the open event of the
window object and I get the same error.  If I comment out
line 3 above in the menu object script the error goes away
but obvioulsy the window does not open.

I have another menu item that calls a window in the same PBL
as the problematic one and it opens just fine.

Can someone provide some help and tell me if I'm missing
something obvious?  I'm not really sure where to look at
this point.


1/13/2011 8:16:19 PM 284 articles. 0 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 9
Get it on Google Play
Get it on Apple App Store


Similar Artilces:

Registering a transaction is getting a Null object reference
Hi All, I am creating a transaction in a menu function and I am getting a successful connection. However when I try to register the transaction I am getting a Null object ref. Any pointers. The code is displayed below //Establish trans connection itr_promote = CREATE n_tr //set the transaction name itr_promote.of_SetName("itr_promote") //Initialize the ib_autorollback instance variable itr_promote.of_SetAutoRollback(TRUE) ls_inifile = gnv_app.of_GetAppIniFile() If itr_promote.of_Init(ls_inifile,"Database") = -1 Then MessageBox("Database&q... + object null reference exception
 Hi,  I am defining  DeviceSpecific region in a ObjectList and trying to have header for each paginated page, header contains two labels whose text will set be after the results from the database like total number of records. When I try to execute the following code I am getting Object reference nullexception. I couldnt understand, could anyone please tell me, why I am getting that. Here is my code for aspx and code behind file.    <mobile:Form Runat=server ID="form" Paginate=True>   <mobile:ObjectList ID="rptPublications" Ru...

Any one know why am I getting this NULL object reference error
Hi Friends, I am calling a global function from the Protect property of a datawindow column of edit type check box. In window Object painter, when I open the window having the above said datawindow I am getting the message saying 'NULL object reference at line 11 in function gf_are_payments_exist of object gf_are_payments_exist . Function complied without errors. The function called is: public Boolean gf_are_payments_exist (....) Long ll_count Select count(*) Into :ll_count From Tcal_Payments Where tax_year = :stax_year and legal_Entity_id = :slegal_entity_i...

[wxperl-users] How to get a sizer's reference from an XRC file? (or... More XRC and getting object references from it)
Hi, I'm obsessed about using XRC with wxPerl... Besides that, I'm normal =) Since my OO programming is a little rusty, I would like if someone could tell me if I'm wrong or not about: Getting a sizer's (box, grid, whatever) reference to perform a method call (for example: ->Add()). I'm Using the so useful Wx::Window::FindWindowByName() But it returns (as Cheetah stated) "static wxWindow*" Now, since a sizer is derived basically from wxObject and wxSizer I guess FindWindowByName() will ignore those sizers... then I could not get a reference....

Null object reference on transaction object
I am developing a web application and have encountered a strange problem. I have a component that is similar to the datawindow component and has been in production for some time now with no problems. With my new application everything works fine, except on a page that has frames, 2 of which use the above component to retrieve data. When I go to this page, one of the frames will work fine, retrieving the data and displaying it, but the other will not. There does not seem to be any logic as to which will work on any given attempt. The log shows a null object reference error (full error...

Getting a null reference while trying to add items to HtmlSelect object
I have 2 aspx files (actually more). In file1.aspx, I render a html page programmatically using System.Web.UI.HtmlControls, and in the other file, say, file2.aspx, I have some javascript functions that I use to process response from a XML Web Services (using the .htc file) and add items to html objetcs of file1.aspx. //file1.aspx .... ....HtmlSelect select1 = new HtmlSelect(); select1.Size = 16; select1.ID = UniqueID + "_ChatSelect"; //select1.Style["Display"] = "none"; chatlist.Controls.Add(select1); td.Controls.Add(chatlist); tr.Cel...

RE: [wxperl-users] How to get a sizer's reference from an XRC file? (or... More XRC and getting object references from it)
Hi, I don't know if there is a way to get the reference to the sizer, but maybe this work-around would help you. I don't add new items to the form later on. I create all possibly items within the XRC file and hide all the object I don't need initially ($ref->Show(0)). So you can use the FindWindowByName function to get the reference to the hidden objects and show them if needed ($ref->Show(1)). The advantage is that you don't need to take care of the layout at your application. Of course this isn't a good way if you need a lot of windows to hide/show.=20 ...

Getting an "Object reference not set to an instance of an object", and no idea which object
I'm working on one of our ASP.NET 2005 projects now.  For the longest time we've gotten an error when compiling it that says, "Object reference not set to an instance of an object".  However, the irritating thing is it doesn't say what "object" its having problems with, and it certainly isn't telling me which file that has the problem.  So, I'm getting this error message that doesn't tell me where the error comes from.  All I know is that the error is "Out there".  Reminds me of an old X-Files episode. How am I t...

webform target gets null reference error using openwithparm command
I am trying the following command in a project I have created to deploy to a webforms target. OpenWithParm(w_test_revenue_test_process, 'MAIN') This command works when I deploy to client server environment but I get Exception Message: System.NullReferenceException: Object reference not set to an instance of an object. Error message when I deploy to a webtarget. Any idea's how to fix this. I put a messagebox in the open event of the window I am calling but it never get's to dispay it. Also the calling menu item is in a different .pbl file then the window I am...

powerbuilder stored procedure close statement null object reference error
Hi, The following piece of code in a function is giving a null object reference error in Close statement (line 12). But I am not able to figure out how we could ever get a "Null object reference" error in the close statement. I have pasted below the complete code inside the function where the error is happening ************************************************************* //New function created by Mahesh on 20th May 2003 for //This function calls the procedure auto_estimated_end_date //to set the value of end dates for in the given work order id DECLARE myproc PROC...

Null Object Reference in Datastore Object Scripting
Hi, I'm using PB11.5.1 Having problem in external dataobject. Here's the code below: ====================== long ll_row datastore lds_user lds_user = create datastore lds_user.dataobject = 'dsp_temp' ll_row = lds_user.insertrow(0) lds_user.object.emp_id[1] = as_empid lds_user.object.login_count[1] = 0 Output: ======= Null object reference at line 7 in funtion logout of object n_user ----------- Problem is at line 7 when assigning emp_id column a value. DataObject exists in library. i hv observed one more thing that insertrow( ) statment at lin...

Get .NET framework objects with ASP.NET
Hi I'm developing an application(VS C#.NET) and a webapplication(ASP.NET). I want both of these to access an object to get and save information from and to MSSQL database. I wonder how I could get this to work. Can I get an object from my app in C# with ASP.NET? Thanks in advanced. -Martin you can create a class libary project to access mssql , and both vs and access database use this lib....

trying to load a C# control into a Vb 6.0 , but getting the object reference null errror
hi, I been trying out a code which uses an interaction between a Vb form and a C# controller, so far i have been able to load the  C# user control into the Vb form also i have been able to set the instance of the Vb form in the C# side. But when the button of the C# is being pressed(btn_click event) the Corresponding function in VB side needs to be called, but at this time this Vb instance is being set to null,in the C# side. and the Objreference null exception is raised.  ie, the problem is occuring while i am trying to to fetch the parent instance of Vb....

Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object.
Here's the scenario I have a running code in my localhost using windows xp with microsoft visual studio .net 2003 installed. No problem running the application. But when I transfered the application to a windows server no microsoft visual studio .net 2003 installed. i encountered Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object ref...

Web resources about - winform target getting null object reference -

Wikipedia talk:Reference desk/Guidelines/Medical advice - Wikipedia, the free encyclopedia
I disagree with this implication that this section of the guideline represents the consensus. If you look at the last few years of discussion ...

New York Times Removes Reference to President Obama and Cable News
... — Noah Rothman (@NoahCRothman) December 18, 2015 The Times story was published Thursday, but by Friday morning, the reference to cable news ...

Reference Pricing tweak for Medicaid
Reference pricing is a common payment reform for commercial insurance. Common, non-urgent, deferrable procedures are prime candidates. Hip replacement ...

'Enough with the Viagra references,' says the CEO behind the first FDA approved drug to boost women's ...
... the Fortune Most Powerful Women Next Gen conference. But the reaction to the pill still confounded her. "Enough already with the Viagra references," ...

Donald Trump prompts Nazi references
Some conservatives and political commentators say the GOP frontrunner's rhetoric has crossed the line

Supergirl: Easter Eggs and DC Comics References In "Livewire"
This week was an odd one for Supergirl.If that Jimmy Olsen/Lucy Lane date weekend seemed to come [...]

O’Malley References How Old Clinton And Sanders Are While Explaining His ISIS Strategy
O’Malley References How Old Clinton And Sanders Are While Explaining His ISIS Strategy

Now you can bookmark Google image searches for later reference
Normally, image searches on Google are ephemeral things and gone the moment you close the browser tab. However, a new feature on the search giant's ...

How To Get the References You Need For the Job You Really Want
How To Get the References You Need For the Job You Really Want

FORCE AWAKENS DC Pols rush to capitalize on 'Star Wars' references
FORCE AWAKENS DC Pols rush to capitalize on 'Star Wars' references

Resources last updated: 12/20/2015 6:17:38 AM