DragonQ
Member
- Joined
- Nov 2, 2008
- Messages
- 9
- Programming Experience
- Beginner
I've used the Enhanced Community Edition of Dotfuscator on two of my programs that work together. At first, neither worked but then I realised that using System.Reflection was causing problems with one of the programs and I've now fixed that.
However, I have no idea where to start looking for problems in my other program. It uses a WQLEventQuery to watch for stopping processes and it works fine when it hasn't been put through Dotfuscator. As you can see, I've put in a debug message box so I know this code is being run through. However, when Dotfuscated, no message boxes ever show when I end a process, so presumably this code is not running:
There is an additional piece of code that checks if the closing program matches a specific program in a list, and if it does, my program should exit. But when Dotfuscated, it just crashes whenever the closing program matches a program on the list. There's no error message, it's just a generic Windows fatal error. If I choose to debug it, VS 2008 opens, says "cannot find the file specified" and closes again - I have no idea if this is to do with my program or VS 2008.
So....where do I start trying to fix this problem? I can't figure out how to get more information about the problem, let alone fix it. Apart from System.Reflection, are there any other things that I might be using that are known not to work with Dotfuscator?
Thanks for any help.
However, I have no idea where to start looking for problems in my other program. It uses a WQLEventQuery to watch for stopping processes and it works fine when it hasn't been put through Dotfuscator. As you can see, I've put in a debug message box so I know this code is being run through. However, when Dotfuscated, no message boxes ever show when I end a process, so presumably this code is not running:
VB.NET:
Dim WQLEventQuery As New WqlEventQuery("__InstanceDeletionEvent", New TimeSpan(0, 0, 0, 1, 0), "TargetInstance ISA 'Win32_Process'")
Dim Watcher As New ManagementEventWatcher(WQLEventQuery)
Dim EventObject As ManagementBaseObject = Watcher.WaitForNextEvent()
MessageBox.Show("-11")
Watcher.Stop()
Watcher.Dispose()
EventObject.Dispose()
There is an additional piece of code that checks if the closing program matches a specific program in a list, and if it does, my program should exit. But when Dotfuscated, it just crashes whenever the closing program matches a program on the list. There's no error message, it's just a generic Windows fatal error. If I choose to debug it, VS 2008 opens, says "cannot find the file specified" and closes again - I have no idea if this is to do with my program or VS 2008.
So....where do I start trying to fix this problem? I can't figure out how to get more information about the problem, let alone fix it. Apart from System.Reflection, are there any other things that I might be using that are known not to work with Dotfuscator?
Thanks for any help.