473,797 Members | 2,934 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Application goes down with out any wornin.

TPI

I wrote application wich i working on IntPtr.
Whole thing is using Marshal.ReadInt 32 and Marshal.WriteIn t32.
And sometimes the application shuts down with out any wornings and
exceptions.
With out worninigs and exceptions I do not know where to look up.
I need help with this problem.

Dec 5 '05 #1
6 1234
Hi,

Have you checked the event log?

Why are you using p/invoke ?

what about some tracing?, can you localize the problem, maybe write info to
a file to show the progress so you could find where the problem is.

without more info it's almost impossible to help you

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"TPI" <rt**@el.com> wrote in message
news:dn******** **@atlantis.new s.tpi.pl...

I wrote application wich i working on IntPtr.
Whole thing is using Marshal.ReadInt 32 and Marshal.WriteIn t32.
And sometimes the application shuts down with out any wornings and
exceptions.
With out worninigs and exceptions I do not know where to look up.
I need help with this problem.

Dec 5 '05 #2
TPI

This is recurrence object, witch i doing some calculations on first one then
is going do the secend one and to the last one then
start again. Whole project is taking IntPtr from the other aplication
(.NET).
Every thing there is recurrency even methodes call it's selef recurrency.

parent-object-child

void method(object)
{
do something;

if(object.child != null)
{
method(object.c hild);
}
else
{
call evend end();
}
}

This is how this works.

And I do not know how to checked the event log or do some tracing.
I've never done this before.
Would you tell me what to do?
Użytkownik "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT
dot.state.fl.us > napisał w wiadomości
news:eU******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi,

Have you checked the event log?

Why are you using p/invoke ?

what about some tracing?, can you localize the problem, maybe write info to a file to show the progress so you could find where the problem is.

without more info it's almost impossible to help you

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"TPI" <rt**@el.com> wrote in message
news:dn******** **@atlantis.new s.tpi.pl...

I wrote application wich i working on IntPtr.
Whole thing is using Marshal.ReadInt 32 and Marshal.WriteIn t32.
And sometimes the application shuts down with out any wornings and
exceptions.
With out worninigs and exceptions I do not know where to look up.
I need help with this problem.


Dec 6 '05 #3
Hi,

Are you sure all your recursive methods finish correctly? maybe you have
an infinite loop somewhere

Apart from that, d this ( if it does makes sense ) take a sample of the
data you are getting from the other app and use it internally, do not use
the external app

Did you tried to debug it?

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"TPI" <rt**@el.com> wrote in message
news:dn******** **@nemesis.news .tpi.pl...

This is recurrence object, witch i doing some calculations on first one
then
is going do the secend one and to the last one then
start again. Whole project is taking IntPtr from the other aplication
(.NET).
Every thing there is recurrency even methodes call it's selef recurrency.

parent-object-child

void method(object)
{
do something;

if(object.child != null)
{
method(object.c hild);
}
else
{
call evend end();
}
}

This is how this works.

And I do not know how to checked the event log or do some tracing.
I've never done this before.
Would you tell me what to do?
Użytkownik "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT
dot.state.fl.us > napisał w wiadomości
news:eU******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi,

Have you checked the event log?

Why are you using p/invoke ?

what about some tracing?, can you localize the problem, maybe write info

to
a file to show the progress so you could find where the problem is.

without more info it's almost impossible to help you

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"TPI" <rt**@el.com> wrote in message
news:dn******** **@atlantis.new s.tpi.pl...
>
> I wrote application wich i working on IntPtr.
> Whole thing is using Marshal.ReadInt 32 and Marshal.WriteIn t32.
> And sometimes the application shuts down with out any wornings and
> exceptions.
> With out worninigs and exceptions I do not know where to look up.
> I need help with this problem.
>
>
>



Dec 6 '05 #4
TPI

Hi

I put in to main method try block and so far i working with out any
exceptions.
It is working slower but still working. I lost about 200 ms on one cykl.
In try block is working over a day with out any memory increment, and I
think that it's going to work.

With out that block went down sometimes after tree hours - so debugging is
impassable.
Ones I had an infinite loop, but also had an exception.

