Premise Visual Studio 2008 and Minibroker

Motorola Premise

georgejm

Active Member
Hi Everyone,

I'm working on enhancements to some of my Premise modules. I'm also upgrading to Visual Studio 2008 in the process. Unfortunately, I get an error when trying to create a minibroker class object (error 80010105). Searches of the net aren't yielding much help. Has anybody been able to make VS2008 work with minibroker?

Thanks,

-John
 
Well I found the problem. I'm not all that excited by the solution.

It turns out that VISTA by default enforces something called Data Execution Protection (DEP). It's designed to keep the OS from executing code that is stored in an area tagged as Data - normally something a piece of malware (viruses, etc.) would do. Apparently, a piece of Minibroker (when wrapped in a .NET interop assembly) runs in an area tagged as data/ That was causing the application to fail. The only thing I could find is to disable this protection feature in Vista.

1. Open a command prompt as an administrator
2. type bcdedit /set {current} nx AlwaysOff
3. Reboot the machine

The good news is that VS2008 appears to be compatible with the apps I've tested so far.

If anybody has a safer way to do this, I'm all ears ;)

-John
 
Back
Top