I want to print a report in crystal 2008. This is 4 column report. My source query is in oracle 11g.
layout of report is something like that:
List of consumers feeder wise/tariff wise
> Feeder/Tariff 10002 10003 10004 10005
> a-1 216 300 230 14
> b-1 23 3 17 19
> c-1 26 4 19 25
Related
I have an ahk script I use to enable the Printer button on a Crystal Reports dialog that for what ever reason is not enabled by default when used in Server 2008 R2. Anyways... the issue I am having is the process when running continues to stack memory each cycle. Its not like I am storing any contents to a variable that happens to not get cleared. What in this process uses memory resources that don't get released and is there anything I can implement to prevent this from happening?
You can see in this listing that the private memory just grows as usage goes on. I ended up having it initiate about 5 times and it went from about 1000k to 2000k.
The top entry is my test version I converted from WinWaitActive that was causing unnecessary CPU usage.
Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName
------- ------ ----- ----- ----- ------ -- -----------
58 8 2312 6216 68 0.62 7828 showprinterbutton
55 8 1788 5508 67 32.39 6840 ShowPSPrinter
57 8 1864 6028 79 33.12 7184 ShowPSPrinter
55 8 1396 5084 67 1.29 7604 ShowPSPrinter
55 8 1796 5536 67 36.36 7856 ShowPSPrinter
55 8 1772 5444 67 37.27 9848 ShowPSPrinter
55 8 1740 5424 67 26.33 10300 ShowPSPrinter
55 8 1396 4992 67 0.84 11348 ShowPSPrinter
55 8 1396 5024 67 1.14 11460 ShowPSPrinter
55 8 1736 5604 67 355.93 11676 ShowPSPrinter
55 8 1396 4984 67 1.06 13364 ShowPSPrinter
55 8 1396 5132 67 0.81 13516 ShowPSPrinter
72 9 2048 6500 73 66.36 14072 ShowPSPrinter
55 8 1792 5504 67 59.92 15736 ShowPSPrinter
55 8 1400 4960 67 0.61 16340 ShowPSPrinter
57 8 1496 5848 79 0.98 18516 ShowPSPrinter
57 8 1500 5404 79 0.98 19048 ShowPSPrinter
55 8 1400 5000 67 0.51 22020 ShowPSPrinter
Here is the script contents I have that is then compiled to run as an EXE.
; Version: 1.2
; Dated: 03/31/2015 - Created
; Description: Enable a watch for page setup dialog and activate the print button for crystal reports
; Only allow one instance to run
#SingleInstance force
; Run with out a tray icon
#NoTrayIcon
; Getting loose with not requiring direct title menu values
SetTitleMatchMode, RegEx
; Start active watch for quick post menu
WaitForPS:
WinWait,Page Setup
{
Control,Show,,Button8,Page Setup,(optimize for screen display)
GoSub WaitForPS
}
; End of Script...
Right after the moment the window appears and the loop ran one time, WainWait immediately continues to the next statement because the window already exists, enables the control, and recursively invokes the loop again (gosub), so the code allocated for example 100 stack frames per second thus eventually exhausting the call stack.
Instead use an indefinite loop and before continuing wait for the window to close:
Loop
{
WinWait,Page Setup
Control,Show,,Button8,Page Setup,(optimize for screen display)
WinWaitClose
}
I have a very annyoing problem when running TigerVNC 1.3.1 in a Debian 7 virtual machine. After about one minute doing nothing in the VNC window, the Xvnc process goes up to 100% CPU usage. Once I move my mouse into the VNC window again, the CPU usage returns to normal. I believe that the function call select() is the culprit. Doing an "strace -p " gives me tons of this:
select(256, [0 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74], NULL, NULL, {0, 0}) = 0 (Timeout)
And "strace -c -p ":
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
78.19 0.001760 0 98445 select
21.81 0.000491 0 196889 setitimer
------ ----------- ----------- --------- --------- ----------------
100.00 0.002251 295334 total
I'm not an expert on system function calls, but all other processes I checked with these commands do not show that kind of behavior. Is it a bug in the tigervnc code or is there a way I can fix it?
I'd recommend you reset to default settings to see if everything becomes fine. I was a tightvnc user for a long time, until I switched to RealVNC (free edition). I'd suggest you give a try of it. The settings are almost identical to tightvnc. And it supports real cross machine text copy-and-paste.
When launching VSIXInstaller.exe from our application, we're trying to use the ExitCode property on the Process object to determine if the package was successfully installed, but we've found that the exit code is 0 even if the user clicks the 'Cancel' button on the dialog.
I expected that there would be some other code returned in that scenario, similar to what msiexec does.
However, when I searched for documentation about the exit codes VSIXInstaller uses, I don't find anything. I'm looking for something along these lines.
These exit codes come from various inheritors of the Microsoft.VisualStudio.ExtensionManager.ExtensionManagerException class:
1001 ExtensionManager.AlreadyInstalledException
1002 ExtensionManager.NotInstalledException
1003 ExtensionManager.NotPendingDeletionException
1005 ExtensionManager.IdentifierConflictException
1006 ExtensionManager.MissingTargetFrameworkException
1007 ExtensionManager.MissingReferencesException
1008 ExtensionManager.BreaksExistingExtensionsException
1009 ExtensionManager.InstallByMsiException
1010 ExtensionManager.SystemComponentException
1011 ExtensionManager.MissingPackagePartException
1012 ExtensionManager.InvalidExtensionManifestException
1013 ExtensionManager.InvalidExtensionPackageException
1014 ExtensionManager.NestedExtensionInstallException
1015 ExtensionManager.RequiresAdminRightsException
1016 ExtensionManager.ProxyCredentialsRequiredException
1017 ExtensionManager.InvalidPerMachineOperationException
1018 ExtensionManager.ReferenceConstraintException
1019 ExtensionManager.DependencyException
1020 ExtensionManager.InconsistentNestedReferenceIdException
1021 ExtensionManager.UnsupportedProductException
1022 ExtensionManager.DirectoryExistsException
1023 ExtensionManager.FilesInUseException
1024 ExtensionManager.CannotUninstallOrphanedComponentsException
1025 ExtensionManager.CorruptInstanceException
1026 ExtensionManager.RunFromEnginePathLocationException
2001 VSIXInstaller.InvalidCommandLineException
2002 VSIXInstaller.InvalidLicenseException
2003 VSIXInstaller.NoApplicableSKUsException
2004 VSIXInstaller.BlockingProcessesException
2005 VSIXInstaller.UserCancelledException
3001 means any other exception.
P.S. To escape the situation of getting the zero exit-code when a user clicks "Cancel", use silent installation (/quiet flag in the command line) if it is appropriate in your scenario.
Edit: As of Visual Studio 2017 15.7, VSIXInstaller returns the exit code of 2005 if the user cancels the installation.
What is the difference between two commands, pls help to explain it.
ps -ef|sort +6|tail
oracle 55676 1 0 03:06:16 - 0:36 oracleprod (LOCAL=NO)
oracle 24876 1 0 02:52:56 - 0:40 oracleprod (LOCAL=NO)
oracle 41616 1 0 07:00:59 - 0:44 oracleprod (LOCAL=NO)
oracle 43460 1 0 02:45:05 - 0:53 oracleprod (LOCAL=NO)
oracle 25754 1 0 08:10:03 - 1:01 oracleprod (LOCAL=NO)
ps -ef|sort +5|tail
root 5440 2094 0 Nov 21 - 0:47 /usr/sbin/syslogd
root 9244 1 0 Nov 21 - 3:26 ./pcimapsvr.ip -D0
root 10782 1 0 Nov 21 - 4:41 ./pciconsvr.ip -D0
Why do both commands show different processes ? And if I keep on changing the value of 'sort +3' or reduce, the processes keeps on changing. What exactly is command all about ? Please help to explain.
You are sorting the wrong columns using both an obsolete syntax and a wrong method. No surprise random processes show up.
You'll get the top consumers that way:
ps -ef | sort -n -k8 | tail
-n means sort numerically
-k8 means sort the the eight column (cumulative execution time)
I have been using Xcode 4.2 for the past month without incident. Two days ago I went back into my project to add some navbars to my app. When I clicked on .XIB (Either one) xcode came crashing down.
I tried launching a new project but it ended up with the same exact result. I sudo deleted xcode in its entirety and did a fresh installation. Still the problem persists unfortunately I cannot upgrade to the latest Xcode because the only mac I have access to is a 2006 macbook that is not compatible with Mountain Lion.
Below is my error message when Xcode launches.
It seems to be a cocoa issue but I am at a loss.
ASSERTION FAILURE in
/SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-933/IBPlugin/Utilities/IBObjectMarshalling.m:179
Details: Interface Builder encountered an error communicating with
the iOS Simulator. "Interface Builder Cocoa Touch Tool" (431) failed
to launch and exited with status (null), signal 5. Please check
Console.app for crash reports for "Interface Builder Cocoa Touch Tool"
for further information. Function:
NSDistantObject
*IBAttachToCocoaTouchTool(IBCocoaTouchTargetRuntime *) Thread: {name = (null), num = 1} Hints: None Backtrace:
0 0x00000000008c184b -[IDEAssertionHandler
handleFailureInFunction:fileName:lineNumber:messageFormat:arguments:]
(in IDEKit) 1 0x0000000000061728 _DVTAssertionHandler (in
DVTFoundation) 2 0x00000000000746db _DVTAssertionFailureHandler (in
DVTFoundation) 3 0x000000001cfb7871 IBAttachToCocoaTouchTool (in
IDEInterfaceBuilderCocoaTouchIntegration) 4 0x000000001cfb7332
IBAskClassInTargetRuntimeForValueForKeyPathUsingResultMarshallerWithContext
(in IDEInterfaceBuilderCocoaTouchIntegration) 5 0x000000001cfb7118
IBAskClassInTargetRuntimeForValueForKeyPathUsingResultMarshallerWithContext
(in IDEInterfaceBuilderCocoaTouchIntegration) 6 0x000000001cfb7087
IBAskClassInTargetRuntimeForValueForKeyPathUsingResultMarshaller (in
IDEInterfaceBuilderCocoaTouchIntegration) 7 0x000000001cfb6b57
IBUserPresentableStringForTargetedDeviceFamily (in
IDEInterfaceBuilderCocoaTouchIntegration) 8 0x000000001cfe5ace
IBIPhoneOSSdkToDeploymentTargetMapping (in
IDEInterfaceBuilderCocoaTouchIntegration) 9 0x000000001cfe5b22
IBIPhoneOSSdkToDeploymentTargetMapping (in
IDEInterfaceBuilderCocoaTouchIntegration) 10 0x000000001cfec7cf
IBUIControlEventTypeToUIControlEventMask (in
IDEInterfaceBuilderCocoaTouchIntegration) 11 0x000000001ca4f44d
-[NSView(IBViewIntegration) ibWarnings:forDocument:withComputationContext:] (in
IDEInterfaceBuilderKit) 12 0x000000001cdec864
-[NSView(IBAppKitViewIntegration) ibSwizzledNSViewWarnings:forDocument:withComputationContext:] (in
IDEInterfaceBuilderCocoaIntegration) 13 0x000000001d00fbb2
IBUIViewSizeToFillView (in IDEInterfaceBuilderCocoaTouchIntegration)
14 0x000000001d01a451 IBMakeBarButtonItemFromPasteboardView (in
IDEInterfaceBuilderCocoaTouchIntegration) 15 0x000000001c9efb44
-[IBDocument rebuildWarnings] (in IDEInterfaceBuilderKit) 16 0x000000001c9efd4a -[IBDocument buildWarningsIfNeeded] (in
IDEInterfaceBuilderKit) 17 0x000000001c9efdae -[IBDocument warnings]
(in IDEInterfaceBuilderKit) 18 0x000000001caa305e -[IBIssueProvider
updateWarningsForOpenDocument:filePath:] (in IDEInterfaceBuilderKit)
19 0x000000001c9c93e7 -[IBIssueProvider updateOpenDocuments] (in
IDEInterfaceBuilderKit) 20 0x000000001caa2e85 __50-[IBIssueProvider
initWithIssueManager:extension:]_block_invoke_051 (in
IDEInterfaceBuilderKit) 21 0x00000000000210de
-[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation)
22 0x0000000096fe5acb NSKeyValueDidChange (in Foundation) 23
0x0000000096fca2b6 -[NSObject(NSKeyValueObserverNotification)
didChangeValueForKey:] (in Foundation) 24 0x00000000007ec026
-[IDEDocumentController addDocument:] (in IDEKit) 25 0x000000000081104d +[IDEDocumentController retainEditorDocument:] (in
IDEKit) 26 0x0000000000a00375 +[IDEDocumentController
_retainedNewEditorDocumentWithClass:forURL:withContentsOfURL:ofType:extension:error:]
(in IDEKit) 27 0x000000000081f0d0 +[IDEDocumentController
_retainedEditorDocumentForURL:type:error:] (in IDEKit) 28 0x000000000081ef25 +[IDEDocumentController
retainedEditorDocumentForNavigableItem:forUseWithWorkspaceDocument:error:]
(in IDEKit) 29 0x0000000000910acd
IDEUtilitySliceRetainedDocumentsForNavigableItems (in IDEKit) 30
0x00000000007e3cb6 -[IDEUtilityArea _rebuildStackWithNavigableItems:]
(in IDEKit) 31 0x00000000007e30d0 -[IDEUtilityArea
_rebuildCategoriesAndStack] (in IDEKit) 32 0x00000000007e2e23 __41-[IDEUtilityArea initWithNibName:bundle:]_block_invoke_0 (in IDEKit) 33 0x00000000001e7a55 -[DVTDelayedValidator doValidation:]
(in DVTKit) 34 0x0000000096fff86c __NSFirePerformWithOrder (in
Foundation) 35 0x0000000093db2dd2 __CFRunLoopDoObservers (in
CoreFoundation) 36 0x0000000093d6eced __CFRunLoopRun (in
CoreFoundation) 37 0x0000000093d6e3c4 CFRunLoopRunSpecific (in
CoreFoundation) 38 0x0000000093d6e1f1 CFRunLoopRunInMode (in
CoreFoundation) 39 0x0000000090447e04 RunCurrentEventLoopInMode (in
HIToolbox) 40 0x0000000090447af5 ReceiveNextEventCommon (in
HIToolbox) 41 0x0000000090447a3e
BlockUntilNextEventMatchingListInMode (in HIToolbox) 42
0x00000000987c6595 _DPSNextEvent (in AppKit) 43 0x00000000987c5dd6
-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit) 44 0x00000000987881f3 -[NSApplication run] (in AppKit) 45
0x0000000098780289 NSApplicationMain (in AppKit) 46
0x0000000000001f3d 47 0x0000000000000002
If you really can't upgrade to xCode 4.4...
Do you use TimeMachine?
Try to rewind your complete system...