So fare is working - thaks.
Robert Janda.

Użytkownik "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT
dot.state.fl.us > napisał w wiadomości
news:uJ******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi,

Are you sure all your recursive methods finish correctly? maybe you have
an infinite loop somewhere

Apart from that, d this ( if it does makes sense ) take a sample of the
data you are getting from the other app and use it internally, do not use
the external app

Did you tried to debug it?

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"TPI" <rt**@el.com> wrote in message
news:dn******** **@nemesis.news .tpi.pl...

This is recurrence object, witch i doing some calculations on first one
then
is going do the secend one and to the last one then
start again. Whole project is taking IntPtr from the other aplication
(.NET).
Every thing there is recurrency even methodes call it's selef recurrency.
parent-object-child

void method(object)
{
do something;

if(object.child != null)
{
method(object.c hild);
}
else
{
call evend end();
}
}

This is how this works.

And I do not know how to checked the event log or do some tracing.
I've never done this before.
Would you tell me what to do?
Użytkownik "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT
dot.state.fl.us > napisał w wiadomości
news:eU******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi,

Have you checked the event log?

Why are you using p/invoke ?

what about some tracing?, can you localize the problem, maybe write
info to
a file to show the progress so you could find where the problem is.

without more info it's almost impossible to help you

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"TPI" <rt**@el.com> wrote in message
news:dn******** **@atlantis.new s.tpi.pl...
>
> I wrote application wich i working on IntPtr.
> Whole thing is using Marshal.ReadInt 32 and Marshal.WriteIn t32.
> And sometimes the application shuts down with out any wornings and
> exceptions.
> With out worninigs and exceptions I do not know where to look up.
> I need help with this problem.
>
>
>



Dec 7 '05 #5
Hi ,

I bet you solve nothing, you are just catching the exception,
do this:
1- use a logger to write to the event viewer any exception you are getting
(below I send you a class you can use )
write Exception.Messa ge and Exception.Stack Trace

2- Hook AppDomain.Unhan dledException and Application.Thr eadException , do
the above logging

The log wrapper:
public class Logger
{
private static System.Diagnost ics.EventLog eventLog1;

static public void CreateLog( string msg, EventLogEntryTy pe level)
{
eventLog1.Write Entry( msg, level);
}
static Logger()
{
//
// TODO: Add constructor logic here
//
eventLog1 = new System.Diagnost ics.EventLog();
((System.Compon entModel.ISuppo rtInitialize)(e ventLog1)).Begi nInit();
//
// eventLog1
//
eventLog1.Log = "Applicatio n";
eventLog1.Sourc e = "LaceUP Order Dispatcher";

((System.Compon entModel.ISuppo rtInitialize)(e ventLog1)).EndI nit();

}
}

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"TPI" <rt**@el.com> wrote in message
news:dn******** **@nemesis.news .tpi.pl...

Hi

I put in to main method try block and so far i working with out any
exceptions.
It is working slower but still working. I lost about 200 ms on one cykl.
In try block is working over a day with out any memory increment, and I
think that it's going to work.

With out that block went down sometimes after tree hours - so debugging is
impassable.
Ones I had an infinite loop, but also had an exception.

So fare is working - thaks.
Robert Janda.

Użytkownik "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT
dot.state.fl.us > napisał w wiadomości
news:uJ******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi,

Are you sure all your recursive methods finish correctly? maybe you
have
an infinite loop somewhere

Apart from that, d this ( if it does makes sense ) take a sample of the
data you are getting from the other app and use it internally, do not use
the external app

