473,499 Members | 1,738 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 1584
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
2289
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...
14
1577
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...
8
2712
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...
2
1839
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...
2
4062
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...
2
3673
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...
5
1984
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...
7
3036
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...
16
3966
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. ...
0
7169
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,...
0
7215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6892
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...
0
7385
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...
0
4597
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...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3088
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
294
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...

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.