how to avoid server busy window in enterprise architect - python-2.7

I have created an addin(Extension) for enterprise architect. The addin basically popup's a dialog(using tkinter of python to show this popup) where i allow the user to select the directory path. now if the user takes more than say 3 seconds, there appears an server busy window, which the user has to click switch to to return to the previous control. Is there any way to avoid this or increase the server busy timeout in EA?. The dialog popup and server busy window appears like below

Well i found the solution, Since EA is an 32bit application, even if you are using 64bit windows. You are expected to install python 32bit.

Related

ShellExecute Fails if Run from Application Launched as Administrator

My C++ application uses ShellExecute to open a PDF file. I'm using Windows 10 Enterprise LTSC (version 1809, OS build 17763.615) to run my application. If my application is launched as Admin (right-click Run as administrator) then it fails to open the PDF file. However, if my application is launched without Admin rights (just double-clicking it) then Adobe (the default PDF reader) is launched successfully and the PDF is displayed correctly.
My application runs normally (with and without Run as admin) on Windows 7 and Windows 10 Pro. This issue just started happening now that we are trying to use Windows 10 Enterprise LTSC.
The actual code from my application is:
ShellExecute(NULL, NULL, full_path.toWideCharPointer(), NULL, NULL, SW_SHOWDEFAULT);
where full_path is for example equal to "C:\\Faxitron\\Docs\\Guide.pdf".
In both cases (admin or not), ShellExecute always returns 42 and GetLastError returns 0. Here is something interesting: when running my application as Admin, the Task Manager shows 2 processes of Adobe Acrobat Reader DC (32 bit) under my application, but the program Adobe is never launched/opened.
Not sure if this is relevant or not, but I'm using the latest version of Adobe Acrobat Reader DC (version 19.012.20034).
Finally, my application requires to be run as Admin (for other functionality to work properly). Is there a way to get ShellExecute to work when running application as administrator?
The reason why ShellExecute cannot launch the PDF viewer from an elevated process, in this case, is because Adobe Reader is preventing it via its Protected Mode. To solve this issue disable protected mode by doing the following:
Open Adobe Reader.
Choose Edit > Preferences...
In the Categories list on the left, select Security (Enhanced).
In the Sandbox Protections section, deselect Enable Protected Mode at startup
Click OK to save the changes.
Close Adobe Reader.
For more information about Protected Mode (and possible vulnerabilities) refer to this link from Adobe.com:
https://www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/protectedmode.html

Android-x86 on VirtualBox restarts whenever an app is closed

I am using Android-x86 6.0 on VirtualBox. Since I have changed the screen resolution using the method described here: https://stackoverflow.com/a/8273560/6110243 Android restarts whenever an open app is exited through the home or back button. This happens for every application, system apps and user apps. I can still use the back button to navigate within an application, but once the back button closes the app it instantly shows the "android" logo and boots back up.
I suspect it might be because my battery level always shows "0%" (and charging) and it somehow triggers a shutdown when an app is closed? But that wouldn't explain why it only started happening after I changed the resolution from the standard resolustion to 600x800x32. I have tried to set the Battery level to something higher, but couldn't find any Information on how to do so.

How to reset windows idle timer through a windows service

I have used the template provided Here, to create a windows service. I would like to use this service to reset the system idle timer to avoid the OS going to sleep mode.
SetThreadExecutionState, seems the be the right way of doing so. However, it appears that this method, does not work when the program is running as a service. I have even tried sending an event with keybd_event function, but it appears that there are some security measures in place (see question No. 12747430), to filter out mouse/keyboard events for non-desktop applications ( Even though 'Allow service to interact with desktop' option, is checked for the service).
So here's the question: How can i reset the system idle timer through a windows service? (should not be dependent on user's desktop and should work on login screen as well)
PS: the OS is windows 7 x64
Thanks in advance

Instance in VC++ application

Am working on VC++ application
Its a background application that runs on background even on PC restart
Am trying to open the application as say - some antivirus like mcafee, which runs on background but if we click on the exe icon it comes up front of the screen
WinExec("application.exe", SW_SHOW);
exit(1);
Does anyone can help me ?
Sounds like your application is a good candidate for a Windows Service. A Service runs in the background with no GUI, starts when Windows starts, can re-start automatically if it fails, etc. For a GUI, you would write a separate application which would attach to the Service via some type of inter-process-communication for the purposes of configuration/control.

QBSDK in Windows 7 (QuickBooks)

I am attempting to get the QBSDK running on my Windows 7 machine. I am trying to run the sample program called EventHandler. It is run in conjunction with the sample EventSubscribe. I have compiled these in Visual Studio 2008. The EventHandler has a option in the File menu called Register Call Back Interface. When I run that it indicates that the COM connection has been created, however when I try to subscribe to an event in the EventSubscribe sample program it gives me the error “The callback application cannot be found from the CLSID or ProgID provided in the subscription request.”
On my Windows 7 machine after I did the Register the Callback Interface I noticed that the Unregister command was not highlighted. I also compiled this on a Windows XP machine with Visual Studio 2008 and I noticed the Unregister was highlighted. I do not have Quickbooks on the Windows XP machine though.
I have tried many things to get this to work… Any idea what is happening?
I am using C++
Thanks,
Jim
This may not directly describe your situation but the concept is similar. Starting with Vista, there were quite a few workarounds with QuickBooks SDK (and other COM-based technology) that required "Run As Administrator" to configure due to Windows UAC restrictions.
From the SDK documentation:
After you subscribe your menu extension events and
register them as documented, you need to run QB
using "Run As Administrator." This only has to be
done ONCE, after running QB as admin once, your
menu items will continue to show up and menu
events will be received by your event handler without
running QB as admin.
The general principle is that even if you are running Windows under an Administrative account, you may need to "Run As Administrator" both the QuickBooks UI, and your application that uses QBSDK, during the configuration process. Once all the registration and configuration is done it should work as a normal user.