Did you tried to debug it?

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"TPI" <rt**@el.com> wrote in message
news:dn******** **@nemesis.news .tpi.pl...
>
> This is recurrence object, witch i doing some calculations on first one
> then
> is going do the secend one and to the last one then
> start again. Whole project is taking IntPtr from the other aplication
> (.NET).
> Every thing there is recurrency even methodes call it's selef recurrency. >
> parent-object-child
>
> void method(object)
> {
> do something;
>
> if(object.child != null)
> {
> method(object.c hild);
> }
> else
> {
> call evend end();
> }
> }
>
> This is how this works.
>
> And I do not know how to checked the event log or do some tracing.
> I've never done this before.
> Would you tell me what to do?
>
>
> Użytkownik "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT
> dot.state.fl.us > napisał w wiadomości
> news:eU******** ********@TK2MSF TNGP11.phx.gbl. ..
>> Hi,
>>
>> Have you checked the event log?
>>
>> Why are you using p/invoke ?
>>
>> what about some tracing?, can you localize the problem, maybe write info > to
>> a file to show the progress so you could find where the problem is.
>>
>> without more info it's almost impossible to help you
>>
>> cheers,
>>
>> --
>> Ignacio Machin,
>> ignacio.machin AT dot.state.fl.us
>> Florida Department Of Transportation
>>
>>
>>
>> "TPI" <rt**@el.com> wrote in message
>> news:dn******** **@atlantis.new s.tpi.pl...
>> >
>> > I wrote application wich i working on IntPtr.
>> > Whole thing is using Marshal.ReadInt 32 and Marshal.WriteIn t32.
>> > And sometimes the application shuts down with out any wornings and
>> > exceptions.
>> > With out worninigs and exceptions I do not know where to look up.
>> > I need help with this problem.
>> >
>> >
>> >
>>
>>
>
>



Dec 7 '05 #6
TPI
I'll try it?
Thanks.

Użytkownik "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT
dot.state.fl.us > napisał w wiadomości
news:Os******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi ,

I bet you solve nothing, you are just catching the exception,
do this:
1- use a logger to write to the event viewer any exception you are getting
(below I send you a class you can use )
write Exception.Messa ge and Exception.Stack Trace

2- Hook AppDomain.Unhan dledException and Application.Thr eadException , do
the above logging

The log wrapper:
public class Logger
{
private static System.Diagnost ics.EventLog eventLog1;

static public void CreateLog( string msg, EventLogEntryTy pe level)
{
eventLog1.Write Entry( msg, level);
}
static Logger()
{
//
// TODO: Add constructor logic here
//
eventLog1 = new System.Diagnost ics.EventLog();
((System.Compon entModel.ISuppo rtInitialize)(e ventLog1)).Begi nInit();
//
// eventLog1
//
eventLog1.Log = "Applicatio n";
eventLog1.Sourc e = "LaceUP Order Dispatcher";

((System.Compon entModel.ISuppo rtInitialize)(e ventLog1)).EndI nit();

}
}

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"TPI" <rt**@el.com> wrote in message
news:dn******** **@nemesis.news .tpi.pl...

Hi

I put in to main method try block and so far i working with out any
exceptions.
It is working slower but still working. I lost about 200 ms on one cykl.
In try block is working over a day with out any memory increment, and I
think that it's going to work.

With out that block went down sometimes after tree hours - so debugging is impassable.
Ones I had an infinite loop, but also had an exception.

So fare is working - thaks.
Robert Janda.

Użytkownik "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT
dot.state.fl.us > napisał w wiadomości
news:uJ******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi,

Are you sure all your recursive methods finish correctly? maybe you
have
an infinite loop somewhere

Apart from that, d this ( if it does makes sense ) take a sample of the data you are getting from the other app and use it internally, do not use the external app

Did you tried to debug it?

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"TPI" <rt**@el.com> wrote in message
news:dn******** **@nemesis.news .tpi.pl...
>
> This is recurrence object, witch i doing some calculations on first one > then
> is going do the secend one and to the last one then
> start again. Whole project is taking IntPtr from the other aplication
> (.NET).
> Every thing there is recurrency even methodes call it's selef

recurrency.
>
> parent-object-child
>
> void method(object)
> {
> do something;
>
> if(object.child != null)
> {
> method(object.c hild);
> }
> else
> {
> call evend end();
> }
> }
>
> This is how this works.
>
> And I do not know how to checked the event log or do some tracing.
> I've never done this before.
> Would you tell me what to do?
>
>
> Użytkownik "Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT
> dot.state.fl.us > napisał w wiadomości
> news:eU******** ********@TK2MSF TNGP11.phx.gbl. ..
>> Hi,
>>
>> Have you checked the event log?
>>
>> Why are you using p/invoke ?
>>
>> what about some tracing?, can you localize the problem, maybe write

