Search:
Type: Posts; User: someuser77
Search:
Search took 0.02 seconds.
-
Try setting Visual Studio to break execution when an exception is thrown on all Common Language Runtime Exceptions so when you get one of those exceptions you can examine them.
How to: Break When...
-
Where do you get this output? Can you provide the exception details with the stack trace? Are you running within Visual Studio? If so try to use the 'Copy exception details to the clipboard' option...
-
By 'unprotected read access' you mean that two threads can read the same value, NOT that a thread can read the wrong value, right?
As I understand it reading primitive types (except long on 32 bit)...
-
June 24th, 2011, 04:54 PM
Assuming you are using Visual Studio, try to use the debugger to find out what went wrong or attach the project to a message so we can take a look at the code. You will probably need to test for a...
-
June 24th, 2011, 02:41 AM
If you have the .NET SDK you can use the Strong Name Tool with the -Tp switch:
sn -Tp C:\WINNT\Microsoft.NET\Framework\v2.0.50727\System.dll
If you get a "... does not represent a strongly named...
-
June 24th, 2011, 02:22 AM
I changed the SafeFindHandle in FindClose to IntPtr, looks okay I guess. Thanks TheGreatCthulhu!
public static class Win32FindFile
{
//...
-
June 19th, 2011, 02:42 PM
The SafeHandle example uses the SecurityPermission and the SuppressUnmanagedCodeSecurity so I wonder if I should too.
That depends, if I only override ReleaseHandle and the FindClose signature...
-
June 18th, 2011, 12:19 AM
I'm implementing a SafeFindHandle, not a SafeFileHandle.
I'm doing so because the handle returned by FindFirstFile needs to be closed using FindClose and not the CloseHandle function.
The strange...
-
June 17th, 2011, 02:19 PM
Try the Vector type from Math.NET
-
June 17th, 2011, 01:29 PM
Hey,
It is, look into the Console.ReadLine method.
I think you should split this into two stages, first of all work a way to represent the game board in-memory, maybe as a Multidimensional...
-
June 17th, 2011, 01:11 PM
Hello,
I'm trying to call the Windows API functions FindFirstFile, FindNextFile and FindClose and unlike the 'WINAPI FindFirstFile & FindNextFile problem' thread I'm not using IntPtr but a...
-
April 20th, 2011, 01:36 PM
Use the C# as operator to test if a control is a ComboBox.
foreach (TabPage tab in tabControl1.Controls)
{
foreach (Control control in tab.Controls)
{
ComboBox comboBox = control as...
-
April 19th, 2011, 02:49 AM
What about:
move /y $(TargetFileName) $(TargetName).customextention
-
April 19th, 2011, 02:40 AM
That depends on who's GetHashCode() are you asking?
GetHashCode() is a virtual method that is inherited from System.Object. As such, the System.Object.GetHashCode default implementation cannot...
-
April 8th, 2011, 09:30 PM
RedBully,
If you end the regex with the 'end-of-string' anchor why do you add the negative lookahead for digits?
-
April 8th, 2011, 09:07 PM
I'm not sure why you have 11 threads but you can investigate it using windbg and SOS.
I compiled and executed the code you provided under 32 bit .NET 2.0, attached windbg, loaded SOS and examined...
-
November 14th, 2010, 03:39 PM
I'm not an expert but creating an event in the Client class that will fire when the onConnect method is called, and having MainForm register to the event with the client variable may work.
Something...
-
November 6th, 2010, 07:49 AM
Hi ricky_cpp,
You wrote 'TreeView' in the title so I assume you are using a System.Windows.Forms.TreeNode but the idea should work for other tree types.
If you receive the variables as input one...
-
November 2nd, 2010, 01:47 PM
Hi sko,
It looks like you are trying to write to 'buffer' without allocating it first.
You should first create the string array and then try to write to it. Because you probably do not know the...
-
October 14th, 2010, 03:46 PM
Well, if all the classes are under the same namespace you can use CompileAssemblyFromSource, for multiple files you can use CompileAssemblyFromFile with multiple file names.
-
September 10th, 2010, 03:20 PM
The shared_ptr acts similar to creating a struct that wraps the resource, without all the extra types.
Is there a disadvantage for using shared_ptr? Should I prefer the struct wrap?
-
September 4th, 2010, 12:50 PM
Thank you for your comments.
I used shared_ptr and changed my code from:
LPVOID pFile = GetViewOfFile(fileName);
to:
void ReleaseFileView(LPVOID pFile)
{
-
September 4th, 2010, 02:48 AM
I am writing a small program in C++ that works with a file mapped with MapViewOfFile and as I process the file there are multiple cases where I might encounter an error and the file mapping should be...
-
September 1st, 2010, 01:27 PM
When creating an array to hold reference types like you did you only allocate the space needed to hold 1000 references to 'myName'. Once you have enough space to hold the references to all the...
-
August 19th, 2010, 06:55 PM
Hello 5883,
Is the behavior you described consistent or are there occasions when you do see the exception message box?
Can you post a working part of the code that reproduces the issue?
If so I...
|
Click Here to Expand Forum to Full Width
|