Some application on my system is leaking resources. But I don't know what it is leaking and which application.  The leak causes other applications to fail with error messages like this:     System Error. Code: 8. Not enough storage is available to process this command.   What tools and/or steps can I use to find out which application is leaking and what it is leaking?  note: I have   40% of memory free (of a total of 8 gigabytes) 15 gigabytes space free on the boot/system SSD drive all the rights I need (can be Admin when needed) a Windows 7 development workstation (with things like Visual Studio 2013, Delphi 2007, PL/SQL Developer 9, Office 2013, McAfee 8, IE 11, Chrome 44, Cisco Jabber) some developed applications and services running (but not many) Our Delphi services and applications run with FastMM in full debug mode and don't show memory leaks. about 200 string ATOMS in use (see dump at ) so it's not a full ATOM table issue. It was ATOMS, but while refactoring the code by  and  I accidentally killed very odd atoms in  which I will answer below. standard Windows 7 heaps with a large Desktop heap: SharedSection=1024,20480,768  it is not the RegisterWindowsMessages either: about 1000 of them in total:  it isn't a window handle count either, as Testlimit -u can happily allocate 10k USER handles:    Since it could just as well be one of our own developed applications, I ask it here instead of superuser/serverfault. We don't get this on our servers though.    Since I can't answer, here is the elaboration:  The tooling in the "non-duplicate" answer can't pinpoint the source for various reasons:   they call Windows API functions with wrong data they presume Thread IDs are the same as Process IDs they contain very limited source code (the most interesting UI application is lacking) the binaries of the incomplete source code don't function well using truckloads of CPU and not responding to the UI after initial clicks the source does not explain what they do and why they do it   I'm in the midst of combining those pieces of code and refactoring it to a useful console application that:   shows Atoms and Registered Windows messages indicates by which Application  shows percentage used can better estimate what ATOMS to free   That way, dumping the output over time and correlating the diffs it might be possible to zoom in to the offending problem.  The offending ATOM leaks look like this:  Atom 0xD8F8 with name "-%D4#!`````(W!```````@W#````````" Atom 0xD8F9 with name "-%D4#!`````HT!```````@W#````````" Atom 0xD8FA with name "-%D4#!`````+R!```````@W#````````" Atom 0xD8FB with name "-%D4#!`````3P!```````@W#````````" Atom 0xD8FC with name "-%D4#!`````*S!```````@W#````````" Atom 0xD8FD with name "-%D4#!`````KO!```````@W#````````" Atom 0xD8FE with name "-%D4#!`````,T!```````@W#````````"   Statistics look like this:  Total Global Atoms: 6405 Total is 39 percent of maximum 16384 Global Atoms. Total Registered WindowsMessages: 1940 Total is 11 percent of maximum 16384 Registered WindowsMessages.
We have a few Win32 applications (coded in Delphi 2006) where sometimes the user gets an error message saying "System Error. Code: 8. Not enough storage is available to process this command.".  From the stacktrace it looks like it is always during CreateWnd call  Main ($1edc): 004146cc +070 app.exe SysUtils               RaiseLastOSError 00414655 +005 app.exe SysUtils               RaiseLastOSError 004ce44c +130 app.exe Controls               TWinControl.CreateWnd 00535a72 +022 app.exe cxControls             TcxControl.CreateWnd 004ce82a +016 app.exe Controls               TWinControl.CreateHandle 00553d21 +005 app.exe cxContainer            TcxContainer.CreateHandle 00586ef1 +005 app.exe cxEdit                 TcxCustomEdit.CreateHandle 005c331d +005 app.exe cxDropDownEdit         TcxCustomDropDownEdit.CreateHandle 004ceaf0 +074 app.exe Controls               TWinControl.UpdateShowing 004ceb1e +0a2 app.exe Controls               TWinControl.UpdateShowing 004cebdc +03c app.exe Controls               TWinControl.UpdateControlState 004d118a +026 app.exe Controls               TWinControl.CMVisibleChanged 004cb713 +2bb app.exe Controls               TControl.WndProc 004cf569 +499 app.exe Controls               TWinControl.WndProc 004b727d +4c1 app.exe Forms                  TCustomForm.WndProc 004cb3a0 +024 app.exe Controls               TControl.Perform 004c9f6a +026 app.exe Controls               TControl.SetVisible 004b6c46 +03a app.exe Forms                  TCustomForm.SetVisible 004baf1b +007 app.exe Forms                  TCustomForm.Show 004bb151 +14d app.exe Forms                  TCustomForm.ShowModal 007869c7 +0d3 app.exe UfrmPrice      770 +19 TfrmPrice.EditPrice 0078655d +009 app.exe UfrmPrice      628  +0 TfrmPrice.actNewBidExecute 00431ce7 +00f app.exe Classes                TBasicAction.Execute 004c2cb5 +031 app.exe ActnList               TContainedAction.Execute 004c397c +050 app.exe ActnList               TCustomAction.Execute 00431bb3 +013 app.exe Classes                TBasicActionLink.Execute 004af384 +090 app.exe Menus                  TMenuItem.Click 004b059f +013 app.exe Menus                  TMenu.DispatchCommand 004b16fe +082 app.exe Menus                  TPopupList.WndProc 004b164d +01d app.exe Menus                  TPopupList.MainWndProc 004329a8 +014 app.exe Classes                StdWndProc 7e4196b2 +00a USER32.dll                     DispatchMessageA 004bea60 +0fc app.exe Forms                  TApplication.ProcessMessage 004bea9a +00a app.exe Forms                  TApplication.HandleMessage 004becba +096 app.exe Forms                  TApplication.Run 008482c5 +215 app.exe AppName        129 +42 initialization   I've never been able to get to the bottom of what causes this and as it happens fairly seldom I haven't been to concerned, but I would like to find out what causes it and hopefully rectify it...  EDIT: Full Stacktrace  EDIT 2: More info... The client who experienced this today has had my app installed for about 4 months and it is running on his PC 8 hours a day. The problem only appeared today and kept reappearing even though he killed my app and restarted it. None of the other apps on his system behaved strangely. After a reboot the problem goes away completely. Does this point towards the heap shortage that Steve mentions?  EDIT 3: Interesting msdn blog post  and  on the topic of the desktop heap. Though I'm not sure whether this is the cause of the problem it certainly looks likely.
Does removing the comma before 'which' etc in a non-restrictive clause change the meaning of the sentence? VirtualBox Toolbar is hidden! How to show it? How can I write SQL for a table that shares the same name as a protected keyword in MySql? Im creating a community user from an Apex code. When our internal users (non-admins) run the code they are getting following error. (This was working fine when we test the feature in sandbox)     SObjectException: Field is not writeable: User.ProfileId   The code is       //Grab Community User Profile     Profile p = [Select Id, Name from Profile where Name = :COMMUNITY_PROFILE LIMIT 1];       User PortalUser = new User();          PortalUser.UserName = Con.Email+'-POC';         PortalUser.ContactId = Con.Id;         PortalUser.ProfileId = p.id;         PortalUser.Email = Con.Email;         PortalUser.EmailEncodingKey = 'UTF-8';         PortalUser.FirstName = Con.FirstName;         PortalUser.LastName = Con.LastName;         PortalUser.TimeZoneSidKey = 'America/Los_Angeles';         PortalUser.LocaleSidKey = 'en_US';         PortalUser.LanguageLocaleKey = 'en_US';          if (Con.LastName.length() &gt;= 8){             PortalUser.Alias = Con.LastName.substring(0, 7);             }else{             PortalUser.Alias = Con.LastName;         }             SObjToInsert.add(PortalUser); Grandi's Series; tends to $1/2$, but why is this considered a valid sum? Grandi's series,  $$1+1-1+1-1+1-1+...$$  can be expressed as the below:  $$\sum_{n=0}^\infty(-1)^n$$  Two valid sums that make sense to me are $1$, and $0$, depending on how you approach the series. $(1+1)-(1+1)-(1+1)-...=0$, and $1+(1-1)+(1-1)+(1-1)+...=1$.  There is consensus, however, that the actual sum is $\frac{1}{2}$. Why? I understand the approach of finding partial means of the series, and they do indeed tend to $\frac{1}{2}$, but it seems unintuitive to assert that the sum is neither $1$ or $0$.  A more convincing method I found was assuming the series is $S$, then shifting it such that $S-1 = S$, then through algebra finding $S = \frac{1}{2}$, but again, it seems more intuitive answer is either $0$ or $1$. I say this strictly because adding and subtracting integers should equal an integer, never a fraction.  Is this a characteristic of infinite series, which is not specific to Grandi's series? What if robots.txt disallows itself? Renormalized mass I am reading Schwarz QFT and I reached the mass renormalization part. So he introduces, after renormalization, a physical mass, defined as the pole of the renormalized propagator, and a renormalized mass which can be the physical mass, but can also take other values, depending on the subtraction schemes used. Are these masses, other than the physical one, observable in any way experimentally, or are they just ways to do the math easier (using minimal subtraction instead of on-shell scheme, for example)?   Also, in the case of charge renormalization, the explanation was that due to the vacuum polarization, the closer you are to the charge, the more you see of it, so the charge of the particle increases with the momentum you are testing the particle with. However, I am not sure I understand, from a physical point of view, why do you need to renormalize the mass. Is this physical mass (defined as the pole of the renormalized propagator) the same no matter how close you get, or it also changes with energy? And if it changes, what is shielding it at big distances? How can I recover my external hard drive's free space? I had these partitions on an external hard drive:  /dev/disk2 (external, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *2.0 TB     disk2    1:                        EFI EFI                     209.7 MB   disk2s1    2:                  Apple_HFS Android                 63.9 GB    disk2s2    3:                  Apple_HFS RiptideHUP              968.0 GB   disk2s3    4:       Microsoft Basic Data RiptideF                967.8 GB   disk2s4   My aim was to delete disk2s2 and then resize disk2s3 to occupy the leftover space by deleting disk2s2.  I deleted disk2s2 using this command:  diskutil  erasevolume  "Free Space"  ""  /dev/disk2s2   Now, to resize the volume, I used:  diskutil  resizevolume  /dev/disk2s3  R   However, I got this error:  Started partitioning on disk2s3 RiptideHUP Error: -69743: The new size must be different than the existing size   I did a bit of research and realised the free space was created before disk2s3 RiptideHUP so it cannot resize itself. Is there still a way I can reclaim the Free Space?  NOTE: Using diskutil list now shows:  /dev/disk2 (external, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *2.0 TB     disk2    1:                        EFI EFI                     209.7 MB   disk2s1    2:                  Apple_HFS RiptideHUP              968.0 GB   disk2s3    3:       Microsoft Basic Data RiptideF                967.8 GB   disk2s4 WiFi not working Kubuntu 20.04 - Intel 8265 Network Interface Removing small spaces (slivers) between polygons? When typesetting URLs in LaTeX using the url package, they are set in a mono space font by default. While I just accepted that as a fact for a long time, I am now starting to wonder why?  In Browsers, for example, the URL in the address bar is also not monospace. It does not make the link more readable, in my opinion rather on the contrary. The only explanation I can come up with is that it sets the link apart from the remeaining text. But honestly, even that sometimes looks a bit obstrusive.  So is the reasons really just to set links apart from the text? PhD in Europe without scholarship from non-European homeland Seeking world map with boundaries of regions and communities for commercial use? Convergence $I=\int_0^\infty \frac{\sin x}{x^s}dx$ Hi I am trying to find out for what values of the real parameter does the integral $$ I=\int_0^\infty \frac{\sin x}{x^s}dx $$ (a) convergent and (b) absolutely convergent.     I know that the integral is convergent if $s=1$ since $$ \int_0^\infty \frac{\sin x}{x}dx=\frac{\pi}{2}. $$ For $s=0$ it is easy to see divergent integral since $\int_0^\infty \sin x\, dx$ is divergent.  However I am stuck on figuring out when it is convergent AND or absolutely convergent.  I know to check for absolute convergence I can determine for an arbitrary series $\sum_{n=0}^\infty a_n$ by considering $$ \sum_{n=0}^\infty |a_n|. $$ If it helps also $$\sin x=\sum_{n=0}^\infty \frac{(-1)^{2n+1}}{(2n+1)!} {x^{2n+1}}$$. Thank you all How can I disable Alt-Scroll zoom in XFCE4 (Xubuntu) In XFCE4 desktop environments, alt+scroll wheel zooms my entire desktop. I'm finding this very annoying because sometimes I flick the scroll wheel to go to the top of a document then press the alt key for a some unrelated keyboard shortcut and find myself zoomed in so far I can't see anything at all. Is there any way to disable this feature? Why can't I sort questions by "votes" or "unanswered" without logging in? How many 6-letter permutations can be formed using only the letters of the word, MISSISSIPPI? I understand the trivial case where there are no repeating letters in the word (for arranging smaller words) but I stumble when this isn't satisfied. I'm wondering if there's a simpler way to computing all the possible permutations, as an alternative to manually calculating all the possible 6-letter combinations and summing the corresponding permutations of each. In addition, is there a method to generalize the result based on any P number of letters in a set with repeating letters, to calculate the number of n-letter permutations?  Sorry if this question (or similar) has been asked before, but if it has, please link me to the relevant page. I also apologize if the explanation is unclear, or if I've incorrectly used any terminology (I'm only a high-school student.) If so, please comment. :-) So I know the basic gist is that fusion power's main issue is sustaining the fusion. I also know that there are two methods. The Torus method and the laser method. The torus magnetically contains plasma and heats it with radiation and accelerates the plasma around to make strong enough collisions that protons fuse. The laser method uses 192 lasers and focuses it on tiny frozen hydrogen pellets and aims to initiate fusion each time pellets are dropped.  The though struck me when we could sorta combine the two designs together. The torus doesn't have to worry about making fusion happen at a specific location but it has issues in that the plasma is unevenly heated and leaks. On the other hand, the laser design is extremely complicated in the level of precision needed and would have to repeat this for every pellet. This lead me to think to make something precise and contained at the same time.  I see that particle colliders are able to direct two beams of protons and have them collide at a specific spot with a very precise energy. Couldn't we tune the energy of the two beams of protons to the energy required for them to fuse? We have the ability to smash them into bits, surely we have the ability to have them fuse. (I'm thinking about the type of collider that circles two beams in opposite directions)  It would be at much lower energies than normal colliders and would be very precise and it would be possible to fuse at a specific location that has greater leeway because for protons that missed collision, they'd just circle around again! Thus protons would efficiently be used and very little would be wasted. There wouldn't be problems of plasma leakage because we are focusing them in a thin tight beam.   It seems that this idea has girth, or I feel this way at least, can someone back me up by offering some calculations on how to calculate the efficiency? How would I go about calculating the two circling beams of protons and at what specific velocity would be needed? etc. I am facing this issue on Ubuntu 12.04, which is for my Wimax modem with beceem chipset.    If I replug the device Ubuntu goes in hang state. Its happens very often. If I plug the USB and restart it works most of the time. But it is very annoying to restart every time it hangs. The modem works smoothly in Windows 7. And it used to work OK in  Ubuntu 11.10.   Jun 13 19:25:54 iftekhar-HP-520-Notebook-PC dbus[1102]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper) Jun 13 19:25:54 iftekhar-HP-520-Notebook-PC dbus[1102]: [system] Successfully activated service 'org.freedesktop.UDisks' Jun 13 19:26:00 iftekhar-HP-520-Notebook-PC goa[2168]: goa-daemon version 3.4.0 starting [main.c:112, main()] Jun 13 19:26:47 iftekhar-HP-520-Notebook-PC udevd[432]: timeout 'cdrom_id --lock-media /dev/sr1' Jun 13 19:26:48 iftekhar-HP-520-Notebook-PC udevd[432]: timeout: killing 'cdrom_id --lock-media /dev/sr1' [1072] Jun 13 19:26:49 iftekhar-HP-520-Notebook-PC kernel: [   85.820162] sr 2:0:0:0: Device offlined - not ready after error recovery Jun 13 19:26:49 iftekhar-HP-520-Notebook-PC udevd[432]: timeout: killing 'cdrom_id --lock-media /dev/sr1' [1072] Jun 13 19:27:20  udevd[432]: last message repeated 31 times Jun 13 19:27:25  udevd[432]: last message repeated 4 times    What can I do to avoid this hangs and restarts? Website giving pronunciations of English words recorded in different dialects? I'm aware that there are certain websites around that provide recorded examples of English words pronounced in different accents/dialects.  Could anybody list some of them?