c# - Application sometimes crashes when opening a dialog on only one machine -
so kind of weird error. on 1 machine 1 of our customers (windows xp sp3) our program crashes when trying open filter dialog via showdialog().
what happens: user works expected he/she nothing unnormal or wrong , he/she is/was tested on several machines (ranging win xp 32 bit win 7 64 bit).
now, after time he/she want's use filter dialog (which he/she did @ point dozen times) , application crashes. wonderful "$applicationname caused problem , has terminated" message windows xp, beneath can see filter dialog, partially build (meaning: can see window, scroll bar , transparent 'holes' text controls/labels should be.
in windows eventviewer can see entry
event id: 1000 source: .net runtime 4.0 error re (maybe stands behind , says 'reporting'?!)
faulting application $applicationname.exe, version $versionnumber, stamp $somerandomnumbers, faulting module ntdll.dll, version 5.1.2600.6055, stamp 4d00f27b, debug?0, fault address 0x00446da
now, weirds me out: position dialog opened via showdialog, embedded in 2(!) try...catch blocks. how possible application crash? there aren't logfileentries (something done in every catch block we've in program , it's first thing do) crash.
i uninstalled application , .net 4 machine, rebooted installed again, installed windows updates , rebooted again. same result.
*edit noticed something: when close message microsoft, additional entry in eventviewer created:
the process terminated due unhandled exception i guess that's meaning in english, since original message in language had translate
exceptioncode: c015000f, address 7c9546da address same
as @hans said, it's caused incorrect use of de/activateactctx winapi functions.
i met same problem when write vb app. using activex contrl(mfc). place dialog variant in control class definition. below:
cmydlg dlg;
so when dialog initilized not in control. , made same issue you. when control should displayed, error appears.
Comments
Post a Comment