I heard there was this neat new feature called "Control Flow Guard" in VS 2015 and that I should compile all my programs with it. So like a good boyscout I installed VS 2015 Community, but I can't find any info on how to specify it. When I look online the only reference to CFG is with the C/C++ compilers, not C#, which is my dialect.
(In C++ the compiler option is "/guard:cf".)
So my question is: Is CFG applicable to C#?, or implemented but not documented?, or a future feature?
Hi. I have created a WindowsFormsApplication in Visual Studio Community 2015. For this application, I created a setup project using Visual Studio Installer Extension. Setup file works very fine on other systems, but on Windows XP it shows that error like I've been stopped the installation. More precisely:
Error : "The installer was interrupted before application could be installed. You need to restart installer to try again."
I have added all prerequisites, all files that are required, but I think that I missed something..It has anything to do with the fact that applications that were created in vs community 2015 which are deployed with vs installer extension cannot be installed on windows xp? I don't know if it's true, I read that somewhere..
Hi. I have created an WindowsFormsApplication with multiple forms, and in a form I added an ShockwaveFlashObject and i set it a .swf file. The problem is that when I access two or three forms and come back to this form, it shows me this error message:
An unhandled exception of type 'System.AccessViolationException' occurred in Unknown Module.
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I don't really know how to fix this, I just managed to find out that this is the problem.
The ShockwaveFlashObjects was added to toolbox from COM Components.
Unfortunately it is not easy. You will have to do some, or even a lot of, debugging in order to discover where in the application the access violation occurs. The most likely cause is passing a bad reference to some library method, but you would need a detailed stack trace to start investigating.
I don't really know how to make such a deep debugging, because it doesn't show me the line where the error occurs, it just shows me that message when I close the application and that's it..If I remove ShockwaveFlashObjects and AxShockwaveFlashObjects from reference and the item from form, it works perfectly, so that is the issue
Like I said: it's not easy. There is no way that anyone can guess the answer for you. You will have to add some code to your application to get more information about what is going on, until you can narrow it down to the general area where the problem occurs. That is when you can start tracing through with your debugger.
I managed to fix the issue. The problem was that that flash object remains active when you open another form and it must be stopped or disposed. This is the solution, if anybody will get this error in this situation.
Correct you are. But, Eddy's pointing to the fact the code could be "cleaner" if re-factored is spot-on, and, the remedy is simple:
publicvoid Add(string text)
// And, you can compile-time check for type of T is Nullable:
// in the Class' 'ctor
if (default(T) != null)
thrownew InvalidOperationException("requires T to be a nullable type.");
«I want to stay as close to the edge as I can without going over. Out on the edge you see all kinds of things you can't see from the center» Kurt Vonnegut.
Last Visit: 31-Dec-99 18:00 Last Update: 29-Aug-15 19:30