Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / February 2005

Tip: Looking for answers? Try searching our database.

initlocals must be set for verifiable methods with one or more local variables.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ralph.mason@gmail.com - 11 Feb 2005 03:08 GMT
When I use PEVERIFY on a DLL I get the following - This is just a
snippet.

Microsoft (R) .NET Framework PE Verifier  Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

[MD]: .NET Framework Internal error: 0x80131266  [token:0x020000A3]
[IL]: Error: [p:\xx\xx\xx\bin\debug\geobase.net.dll :
xx.xx.xx.xx::GetQueryRectangle] [offset 0x00000010] [opcode ldloca.s]
initlocals must be set for verifiable methods with one or more local
variables.
[IL]: Error: [p:\xx\xx\xx\bin\debug\geobase.net.dll :
xx.xx.xx.MapStyle::GetQueryRectangle] [offset 0x0000001E] [opcode
ldloca.s] initlocals must be set for verifiable methods with one or
more local variables.

<SNIP>
verifiable methods with one or more local variables.
5919 Errors Verifying geobase.net.dll
(1 Warnings)

The DLL is generated using visual studio.  Any Idea what this means?

The Reason I am looking is I am haveing a problem with weird crashes in
unrecreatable places.

Thanks for any help
Mattias Sj?gren - 11 Feb 2005 16:50 GMT
>The DLL is generated using visual studio.  Any Idea what this means?

Which language? If C#, are you using unsafe code?

Mattias

Signature

Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

ralph.mason@gmail.com - 12 Feb 2005 03:04 GMT
It's a C# dll, it uses unsafe code to do interop functions with
unmanaged code.

I have sorted out my weird crashes.  But still peverify gives the above
results (the dll works just fine)

Ralph
Chris Rolon - 12 Feb 2005 10:58 GMT
I believe that Mattias is asking whther you are using the "unsafe" keyword
on methods and writing unsafe code. If you are, that code will not be
verifiable.

Signature

Chris Rolon

> >The DLL is generated using visual studio.  Any Idea what this means?
>
> Which language? If C#, are you using unsafe code?
>
> Mattias

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.