Jump to content

It borthers me


Recommended Posts

Hi,

Following error messagebox bothers me. (refer to the following screenshot)

So, I click the debug button, then error is occured in following line(marked red color).

public SingleInstanceManager(string moniker)

{

int error = NativeConstants.ERROR_SUCCESS;

if (moniker.IndexOf('\\') != -1)

{

throw new ArgumentException("moniker must not have a backslash character");

}

this.mappingName = "Local\\" + moniker;

this.hFileMapping = SafeNativeMethods.CreateFileMappingW(

NativeConstants.INVALID_HANDLE_VALUE,

IntPtr.Zero,

NativeConstants.PAGE_READWRITE | NativeConstants.SEC_COMMIT,

0,

mappingSize,

mappingName);

error = Marshal.GetLastWin32Error();

if (this.hFileMapping == IntPtr.Zero)

{

throw new Win32Exception(error, "CreateFileMappingW() returned NULL (" + error.ToString() + ")"); }

this.isFirstInstance = (error != NativeConstants.ERROR_ALREADY_EXISTS);

}

My environment are following:

OS : Windows XP SP2

visual studio 2008

source code: 3.22

In my pc, Paint.net 3.22 (binary) is installed and works well. Only source code doesn't work well.

At first, an error (for several missing files: I posted before) occured. but I copied the missing files from product version(3.22) to Debug directory in open source code(also 3.22), then everything seemed to be ok.

But unfortunately, above error occured.(is called "Don't send error" ).

It really borthers me!

Please help me.

Thanks.

13896_96a5b5e80cb6f52155c9d1e73ab88656

Link to comment
Share on other sites

You need to read the rules - #6, specifically, will tell you why I'm locking this.

Thread Locked

 

The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.
Amy: But how did it end up in there?
The Doctor: You know fairy tales. A good wizard tricked it.
River Song: I hate good wizards in fairy tales; they always turn out to be him.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...