Kertokaapas aloittelijalle mikä aiheuttaa tälläisen ilmoituksen. Kyseessä on tietokantaa käyttävä ohjelma, jolla voi selata, lisätä ja poistaa tuotteita. tai olisi jos toimisi prkl.....C# tehty.
Common Language Runtime Debugging Services
---------------------------
Application has generated an exception that could not be handled.
Process id=0xd94 (3476), Thread id=0xb20 (2848).
Click OK to terminate the application.
Click CANCEL to debug the application.
---------------------------
OK Peruuta
---------------------------
---------------------------
xxxxxx.exe - No debugger found.
---------------------------
Registered JIT debugger is not available. An attempt to launch a JIT debugger with the following command resulted in an error code of 0x2 (2). Please check computer settings.
cordbg.exe !a 0xd94
Click on Retry to have the process wait while attaching a debugger manually.
Click on Cancel to abort the JIT debug request.
---------------------------
Yritä uudelle Peruuta
---------------------------
Common Language Runtime Debugging Services
---------------------------
Application has generated an exception that could not be handled.
Process id=0xd94 (3476), Thread id=0xb20 (2848).
Click OK to terminate the application.
Click CANCEL to debug the application.
---------------------------
OK Peruuta
---------------------------
---------------------------
xxxxxx.exe - No debugger found.
---------------------------
Registered JIT debugger is not available. An attempt to launch a JIT debugger with the following command resulted in an error code of 0x2 (2). Please check computer settings.
cordbg.exe !a 0xd94
Click on Retry to have the process wait while attaching a debugger manually.
Click on Cancel to abort the JIT debug request.
---------------------------
Yritä uudelle Peruuta
---------------------------
Vastaukset 2
Vanhimmat
käytätkö ohjelmassasi minkäänlaista virheiden hallintaa? Luulisi kääntäjän ainakin vaativan jotain virheiden kiinniottoa.
Tunget koodisi try&catch lohkojen sisään ja sitten cathissa tulostat jotain siitä virheestä konsoliin. Silleen ne virheet sais kiinni.
try
{
____muodosta yhteys kantaan...
____hae jotain kannasta.....
____blaablaalbaa
}
catch ( Exception e )
{
Console.WriteLine ( e ) ;
}
http://www.c-sharpcorner.com/Articles/ExceptionHandlingInCSKS004.asp
Jos silläkään ei meinaa löytyä ja virhe ei kerro mitään järkevää, niin tulosta konsoliin vaikka jokaisen rivin jälkeen jotain. Sitten konsolista näkee, että minkä rivin jälkeen napsahti.
haku tietokantaan on täsmälleen oikein. Tarkista että tietokanta on yhdistettynä ohjelmaan. Mutta ennen kaikkea tuli mieleen että tietokannasta haussa on jotain pielessä. Kun ohjelma kerran muuten toimii.