info
> to
>> a file to show the progress so you could find where the problem is.
>>
>> without more info it's almost impossible to help you
>>
>> cheers,
>>
>> --
>> Ignacio Machin,
>> ignacio.machin AT dot.state.fl.us
>> Florida Department Of Transportation
>>
>>
>>
>> "TPI" <rt**@el.com> wrote in message
>> news:dn******** **@atlantis.new s.tpi.pl...
>> >
>> > I wrote application wich i working on IntPtr.
>> > Whole thing is using Marshal.ReadInt 32 and Marshal.WriteIn t32.
>> > And sometimes the application shuts down with out any wornings and
>> > exceptions.
>> > With out worninigs and exceptions I do not know where to look up.
>> > I need help with this problem.
>> >
>> >
>> >
>>
>>
>
>



Dec 8 '05 #7

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

Similar topics

5
2575
by: Matt | last post by:
I think this is the basic concept in ASP server-side development. My boss told me web application is NOT client-server application. I argued with him because browser is the client, and the server code put in server. Then web application should be a client-server application. My understanding is that a web application is an application that runs on a browser. But client-server application is not necessary a web application. Please...
0
1514
by: pillars | last post by:
I have been developing an application in Windows CE.Net using the .Net Compact Framework and C#. Data is saved to a local Sql Server CE database and then transferred wirelessly to a central server. The device has to open a connection every 5 minutes, transfer all records and then disconnect. I have been running tests to verify the capacity of the database, if, for example, the network goes down and transfers cannot be made. I have...
3
1240
by: Pascal Frey | last post by:
Hi, I just wrote a small simple C# application with a small gui. I was testing the application continous on my development system. Now i tried to let it run on another system but it doesn't. On my system, i start the appl.exe file and the gui appears. there are 4 threads running as the taskmanager shows me. then i click on the start button and the application starts reading data from a mysql database. the thread count is going up to 5...
4
1228
by: M?rten O | last post by:
Hello! I have a problem with managed C++ and the Application class I want to use Application::CommonAppDataPath but the only answer I get is "D:\Documents and Settings\All Users\Application Data\\\1.0.0.0" I have tried changed the items (alredy present) in assemblyinfo.cpp but that doesn't have any effect.
3
2039
by: Jeff Greenland | last post by:
Hello everyone, I am having problems with Timers in a web application. They just seem to stop running after 15 minutes or so. My web application is set up like this: When a user hits a page in the site, that page (.aspx) instantiates a compiled class (.DLL). The instantiation process creates a Timer that runs in the background to perform tasks every so often (such as notifying clients
20
4499
by: J-T | last post by:
We are working on an asp.net application which is a 3-tier application.I was aksed to create a component which monitors a folder and gets the file and pass them to a class library in our business logic layer(so far so good and easy).I initialize my class which is using a FileSystemWatcher in my Global.asax and everything works fine.I have found FileSystemWatcher class not very reliable and sometimes it behavies unexpectedly.I'm afriad that...
7
5472
by: vinthan | last post by:
hi, I am new to python. I have to write test cases in python. An application is open in the desk top ( application writen in .Net) I have to write code to get focuse the application and click on the link which in the one side and it will load the map on the other and I have to check map is loaded. Any one tell me how do I use Dispatch or any other method to write a code.
35
2220
by: salad | last post by:
I have an application written in MS-Access. It is a complete application that manages the day-to-day operations of a business. The program is nearly ready to be used in other customer sites. I am wondering if any of you have advice on supporting an application. Since it has never had any outside exposure, what I don't want is to make a bunch of sales and not be able to support the issues that arise. I believe as kinks are worked out...
5
14276
by: Gav | last post by:
I'm writing a windows application (using C# VS 2005 Pro) to access a MS SQL database and although it is working fine (up to now) I'm not sure I'm going about it in the best way. Can anybody point me to any good examples online that i can look at, found loads of web applications but struggling to find a good windows application example. thanks Gav
0
10468
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
10205
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
10021
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
9063
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7559
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6802
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
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4131
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
3748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.