473,561 Members | 3,153 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 1224
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
2553
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...
0
1483
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...
3
1232
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...
4
1216
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
2024
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...
20
4433
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...
7
5450
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...
35
2170
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...
5
14258
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. ...
0
7558
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...
1
7605
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...
0
7924
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...
0
6195
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...
1
5462
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...
0
5177
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...
0
3609
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3591
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
884
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...

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.