We face an Issue with the Creation of a "Tray" (and very often, also JumpLists/UserTaks) on Windows with Electron 6-9 and Windows Version 1809.
Basically, they are not created at all automatically. The App triggers a Command to build the Tray/Tasks, but this seems to be ignored (or at least, there is no Error shown), the result is even "ok". But - Windows does not show the Tray / the JumpLists/UserTasks.
Nevertheless, if I open Dev Tools and trigger the Command manually, the Tray immediately appears. In 100% of all Cases on all Windows Versions, we could test on.
We also tried to delay the automatic Creation of the Tray by 5-30 Seconds, but this does not seem to help.
So basically, the main Window triggers an Event, which is sent via ContextBridge (Electron 9) and ipcRenderer.invoke() to ipcMain. This works fine and should not be an Issue - all other Commands work perfectly fine too and the Command is executed.
ipcMain.handle('ipc-cmd',async(event,params)=>{... initTray();}
The initTray Function:
let tray=new Tray(path.join(__dirname,'assets/icon.ico'));
let trayMenu=Menu.buildFromTemplate([...]);
tray.setTooltip(...);
tray.setContextMenu(trayMenu);
tray.on('click',()=>{
win.isVisible()?win.hide():win.show();
});
This should not be any Issue, as its basically standard.
Are there any Circumstances, that can "block" the Creation of the Tray? Is there any Kind of Timing Issue or Reasons, why Windows wont show it? The Creation of the Dock (on MacOS, same Principle) always works fine.
Thanks.
Related
First time debugging from PC to Mobile Phone work fine, when try again get error.
Any solution how fix this when try more debugging.
Add -debugport=54321 to Run->Parameters Parameters. By the way, the "inconsistent certificates" message is because the apk on the device was compiled with a different version of Delphi than the one you are using right now. You will have to uninstall it from the phone first. You can also use -cleaninstall in the Run->Parameters Parameters field.
There is no easy and fast solution.
You may need to:
Restart IDE
Kill adb.exe
Restart Windows
Restart device
Sometimes you will be able to debug again after doing only some of the above steps, however often you will need to do all of them.
Since every try takes plenty of time, I found out that complete Windows restart + device restart is the fastest thing to do.
With Delphi 10.3.3, it is enough to restart the device. After restarting the device problem goes away. It seems after the cancelation of code execution of the project debugged, the debugging service on Android continues to run. At this point, when new debugging started, IDE tries to run a new service with the same id of previous running service.
When I'm editing a single file in Xcode, it takes several seconds to any kind of syntax error to show up. Sometimes errors don't even show up until I go to the menu and build manually. It makes development awfully slow as I have to constantly wait to check if I miswrote something...
I don't think it's because of the machine, though its a Macbook Air, but I do Android development on this machine too, and Android Studio can show me syntax errors just fine.
Is there any way to make this part faster? Or I need a better machine?
I'm developing an application on two different machines (home and work) and while the home one seems to run just fine, the work one is, for lack of a better word, possessed. It has been exhibiting the following issues:
When loading the application, it will start at the simulator's main screen instead of starting the application at random intervals. You can start the application and have it work fine, then close the simulator, reload, and have the same codebase not load.
Going to applications doesn't show the application itself, in fact it never does.
Trying to load the applications cod file (File->load java program) never works. Tried the steps in this thread, with unreliable results.
Extremely small changes, such as modifying the value of a width variable by one, commenting out a function such as makeMenu or adding a button will cause code to no longer work, with no errors shown by the IDE.
Using clear.bat with sometimes work, sometimes not. Same with manually removing all files with the name of the project.
reinstalling the eclipse environment and the blackberry plugin did nothing more then burn off an hour.
having "load on startup" in the blackberry_app_descriptor.xml file is set.
Both systems are using Eclipse 3.5.1, BB plugin for eclipse 1.1 beta, Java 4.5 with the 8300 simulator. THe only difference that I am seeing is the operating system between the two systems. The work one being XP Sp3, home being vista. THe vista one isn't perfect, but I can test variable changes without flipping a coin to see if the app will even load or not.
I've tried the solutions that were similar on this forum, such as this one, but it looked to be that those solutions are dated as none of the options for the steps existed in my eclipse install.
So has anyone ran into such baffling behavior, and can it be fixed? Anything that I might have missed that could be tried?
I've been seeing this behavior with the new 1.1 plugin, the application doesn't load on startup and the FIle->load java program doesn't help. For me, the solution was I have to run a clean build every time, that is the eclipse clean and build instead of just build, not the clean.bat... Hope this helps!
Try clearing resources that have improper naming structure in your projects stuff with spaces or special character in the name of the file.
It took me two days to figure out.
One solution i got regarding your problem.
As I See Please run the application first time as Run as blackberry simulator
that is got start and here pick up run and then Run as Blackberry simulator
I want to debug App2.exe, which is started by App1.exe. If App2.exe were a dll I could specify a host application, but this doesn't seem to work with an .exe.
I now use 'attach to process', but this is useless if App2.exe crashes before I do that.
Is there a way to do this with having to attach to the process manually?
Set the "debug spawned processes" debugging option. It is off by default. When App1 starts the new process, the debugger will pause. If the debugger isn't already attached to the new process automatically, attach to it, and then resume running it.
No, but there might be a way to get it to attach properly. Find something that you know will happen in App2 soon before the crash point, and have it pop up a modal dialog box at that point. Then it won't continue until you dismiss it, giving you time to attach the debugger.
I guess you could launch app2.exe yourself and pass any necessary command line parameters to it.
If you're using windows, there is a built in support for it.
basically, you can tell the windows loader to launch some other process whenever a specific process is launched. for example, you can tell windows to always launch winword.exe whenever you click on notepad.exe
you can use this ability in order to automatically launch a debugger whenever you start your process (this is why this feature was originally introduced, however you are not restricted to launch only debuggers :))
You can read exactly how to do it here.
You can also download the debugging tools for windows package and use GFlags to do it for you.
If both apps are yours and you have the code than I propose the following:
Make a debug mode for both apps. Use external inc file for instance
Start two IDEs and load each app in its own IDE. Build in debug mode
If done right you can now debug the internal communication between apps
I have a project where a server spawns multiple exe worker processes that host each its own dll module. I have a debug mode in which I can specify which dll will be loaded and I can have both processes running and communicationt in between from IDEs. It is the best way I have found so far.
We are trying automated builds using Flash CS4, and every once in a while the IDE will crash, and we want it to just keep on running then - but instead it halts on the crash reporter and we need to actually log into the server and click "Cancel" manually.
I can't find a setting and nothing on Google - any ideas?
Thanks!
I think this is an OS setting, and not a Flash CS4 setting, or is it?
In Windows XP you can configure this in your control panel: http://www.techtut.com/Tutorial/Windows/44-Disabling-Windows-XP-crash-report.html
In OSX you have to run a couple of terminal commands (or install a utility): http://www.macosxhints.com/article.php?story=20090902164105138