Microsoft Development Environment has encountered a problem and needs to close
hey im getting this error every once in a while when i try to change the anchor of a contorl. Any one know any thing about this??
Re: Microsoft Development Environment has encountered a problem and needs to close
seems to do it only sometimes. even on the same control. will work once but then not the next time.
Re: Microsoft Development Environment has encountered a problem and needs to close
hmm looks like it will let me do it once but then the next time. it dies
Re: Microsoft Development Environment has encountered a problem and needs to close
any one any ideas? its still doing this even after i restart. Or mabey someone knows how i can report this to MS?
Re: Microsoft Development Environment has encountered a problem and needs to close
Are you changing the anchor through the properties window or through code?
Re: Microsoft Development Environment has encountered a problem and needs to close
properties at design time. It seems to be crashing with more than just the anchor though also seems any property i change that is not just text or a number will make it crash.
Re: Microsoft Development Environment has encountered a problem and needs to close
this is the line it shows the error on when i click show debug i dont no if this might somehow help?
7C943345 mov eax,dword ptr [ebp-4]
Re: Microsoft Development Environment has encountered a problem and needs to close
interesting i can press debug and then when the debbuger comes up i just press play and it doesnt crash. Well atleast now i can work.
Re: Microsoft Development Environment has encountered a problem and needs to close
Can you determine if it crashes when changing a particular controls properties or is it all controls props?
Re: Microsoft Development Environment has encountered a problem and needs to close
it crashes no matter what control
Re: Microsoft Development Environment has encountered a problem and needs to close
also i belive it has something to do with a user contorl i have i was doing some testing and any project that uses that user control will act like this
Re: Microsoft Development Environment has encountered a problem and needs to close
Ah, so it has a common link between projects? If you create a New project without your usercontrol, it doesnt crash?
1 Attachment(s)
Re: Microsoft Development Environment has encountered a problem and needs to close
yes so i guess that means theres some kind of problem in this user control??
ill post it. see if it has the same effect with you.
Re: Microsoft Development Environment has encountered a problem and needs to close
Just checking things out for a few minutes, but if I get side tracked testing this for you tomorrow, dont hesitate to PM me to remind me. ;)
Re: Microsoft Development Environment has encountered a problem and needs to close
First thing I noticed is that you have absolutly no Error handling at all. You should add some Try Catch blocks.
Second a different grouping of the Anchor properties.
VB Code:
CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
'
'Try a different grouping
CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
Re: Microsoft Development Environment has encountered a problem and needs to close
that code is in the Windows Form Designer generated code. Are you saying that it generated bad code, and thats whats causing the errors?
Re: Microsoft Development Environment has encountered a problem and needs to close
I'm not too sure since I wasnt able to add the ctl to a test project. :(
But error handling will help to determine what area is the source
of the offending code.