473,769 Members | 4,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

terminal server session and odd behavior

I have an application written in c$ that needs to be run in 3 different
terminal server sessions on a windows 2003 server. Everything will
work fine for about an hour, after this point the applications thread
will no longer be able to create an custom object.

I will continually get the error

"Object reference not set to an instance of an object"

any ideas? It always seems to happen around an hour of run, and if I
have 3 terminal server sessions running the app, they will all fail
about 10 minutes after one another...

mike

Nov 17 '05 #1
1 1595
Mike,

Unless you're telling me that this never happens except in a Terminal
Server session I'd very much doubt it has anything to do with Terminal
Server. Even if you did tell me that, I'd still doubt it.

To be of any help we'd need to know something about the c$ language
(just kidding, I'm sure you meant C#), some context about what kind of
app it is (WinForms, console, service, ASP.NET, etc) and what it does,
and the line of code where this error occurs, along with some of the
code in context around it. In truth if you isolate the offending line
of code and use the debugger or trace statements, etc to examine its
runtime condition at the point of error, you will probably solve the
problem yourself.

The error you're getting is a very generic and common error and just
means you're referencing some member of an object that is currently
null. Somewhere you've failed to initialize something or to anticipate
that some object reference could potentially be uninitialized, say, in
some boundary condition.

--Bob

mwolf wrote:
I have an application written in c$ that needs to be run in 3 different
terminal server sessions on a windows 2003 server. Everything will
work fine for about an hour, after this point the applications thread
will no longer be able to create an custom object.

I will continually get the error

"Object reference not set to an instance of an object"

any ideas? It always seems to happen around an hour of run, and if I
have 3 terminal server sessions running the app, they will all fail
about 10 minutes after one another...

mike

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2298
by: Sara_S | last post by:
I am ready to move my ASP web site onto a remote host. The problem is that when I use Terminal Services to see the host machine, the error does not show up. (I was told that debugging info is only sent to the 'console' session, no others). And the whole thing locks up when there is a server error. How can I see the server errors through Terminal Services? Thanks, Sara
14
1604
by: mystilleef | last post by:
Hello, A user of my application points me to a behavior in gVim, the text editor, that I would like to implement in my application. When gVim is launched from a shell terminal, it completely frees the terminal. You can continue to use the terminal for whatever purpose you wish, including closing and exiting it, without any effect on the running gVim instance.
8
2742
by: OHM | last post by:
Hi peoples, I dont know where to place this question, so as I know you guys are all resourceful experts, I thought I would try here. I am writing some code which will be run usingh remote desktop ( On windows 2003 Server ), I need to determine in the code the machine name and username. If I use GetUsername and GetMachineName, it simply gives me the name of the currently logged on user ( at the Server ) and the Servers Machine Name.
2
1859
by: Kevin Hodgson | last post by:
Is there any way in a .NET App to detect if it is being run under Terminal Server? I have some functions of my program (like launching emails, and saving files) that need to be handled differently if the user is running it locally, or if they're running under Terminal Server.
2
4083
by: Oenone | last post by:
Is it possible to detect whether my application is running within a Terminal Server session or not? I'd like to automatically switch off some of my graphics rendering under this environment as they can be quite slow to transfer over a terminal server session. The graphics should still be displayed when running directly on a local session. Thanks,
2
3685
by: George Lake | last post by:
Hi, Is there a way to kill a Terminal Server session from vb.net? I have to constantlly access our servers to reset ureser that get hung. I would like to have a web interfave that I can access via my PDA/Phone. It dose not have to be a wab page that does this. I could write to a queque that is read by a windows servrice on the TS server and then reset the user. Thanks. George.
5
2007
by: cityrock | last post by:
Hello friends. It has come time for me to face a dilema i have been thinking about for a long time, but actually doing nothing. Now its time to act. The situation is "simple", and i have just spent hours reading other posts regarding the advantages and disadvantages upgrading my mdb (jet engine) to an sql BE. I am the system engineer, administrator and programmer of our company's database. Our mdb FE is very complex, using hundreds of...
7
3049
by: mike | last post by:
We have numerous Access 97 apps that we run on our Terminal Server, but two apps in particular is giving us a problem. The problem we are running into is when you select a drop down menu, it errors out saying the SQL server cannot be found. This is through the terminal session and when logged on the server locally. If I run the apps on my workstation they work fine. In one of the problem apps, it runs flawless except for a similar...
16
3995
by: =?Utf-8?B?RHdlZWJlcmVsbGE=?= | last post by:
I created an Access 2007 application for my customer. The application is shared by three employees on a server. It maintains a contact list including financial data and social security numbers. Only the office manager generates reports in Access from this client data. Now they want to share this Access application with employees at a remote office. They expect to have a maximum of 30 employees editing the client list in both the...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.