Tell me more ×
Code Review Stack Exchange is a question and answer site for peer programmer code reviews. It's 100% free, no registration required.

I have key logger that I wrote myself and is a somewhat large piece of VB code that after say 20 minutes stops working. I've tried using Try Catch statements, but no errors are thrown. I can't seem to find an answer to why this program continually stops at what seems to be random points in time. I've tried to ensure that I'm deleting or freeing any file streams. I also use emailing, and it seems to crash there, but I could be interpreting this incorrectly.

My project is on my drop box @ http://dl.dropbox.com/u/22492778/KBHook/KBHook.zip

I know it is unprofessional of me to just dump my code here without any real hints of effort to find the issue on my own. I have, however, combed over this code so many times yet I have found nothing out of place. I apologize for the lack of a professional standpoint, but I'm quite lost in finding an answer.

share|improve this question
I had issues like this once calling a c++ DLL from a vb app. It turned out to be invalid memory allocation and usage issues in the c++ application – dreza May 28 '12 at 20:38
This site is for getting feedback on working code, i.e. for code reviews. It's not for collaborative debugging. (Also we require questions to contain the relevant code instead of just linking to it, but in this case that issue is secondary to be off-topic). – sepp2k Jun 1 '12 at 12:37
@sepp2k I had this question on on SO, and I was instructed to move it here. And the relevant code is the entire project unfortunately. As I said above, I've checked over everything, and nothing is out of place, and even the debugger can't find anything. It used to not do this, I think, but I didn't have source control so that version got lost. – Drise Jun 1 '12 at 13:39
@Drise I'm afraid you were mis-instructed. I'm sorry for the confusion. – sepp2k Jun 1 '12 at 13:43
@sepp2k Do you have an idea where this would be better placed? I'd really like to find out why its not working; its really gotten on my nerves that I can't find anything. – Drise Jun 1 '12 at 13:51
show 1 more comment

closed as off topic by sepp2k Jun 1 '12 at 12:37

Questions on Code Review Stack Exchange are expected to relate to code review request within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

If you run your program in the Visual Studio (or another dev. env.), you can break the execution by clicking the pause icon (Break All) or by hitting Ctrl-Alt-Break. Do this when your program stops working. Maybe you will see that it is caught in an endless loop somewhere.

share|improve this answer
I have. It says, if I can recall correctly, that the stack couldn't be unwound, or there were no debugging symbols loaded.. Its been a while, but I know I've tried that, and it does not provide any useful information. – Drise May 28 '12 at 14:24
Update: The actual information I see when it is no longer operating: No symbols are loaded for any call stack frame. The source code cannot be displayed. – Drise May 28 '12 at 22:57
The error could result from unmanaged code or bad COM-interop or PInvoke calls. If you google for "No symbols are loaded for any call stack frame. The source code cannot be displayed" you will get 36,900 results in 0.08 seconds. – Olivier Jacot-Descombes May 29 '12 at 13:50
@Oliver Its the same page that is displayed if no functions are being called, even when any program is running just fine. If it was an endless loop, as you suggested, it would load and display the proper function / loop. – Drise May 29 '12 at 15:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.