I have a program and when i finish it (with click on X or in File->Exit), then ocurr an exception and the debugger is on. I want when the program is finished the debugger don't start, and i can get the console prompt again. The program is functioning correctly, only when i finish the program i have problems, so i think that must have an environment variable or an option for avoiding the debugger. Regards Joaqu?n P.D.: Here is the messages when i close the application: wine: Unhandled exception (thread 0009), starting debugger... WineDbg starting on pid 0x8 Unhandled exception: page fault on write access to 0x00000004 in 32-bit code (0x005e3e0e). In 32 bit mode. Register dump: CS:0073 SS:007b DS:007b ES:007b FS:003b GS:0033 EIP:005e3e0e ESP:77a63b68 EBP:77a63b84 EFLAGS:00210202( - 00 - -RI1) EAX:7f5701e0 EBX:00000000 ECX:00000010 EDX:00000000 ESI:7f482e2c EDI:00000004 Stack dump: 0x77a63b68: 7772ab90 77716560 7f482e30 7f570b34 0x77a63b78: 00000000 00000e20 00000010 77730aa0 0x77a63b88: 005dde5a 7f570098 7f482e3c 77b399d0 0x77a63b98: 005c3baa 7f482e30 0042473c 7f482e30 0x77a63ba8: 7f482e40 0053944a 77b28590 00000000 0x77a63bb8: 77a63f20 77bb7a08 0000000a 00000000 Backtrace: =>1 0x005e3e0e in bw600 (+0x1e3e0e) (0x77a63b84) 2 0x005dde5a in bw600 (+0x1dde5a) (0x77730aa0) 3 0x5d8930ec (0x83e58955) 4 0x00000000 (0x00000000) 0x005e3e0e: movl %ebx,0x4(%edx) Wine-dbg>quit -- -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.2.4 (GNU/Linux) mQFCBEFI/gARAwDd2+ojasT3rCyRktSw+Ix3m+yoxSD0NkpMLlunmJxwvn6wKZVl mDw76/Zu9mqDWWeSGdSl+60T7fDLrJZSEB45O9T5jdujj01GFeer7xuiuHBTFw8o CXqD/hzhqYc46ecAoIQQjZ2qZtOWLPRBbegK/nyOIguNAv9QGiKPLBS8o0ksxEUp EfLAExVmu6Zp693uKGf6XrBWNcLriuwRPr1mjy3N/bhMlqc3vcTeUBwxiUuX5h2P NQgB3d2AbJS6oEvhmZL0Bn/8Ij/MSvVrartmCXuw9eSx0aMC/R7Kw9TtUfxFVUGx fQKwoA9BXNElPLcNohbBS/fH87IMMxCJyn+rmTeNCEcUEQ7UgvVCdlzZ8+L4PdlH qGR81nhZVEwPRnSSesLpSHRC1QQVoceBeb7PICr/b2eZiKMX+bQ+Sm9hcXXDrW4g TWFudWVsIEZlcm7DoW5kZXogUXVpbGVzIDxqb2FxdWluQGNhc2FkZWFsYWJhbnph Lm9yZz6IXgQTEQIAHgUCQUj+AAIbAwYLCQgHAwIDFQIDAxYCAQIeAQIXgAAKCRBH 677/q7xL4e15AJwNfSpeaXXMH2EjuKblfeBe51MrUgCcCP5jEnpXrDXLWULIW5yD t6VdHlU=a8BM -----END PGP PUBLIC KEY BLOCK-----