That is pretty much what I would expect. If you don't have the exception handler cause an program exit, then the system has no choice except to cause an abnormal termination - which is what your message shows.
Think about it: the exception is thrown from the Main method. The application cannot continue under any circumstances without restarting the whole program.
In Winforms et al., it is multithreaded, so a single thread can be terminated without necessarily killing the whole app - but your console app is a single thread. If it can't continue the only running thread, it can't continue the application.
In GUI apps, the Main function is executed in a thread, which fires off other threads to handle the UI for each form. They can be terminated without affecting the Main thread, since all it is doing is waiting for the others to die anyway!
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
Its the result of event viewver
Faulting application name: Mydynamic.exe, version: 22.214.171.124, time stamp: 0x507ac6d7
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17514, time stamp: 0x4ce7bafa
Exception code: 0xe0434352
Fault offset: 0x0000b727
Faulting process id: 0x4b4
Faulting application start time: 0x01cdaa154403b39d
Faulting application path: c:\users\apple\documents\visual studio 2010\Projects\Mydynamic\Mydynamic\bin\Debug\Mydynamic.exe
Faulting module path: F:\Windows\syswow64\KERNELBASE.dll
Report Id: 81b9c3ff-1608-11e2-bc0d-005056c00008
but I dont know why the path is c:\ all my programs are on f:\
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
The problem is, when I run a method from other form (example: From form1 I call form2.mymethod) , it show me error in MessageBoxManager.cs
hHook = SetWindowsHookEx(WH_CALLWNDPROCRET, hookProc, IntPtr.Zero, AppDomain.GetCurrentThreadId());
Those from google are probably the same ones you or anyone here post, i just can make them work i think. Whenever i want to run a code for recognizing camera, an error pops about the P/invoke. Give me 3 possible solutions, but non of them of my understanding.
OpenCV's DLL files exist in the same directory as the executable file....
Visual C++ Redistributable Package has been installed....
The target platform(x86/x64) of OpenCV's DLL files and OpenCvSharp is the same as your project's....
Tehn you don't need MDI as it stands for MULTIPLE Document Interface. A single editor that let's you edit mulitple documents of the same type. That was it's intended design and you would be trying to make it do something it's NOT designed to do.
You don't need MDI for this and from the sounds of it, you don't even need a Windows Forms app.
I have to draw a 3D terain (polygon) using openGL and Tao Framework in C#. The problem is, i have never done such things before and i dont know how to start. I have my KML file and i wonder, how to read data or use coordinates, to draw a 3D terain of the path i've walked (or drove with a car).
Can anyoone give me any advice or help how to start making the 3D object of it?
The point of the program is, to create a 3D polygon which can rotate around, so i could see in 3D where i walked, if u can understand what i mean with that.
private System.Windows.Forms.Timer TrzTimer = new System.Windows.Forms.Timer();
this.TrzTimer.Tick += new System.EventHandler(this.TrzTimer_Tick);
TrzTimer.Interval = 1000;
TrzTimer.Enabled = true;
privatevoid TrzTimer_Tick(object sender, EventArgs e)
// do something when time elapses
//An object reference is required for the non-static field, method, or property
this is the error message that i get for calling TrzInitialize() during building this
DLL program. Consider that TrzInitialize() must be non static because of timer routine definition and TrzStart() must be static to be known for main program. thanks
You cannot call TrzInitialize from static method.
Its common sense. Since Invoke.TrzStart is static and you have 10 instances if Invoke class which of them you want to use to call TrzInitialize?
You have to explicilty set that instance like