My program is generating a System.ComponentModel.Win32Exception within a try/catch block and the exception is not being caught. The code is very simple:
try { lAFE.MinimumSize = sz1; // lAFE=Label, sz1 = Size } catch (Exception ex) { MessageBox.Show("afe: " + ex.Message); } The program runs through this code block hundreds of times without a problem then suddenly it generates this exception and it is not caught.
What can cause an exception like this not to be caught.
This application uses a lot of memory and the exception always occurs when the memory usage reaches about 305KB.
Any advice would be greatly appreciated.
Exception expart. Only docatch { your stuff }for native exceptions.