I am trying to call cudppSort to sort a set of keys/values. I'm using the following code to set up the sort algorithm:
CUDPPConfiguration config;
config.op = CUDPP_ADD;
config.datatype = CUDPP_UINT;
config.algorithm = CUDPP_SORT_RADIX;
config.options = CUDPP_OPTION_KEY_VALUE_PAIRS | CUDPP_OPTION_FORWARD | CUDPP_OPTION_EXCLUSIVE;
CUDPPH...
Hi all,
My dll is used by a module which dirtily catch all exceptions and just log it in to a file.
My issue is that there is an access violation in a customer site which is reproducible only on its computer and I want get able this customer to generate a dump file for this issue.
I tried to generate an AV in my dll and generate a dum...
The typical workflow of catching an exception in action is get to the section of code where you suspect the exception of happening, select Debug/Exceptions, check Thrown for Common Language Runtime Exceptions, OK your way out of it, and continue execution.
This is a massive PITA. Is there a shortcut (or a context menu) that can be conf...
I have a Java Tomcat web application built in IntelliJ that calls code in another module called "Stuff". I've attached the source of the relevant code to "Stuff" so I can step into it and hit breakpoints, but I cannot see variables or their values. Watches don't work either. All I get is "Debug info unavailable".
How do I see the deb...
I got quite a few jQuery scripts in my js file, and now I'm experiencing the CPU going through the roof when I open the page in Firefox.
Looking at Firebugs console panel, I see the following error:
too much recursion.
Then it refers to my jquery-1.3.2.min.js file.
How can I discover which jQuery function triggers the CPU spike?
I kn...
There was a question on how to create a macro or keyboard shortcut that will toggle "break when an exception is thrown" without using the GUI.
The accepted answer does that. It's great. I assigned the macro to a toolbar button and now I click away at will.
The only problem with that approach is that I do not know what is the state of ...
I'm working with the EXIF library at http://code.google.com/p/iphone-exif/ and I have come across a real head scratcher of a bug. When I implement the library in a debug build everything works beautifully, but when I compile for ad hoc beta testing the app crashes hard.
I'm getting the following error:
Exception Type: EXC_BAD_ACCES...
we're shipping a shell extension dll (registered with regsvr32).
is there an easy way to get debug output from this dll from another application (so we can send these traces home when something is broken)?
any ideas? what's the easiest way to get logdata from the dll to another process?
...
The website is set up locally on my IIS 5.1 on xp.
Application protection is set to low within IIS so the asp is run inside the inetinfo.exe process.
I start debugging , attach to the inetinfo.exe process and refresh the page in the browser so the page reloads and reruns the server side code. Non of the breakpoints get hit. There's no w...
In chapter 5 of "The Practice of Programming" Brian Kernighan and Rob Pike write:
As a personal choice, we tend not to use debuggers beyond getting a stack trace or the value of a variable or two.
Although I have no empirical data on the topic, I suspect that it's likely that many programmers "live" in a debugger when they have on...
private ScriptEngine pe;
private ScriptScope scope;
private void button1_Click(object sender, EventArgs e)
{
pe = Python.CreateEngine();
scope = pe.CreateScope();
pe.Runtime.SetTrace(OnTraceback);
pe.Execute(@"
def square(x):
s = x*x
return s
a = square(2) + (3)
print ""hello world "" + str(a)
", scope);
}
private...
CUDA has an option to compile code in emulation mode, which is supported in the .rules file they provide.
I have C# .NET 3.5 SP1 code that calls a native dll, using DllImport,
the native dll is compiled via VS2008 using nvcc and its function is to transfer memory from and to CUDA and to invoke CUDA kernels.
When the CUDA kernels are co...
Hi
I am not able to create minidump form my process by changing system setting.So my Question is
Will system create a minidump for user process when they crashes
If yes , which setting i need to configure
Or do i have to create minidump programmatically.
How much effective minidumps are while investigating a crash ...
I am aware whether the same question has already been asked (if so please let me know).When i am working on multithreads how can i debug to know which thread causes an abnormal behavior ?
could i need to use permonitor for debugging or any other tool or debugging facilities are available ?
Thanks.
...
I often write code that renders images by writing pixels directly into buffers and I often find it hard to get a good overview of what's really going on. The Memory window in Visual Studio's debugger is somewhat a help, but I'd really love to see the images graphically.
So my question is, does anyone know of a debugging extension that c...
I have a Tomcat installed as a Windows service, and sometimes it hangs when I try to shut it down (through services.msc). I tried attaching to it with a debugger, but I don't seem to be able to understand why it's hanging.
When I try to look at one of the threads by doing "Thread.getThreads()[0]", I get an error from the debugger: "Stac...
I am running a C program in NetBeans (cygwin on windows). Generally for all C programs I have run in the past, while debugging, it stops and shows the line number of segmentation fault. But for this particular program, it does not show the line number and just stops and in the output tab, it shows prog stopped by SIGSEGV. I have tried co...
I'm reading through a open source Rails project code and I see SQL statements in the development log that I can't map to the Rails code, i.e., I have no idea where it is called from. I tried ruby-debug but it seems to be out of sync with the log file output and the code itself, so it hasn't been too useful. Any suggestions on how to debu...
Bugs can be difficult enough to resolve when they're your (or a coworker's) fault. However, we all know that the technology we use to implement our programs is written by infallible people such as ourselves. So it stands to reason that some people have been affected by bugs in the implementation of the tools they used.
So, have you fo...
I've used minidumps on many game projects over the years and they seem to have about a 50% chance of having a valid call stack. What can I do to make them have better call stacks?
I've tried putting the latest dbghelp.dll in the exe directory. That seems to help some.
Is Visual Studio 2008 or 2010 any better? (I'm still on VS 2005).
T...