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. 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.
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.
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. > > >
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. > > >
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. >> > >> > >> > >> >> > >
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. >> > >> > >> > >> >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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.
|
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
| |
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...
|
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.
|
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...
|
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
|
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...
|
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,...
| |
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...
|
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 projectplanning, coding, testing, and deploymentwithout 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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |