PrefView (1.6) - System.IndexOutOfRangeException

Hi, I was using PrefView 1.6 and on Windows 2008 Server and I keep getting the following exception when I try to open CPUStack for any processes. Is there any way to work around this, or would an older version of PerfView would work?
Thanks
Exception Occured: System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Microsoft.Diagnostics.Tracing.Stacks.TraceEventStackSource.GetCallerIndex(StackSourceCallStackIndex callStackIndex)
   at Microsoft.Diagnostics.Tracing.Stacks.MutableTraceEventStackSource.GetCallerIndex(StackSourceCallStackIndex callStackIndex)
   at Diagnostics.Tracing.StackSources.FilterStackSource.GenerateStackInfo(StackSourceCallStackIndex stackIndex, StackInfo stackInfoRet)
   at Diagnostics.Tracing.StackSources.FilterStackSource.GetStackInfo(StackSourceCallStackIndex stackIndex)
   at Diagnostics.Tracing.StackSources.FilterStackSource.GenerateStackInfo(StackSourceCallStackIndex stackIndex, StackInfo stackInfoRet)
   at Diagnostics.Tracing.StackSources.FilterStackSource.GetStackInfo(StackSourceCallStackIndex stackIndex)
   at Diagnostics.Tracing.StackSources.FilterStackSource.GenerateStackInfo(StackSourceCallStackIndex stackIndex, StackInfo stackInfoRet)
   at Diagnostics.Tracing.StackSources.FilterStackSource.GetStackInfo(StackSourceCallStackIndex stackIndex)
   at Diagnostics.Tracing.StackSources.FilterStackSource.<>c__DisplayClass1.<ForEach>b__0(StackSourceSample sample)
   at Microsoft.Diagnostics.Tracing.Stacks.MutableTraceEventStackSource.ForEach(Action`1 callback)
   at Diagnostics.Tracing.StackSources.FilterStackSource.ForEach(Action`1 callback)
   at Microsoft.Diagnostics.Tracing.Stacks.CallTree.set_StackSource(StackSource value)
   at PerfView.StackWindow.<>c__DisplayClass3.<SetStackSource>b__0()
   at PerfView.StatusBar.<>c__DisplayClass8.<StartWork>b__6(Object param0)
An exceptional condition occured, see log for details.

Hi Dicky,
About your question, I think you’d batter post your thread on the following forum.
http://social.msdn.microsoft.com/Forums/en-US/home?forum=netfxtoolsdev or ask to the author of this tool directly for effective response.
http://channel9.msdn.com/posts/Vance-Morrison-Performance-and-PerfView. The video explains why the build PerfView and how it works, and demonstrates its use.
Hope useful.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • 'System.IndexOutOfRangeException'  Error in VB

    Hello everyone,
    I'm trying to call a BAPI from VB. This BAPI is actually just a wrapper of the standard function module 'BP_JOB_READ'.
    Unfortunately, when I try to call this BAPI, I get this error message:
    =====================
    An unhandled exception of type 'System.IndexOutOfRangeException' occurred in sap.connector.rfc.dll
    Additional information: Index was outside the bounds of the array.
    =====================
    And breaks at the part of the code with >>>>>:
    =====================
         ByRef Job_Read_Steplist As TBTCSTEPTable)
            Dim results As Object()
    >>>>>        results = SAPInvoke("Z_Monitor_Bp_Job_Read", new Object() { _
                                Job_Read_Jobcount,Job_Read_Jobname,Job_Read_Opcode,Job_Read_Steplist })
            Job_Read_Jobhead = CType(results(0), TBTCJOB)
            Job_Read_Steplist = CType(results(1), TBTCSTEPTable)
        End Sub
    =====================
    Here is the code of the function module:
    =====================
    function z_monitor_bp_job_read.
    ""Local interface:
    *"       IMPORTING
    *"             VALUE(JOB_READ_JOBCOUNT) LIKE  TBTCJOB-JOBCOUNT
    *"             VALUE(JOB_READ_JOBNAME) LIKE  TBTCJOB-JOBNAME
    *"             VALUE(JOB_READ_OPCODE) LIKE  BTCH0000-INT4
    *"       EXPORTING
    *"             VALUE(JOB_READ_JOBHEAD) LIKE  TBTCJOB
    *"                             STRUCTURE  TBTCJOB
    *"       TABLES
    *"              JOB_READ_STEPLIST STRUCTURE  TBTCSTEP OPTIONAL
    *"       EXCEPTIONS
    *"              INVALID_OPCODE
    *"              JOB_DOESNT_EXIST
    *"              JOB_DOESNT_HAVE_STEPS
      call function 'BP_JOB_READ'
           exporting
                job_read_jobcount     = job_read_jobcount
                job_read_jobname      = job_read_jobname
                job_read_opcode       = job_read_opcode
           importing
                job_read_jobhead      = job_read_jobhead
           tables
                job_read_steplist     = job_read_steplist
           exceptions
                invalid_opcode        = 1
                job_doesnt_exist      = 2
                job_doesnt_have_steps = 3
                others                = 99.
       case sy-subrc.
         when 1.
           raise invalid_opcode.
         when 2.
           raise job_doesnt_exist.
         when 3.
           raise job_doesnt_have_steps.
        endcase.
    endfunction.
    =====================
    Here is the VB.net code:
    =====================
            Dim cs As String = "SYSTEM     ASHOST=XXX.xx.xx.com R3NAME=XXX GROUP=XXXGROUPA SYSNR=00 CLIENT=888 USER=xxxxx PASSWD=xxxxx"
            Dim proxy As New SAPProxy1(cs)
            Dim JobList As TBTCJOB
            Dim StepList As TBTCSTEPTable
            proxy.Z_Monitor_Bp_Job_Read("06480001", "ZABAP", 20, JobList, StepList)
    =====================
    Is this is bug in the SAP.NET Connector? or is there a problem in my code?
    I'm using MS Visual Studio Architect Edition 2003 and SAP .NET Connector version 2.0.
    Hope someone can help me. thanks!
    Regards,
    Jay
    Message was edited by: Jayson Brigado

    It seems that one or more of the parameters you pass in are uninitialized (Nothing).
    This is the case for TBTCJOB and TBTCSTEPTable. If they are not out-only, you should change to
    Dim JobList As New TBTCJOB
    Dim StepList As New TBTCSTEPTable
    It's also likely the case for any proxy fields you use (I don't know if you have proxy fields). You can define default values for them in .sapwsdl designer. Or you can assign values to them before call.
    If this doesn't help, please turn on the "Show Non-user Code" option in Call Stack window and post the full stack.

  • Error: System.IndexOutOfRangeException

    Hi.
    When I start my Programm (VB.NET) in the "Release Mode", I have a Errormessage: "System.IndexOutOfRangeException"
    It only works in the Debug Mode.
    I have made a printscreen, here is the link:
    http://www.breakdance.dreamworld.cd/Error.htm
    Please Help me.
    Thanks

    Hi,
    Looks like the index 1 doesn´t exist. Perhaps it is 0 based, and you should try 0 instead of 1.
    Did you insert the development connection string (see bellow) to the Command Line Arguments of your project?
    0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
    Regards,
    Ibai Peñ

  • Script component Fail: System.IndexOutOfRangeException: Index was outside the bounds of the array

    In SSIS package “script component” is failing due to the following exception. This exception is occurring sometimes only.  This
    script component contain Try/Catch, still it’s failing. What could be the reasons for this exception?
    Error Message
    5246793 User:OnError Package1 2015-01-16 03:40:45.000 2015-01-16 03:40:45.000 00:00:00 System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e)
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32 inputID, PipelineBuffer buffer)
       at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
    5246800 OnError Package1 2015-01-16 03:40:45.000 2015-01-16 03:40:45.000 00:00:00 SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Script Component" (657) failed with error code 0x80131508 while processing input
    input "Input 0" (666). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages
    posted before this with more information about the failure.

    Thanks for your reply. Please consider the following points too.
    1. In this code I don't use any array or list
    2. This exception is not happening always, when running the package again some time success some time failing.
    3. More than 100 Million records flow through this script component.
    4. I applied Try/Catch for whole script component. In this case script component should ignore the recode and should continue but it is not.
    5. Same package running successfully in QA Environment with same data. This exception sometime only occurring in Production environment only.
    6. Similar error message appearing three time. Can it be a time out error?
    5246793 User:OnError Package1 2015-01-16 03:40:45.000 2015-01-16 03:40:45.000 00:00:00 System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e)
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32 inputID, PipelineBuffer buffer)
       at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
    5246794 OnError Package1 2015-01-16 03:40:45.000 2015-01-16 03:40:45.000 00:00:00 System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e)
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32 inputID, PipelineBuffer buffer)
       at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
    5246795 OnError Execute Package1 (R2OK) 2015-01-16 03:40:45.000 2015-01-16 03:40:45.000 00:00:00 System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e)
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32 inputID, PipelineBuffer buffer)
       at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
    These are some of the questions that I have:
    1. Bug in SSIS script component in SQL Server 2008R2?
    2. Is there any place Script component by default using Array or List?
    3. Why Try/Catch is not success?
    I know this is mess but please try to help!

  • The Web Service plug-in failed in OrganizationId and Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation

    Hi All,We are receiving below errors in our production envrionment as The Web Service plug-in failed in OrganizationId: c28f361a-8111-e211-b7f2-68b599c03df8; SdkMessageProcessingStepId: 36ccbb1b-ea3e-db11-86a7-000a3a5473e8;
     1.EntityName: userquery; Stage: 30; MessageName: RetrieveMultiple;
    Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation
    Inner Exception: System.IndexOutOfRangeException: #TotalRecordCount
    <Data>Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
    Inner Exception: System.IndexOutOfRangeException: #TotalRecordCount
    2.EntityName: email; Stage: 30; MessageName: RetrieveMultiple
    Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation
    Inner Exception: System.NullReferenceException: Object reference not set to an instance of an object
    <Data>Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation
    Inner Exception: System.NullReferenceException: Object reference not set to an instance of an object.
    3.
    EntityName: plugintype; Stage: 30; MessageName: RetrieveMultiple;
    <Data>Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
    Inner Exception: System.InvalidOperationException: There is already an open DataReader associated with this Command which must be closed first.
    Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
    Inner Exception: System.InvalidOperationException: There is already an open DataReader associated with this Command which must be closed firstPlease give us idea on above issues.
    Natarajan.V

    Hi,
    What version of CRM you are using? Does this happen when you open the case record?
    We have faced the similar for Account record and was solved using below query. I am not sure about incident.
    Update ACC
    SET ACC.Merged = 0
    from AccountBase ACC
    WHERE ACC.merged is null
    Do you have case merge option enabled on incident entity? As per the MS it is enabled for CRM 2013 SP1 and CRM 2015.
    http://www.microsoft.com/en-us/dynamics/crm-customer-center/merge-similar-cases.aspx 
    Thanks!
    Kalim Khan

  • IndexOutOfRangeException in the parameters window

    When launching a report with parameters get the following error:
    System.IndexOutOfRangeException: Índice fuera de los límites de la matriz.
       en CrystalDecisions.Windows.Forms.ParameterPromptControl.GetResourcePath()
       en CrystalDecisions.Windows.Forms.ParameterPromptControl.BuildPromptingRequestContext(PromptingHTMLFeedback feedback)
       en CrystalDecisions.Windows.Forms.ParameterPromptControl.BuildPromptingRequestContext()
       en CrystalDecisions.Windows.Forms.ParameterPromptControl.StartPromting()
       en System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)
       en System.Windows.Forms.Form.OnVisibleChanged(EventArgs e)
       en System.Windows.Forms.Control.WmShowWindow(Message& m)
       en System.Windows.Forms.Control.WndProc(Message& m)
       en System.Windows.Forms.Form.WmShowWindow(Message& m)
       en System.Windows.Forms.Form.WndProc(Message& m)
       en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    There is another error when trying to force the values, for example:
    CRViewer.ParameterFieldInfo(0).CurrentValues.AddValue("Hola")
    then:
      Exception: System.NullReferenceException
      Source=CrystalDecisions.Windows.Forms
      StackTrace:
           en CrystalDecisions.Windows.Forms.ParameterFieldInfo.get_isDCP()
           en CrystalDecisions.Windows.Forms.ParameterValueEditControl.Start()
           en CrystalDecisions.Windows.Forms.ParameterUnit.UpdateControls()
           en CrystalDecisions.Windows.Forms.InteractiveParameterPanel.ShowParameters()
           en CrystalDecisions.Windows.Forms.CrystalReportViewer.set_ToolPanelView(ToolPanelViewType value)
           en System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
           en System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
           en System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
           en System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
           en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
           en System.Windows.Forms.Control.WndProc(Message& m)
           en System.Windows.Forms.ToolStrip.WndProc(Message& m)
           en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
           en System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
           en System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
           en  ...

  • Getting error while installing the Add-On

    I am trying to build an Add-On. When I register it and try to run it, it throws me following error. Not sure what I am doing wrong. I went through the process of registration as mentioned in Creating and Registering Add-on on SAP B1
    Problem signature:
      Problem Event Name:    CLR20r3
      Problem Signature 01:    gl.exe
      Problem Signature 02:    1.0.0.0
      Problem Signature 03:    53e1bf83
      Problem Signature 04:    xxxxxxxxxxx
      Problem Signature 05:    1.0.0.0
      Problem Signature 06:    53e1bf83
      Problem Signature 07:    4
      Problem Signature 08:    0
      Problem Signature 09:    System.IndexOutOfRangeException
      OS Version:    6.0.6002.2.2.0.272.7
      Locale ID:    1033

    plz have a look on below one..
    Symptom
    Trying to run a .NET EXE from a mapped drive
    The application crashes and you see an error like the following in the event log:
    EventType clr20r3, P1 mywindowsapplication.exe, P2 1.0.0.0, P3 493e53aa, P4 mscorlib, P5 2.0.0.0, P6 471ebc5b, P7 37d0, P8 b, P9 system.security.security, P10 NIL.
    Reproducing the Issue
    Create a windows .net application and place it on a mapped network drive and try to run it.
    Cause
    Error occurs due to security policies for .NET
    Resolution
    Move the application to a nonnetwork drive on the machine or change the security policy to allow the EXE to run from a network share.
    Keywords
    NET .NET network share security error policy exe windows application

  • Gimp-sharp compiles, but all filters just segfault

    Hi,
    I'm trying to get GIMP# to run on Arch Linux. I've compiled and installed with no errors (the makefiles don't respect DESTDIR so my PKGBUILD requires some patching, but the files all seem to go in the right places now).
    However, when I try eg. Filters -> Blur->Average I get this output in the terminal:
    Parameters: 3
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    0 Int32
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    1 Int32
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    2 Int32
    #Total scripts : 0
    #Total actions : 0
    #Total events : 0
    #Parsed : 0
    #Old : 0
    #Failed : 0
    #Scripts executable : 0
    #Actions executable : 0
    #Events executable : 0
    % parsed : =EF=BF=BD
    % executable scripts: =EF=BF=BD
    % executable actions: =EF=BF=BD
    % executable events : =EF=BF=BD
    Parameters: 3
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    0 Int32
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    1 Int32
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    2 Int32
    gimp-sharp: fatal error: Segmentation fault
    and no visible response from Gimp (ie. no change to the undo history).
    I get
    $ mono /usr/lib/gimp/2.0/plug-ins/Raindrops.exe
    gimp-sharp is a GIMP plug-in and must be run by GIMP to be used
    but I guess this is expected.
    Here are my gimp and mono versions:
    $ pacman -Qi gimp
    Name : gimp
    Version : 2.6.8-1
    URL : http://www.gimp.org/
    Licenses : GPL
    Groups : None
    Provides : None
    Depends On : gtk2>=3D2.14.4 lcms>=3D1.17 libxpm>=3D3.5.7
    libwmf>=3D0.2.8.4 libxmu>=3D1.0.4 librsvg>=3D2.22.3 libmng>=3D1.0.10
    dbus-glib>=3D0.76 libexif>=3D0.6.16
    pygtk>=3D2.13.0 desktop-file-utils gegl>=3D0.1.0 curl
    Optional Deps : gutenprint: for sophisticated printing only as gimp
    has built-in cups print support
    libwebkit: for the help browser
    poppler-glib: for pdf support
    hal: for Linux input event controller module
    alsa-lib: for MIDI event controller module
    Required By : gimp-dbp gimp-help-en gimp-help-nn
    gimp-plugin-fblur gimp-plugin-gmic4gimp gimp-plugin-greycstoration
    gimp-refocus gimp-sharp
    Conflicts With : gimp-devel
    Replaces : None
    Installed Size : 59740,00 K
    Packager : Eric Belanger <[email protected]>
    Architecture : x86_64
    Build Date : su. 13. des. 2009 kl. 03.10 +0100
    Install Date : m=C3=A5. 18. jan. 2010 kl. 17.24 +0100
    Install Reason : Explicitly installed
    Install Script : Yes
    Description : GNU Image Manipulation Program
    $ pacman -Qi mono
    Name : mono
    Version : 2.6.1-1
    URL : http://www.mono-project.com/
    Licenses : GPL LGPL2 MPL custom:MITX11
    Groups : None
    Provides : monodoc
    Depends On : zlib libgdiplus>=3D2.4.2 sh
    Optional Deps : None
    Required By : gimp-sharp gtk-sharp-2 mono-addins ndesk-dbus
    Conflicts With : monodoc
    Replaces : None
    Installed Size : 137984,00 K
    Packager : Daniel Isenmann <[email protected]>
    Architecture : x86_64
    Build Date : su. 20. des. 2009 kl. 16.19 +0100
    Install Date : ty. 19. jan. 2010 kl. 21.09 +0100
    Install Reason : Installed as a dependency for another package
    Install Script : No
    Description : Free implementation of the .NET platform including
    runtime and compiler
    Raindrops, similarly, gives
    Parameters: 3
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    0 Int32
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    1 Int32
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    2 Int32
    gimp-sharp: fatal error: Segmentation fault
    and no UI change. Splitter pops up the dialogue, but segfaults if I try to use it (not if I cancel). All other filters just segfault.
    Check for Updates gives me
    Parameters: 3
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    0 Int32
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    1 Int32
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    2 Int32
    0.16.0.0
    The contents of the Html page are :
    <packages>
    <package version=3D"0.12" />
    </packages>
    Processing time: 00:00:00.48
    and no UI feedback.
    Picture Package amazingly worked on the first, third and fourth try
    (but didn't show my Custom Text in the picture), giving this the
    second and third times:
    Parameters: 3
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    0 Int32
    gimp-sharp: fatal error: Segmentation fault
    Parameters: 3
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    0 Int32
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    1 Int32
    param.Size: 36
    param.type.Size: 4
    param.type.Data: 32
    2 Int32
    Processing time: 00:00:01.55
    while save as JavaFX pops up a dialogue and segfaults.
    Now, the one reason I'm trying Gimp# is that I want Photoshop Actions. This gives me a dialogue with no available actions. Pressing OK does nothing, while on pressing Execute, Gimp gives a dialogue saying the plugin crashed and I should save and exit. Here's the console output:
    #Total scripts : 0
    #Total actions : 0
    #Total events : 0
    #Parsed : 0
    #Old : 0
    #Failed : 0
    #Scripts executable : 0
    #Actions executable : 0
    #Events executable : 0
    % parsed : =EF=BF=BD
    % executable scripts: =EF=BF=BD
    % executable actions: =EF=BF=BD
    % executable events : =EF=BF=BD
    Marshaling clicked signal
    Exception in Gtk# callback delegate
    Note: Applications can use GLib.ExceptionManager.UnhandledException
    to handle the exception.
    System.Reflection.TargetInvocationException: Exception has been thrown
    by the target of an invocation. ---> System.IndexOutOfRangeException:
    Array index is out of range.
    at Gimp.PhotoshopActions.PhotoshopActions+<CreateDialog>c__AnonStorey84.<=
    >m__9
    (System.Object , System.EventArgs ) [0x00000] in <filename unknown>:0
    at (wrapper managed-to-native)
    System.Reflection.MonoMethod:InternalInvoke
    (object,object[],System.Exception&)
    at System.Reflection.MonoMethod.Invoke (System.Object obj,
    BindingFlags invokeAttr, System.Reflection.Binder binder,
    System.Object[] parameters, System.Globalization.CultureInfo culture)
    [0x00000] in <filename unknown>:0
    --- End of inner exception stack trace ---
    at System.Reflection.MonoMethod.Invoke (System.Object obj,
    BindingFlags invokeAttr, System.Reflection.Binder binder,
    System.Object[] parameters, System.Globalization.CultureInfo culture)
    [0x00000] in <filename unknown>:0
    at System.Reflection.MethodBase.Invoke (System.Object obj,
    System.Object[] parameters) [0x00000] in <filename unknown>:0
    at System.Delegate.DynamicInvokeImpl (System.Object[] args)
    [0x00000] in <filename unknown>:0
    at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args)
    [0x00000] in <filename unknown>:0
    at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in
    <filename unknown>:0
    at GLib.Signal.ClosureInvokedCB (System.Object o,
    GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
    at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args)
    [0x00000] in <filename unknown>:0
    at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr
    return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr
    invocation_hint, IntPtr marshal_data) [0x00000] in <filename
    unknown>:0
    at GLib.ExceptionManager.RaiseUnhandledException(System.Exception
    e, Boolean is_terminal)
    at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr
    return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr
    invocation_hint, IntPtr marshal_data)
    at Gimp.GimpDialog.gimp_dialog_run(IntPtr )
    at Gimp.GimpDialog.Run()
    at Gimp.Plugin.DialogRun()
    at Gimp.Plugin.Run(System.String name, Gimp.ParamDefList inParam,
    Gimp.ParamDefList ByRef outParam)
    at Gimp.Plugin.Run(System.String name, Int32 n_params, IntPtr
    paramPtr, Int32 ByRef n_return_vals, IntPtr ByRef return_vals)
    at Gimp.Plugin.gimp_main(GimpPlugInInfo ByRef , Int32 , System.String[] =
    at Gimp.Plugin..ctor(System.String[] args, System.String package)
    at Gimp.PhotoshopActions.PhotoshopActions..ctor(System.String[] args)
    at Gimp.PhotoshopActions.PhotoshopActions.Main(System.String[] args)
    Sorry if I'm being very verbose about some simple mistake, but I figured I might as well include what I've found so far...
    Has anyone else here gotten gimp-sharp / Photoshop Actions up and running?
    My PKGBUILD so far:
    pkgname=gimp-sharp
    pkgver=0.16
    pkgrel=1
    pkgdesc="Gimp# is a C# wrapper around the GIMP API"
    arch=('i686' 'x86_64')
    url="http://gimp-sharp.sourceforge.net/"
    license=('GPL')
    depends=('gimp' 'mono')
    source=("http://downloads.sourceforge.net/sourceforge/gimp-sharp/gimp-sharp-${pkgver}.tar.gz")
    md5sums=('9dc7f795269120a7dfb17a20a8e2ddb0') # todo, this is my patched version
    build() {
    cd "$srcdir"/gimp-sharp-$pkgver
    ./configure --prefix=/usr
    make || return 1
    mkdir -p ${pkgdir}/usr/lib/gimp/2.0/plug-ins
    make DESTDIR="$pkgdir" install
    although this also needs a patch I haven't made yet that changes the makefiles in the plug-ins subdirs to saying
    echo "Copying po/$$lang to $(DESTDIR)$(GIMPLOCALE)/$$localedir/LC_MESSAGES/AverageBlur.mo";\
    $(mkinstalldirs) $(DESTDIR)$(GIMPLOCALE)/$$localedir/LC_MESSAGES ;\
    $(INSTALL_DATA) po/$$lang $(DESTDIR)$(GIMPLOCALE)/$$localedir/LC_MESSAGES/AverageBlur.mo;\
    instead of
    echo "Copying po/$$lang to $(GIMPLOCALE)/$$localedir/LC_MESSAGES/AverageBlur.mo";\
    $(INSTALL_DATA) po/$$lang $(GIMPLOCALE)/$$localedir/LC_MESSAGES/AverageBlur.mo;\
    but I'm hoping they'll just fix it upstream after my reports ;-)

    Check if dmesg |tail has something interesting to say about these crashes.
    Probably it's a bug in some shared library, to find out which one it is start your editor under gdb and run bt after it segfaults:
    $ gdb ./test
    GNU gdb (GDB) 7.5.1
    blah blah blah
    (gdb) run
    Starting program: /home/m/test
    warning: Could not load shared library symbols for linux-vdso.so.1.
    Do you need "set solib-search-path" or "set sysroot"?
    Program received signal SIGSEGV, Segmentation fault.
    0x00007ffff7aafc61 in __strlen_sse2 () from /usr/lib/libc.so.6
    (gdb) bt
    #0 0x00007ffff7aafc61 in __strlen_sse2 () from /usr/lib/libc.so.6 <- my program crashed in strlen in libc
    #1 0x0000000000400519 in main ()
    (gdb) quit

  • Creation of Supplier Clearing List could not be finished

    Hello everyone,
    since a couple of months there is a problem while creating the supplier clearing list after receiving an ORDERS message. It seems that the flag SELFLAG in table /IDEXGE/SSCLISTA is not been set after creating the list items in table /IDEXGE/SSCLISTI.
    After running the transaction /IDEXGE/TDUEDATE_REP to send the SCL, a message with number /IDEXGE/EQS_DATEX134 appears.
    Up to now i could not find the reason, why this flag is not set in some cases. Each test i'd made was successfull.
    Anybody of you ever had the same error?
    Kind regards,
    Tobias Stark

    Hello Expert,
    I am running with SCOM 2007 R2 with CU4. I am able tohedule schedule the Reports but when ever trying open the schedule Reports folder in SCOM Reporting Consol, getting below error message :
    Date: 3/31/2011 9:04:26 AM
    Application: System Center Operations Manager 2007 R2
    Application Version: 6.1.7221.61
    Severity: Error
    Message: Report subscription list could not be loaded.
    System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at System.Array.InternalGetReference(Void* elemRef, Int32 rank, Int32* pIndices)
       at System.Array.GetValue(Int32 index)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Reporting.ManagementGroupReporting.GetSubscriptions(String owner)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Reporting.Views.ReportSubscriptionsView.ReportSubscriptionsView.LoadSubscriptionsJob(Object sender, ConsoleJobEventArgs args)
    Any Help will be appreciable.
    Thanks & Regards,
    Sushil Kumar
    Regards, Sushil
    Hello
    we
    have the same
    problem
    workaround,
    the
    SCOM console
    locally
    open with
    windows
    vista or
    windows 7
    Regards
    sven leemann

  • Extract image data from a bitmap image in C# HELP Please!!

    Hi there, 
    I am trying to extract the image data from a bitmap file - i.e. delete the image's BMP header.
    But I keep getting an error (System.IndexOutOfRangeException) in line 85 (if I am not mistaken) inFilename = args[0];
    Where the Console Application just crashes. 
    https://msdn.microsoft.com/query/dev12.query?appId=Dev12IDEF1&l=EN-US&k=k(EHIndexOutOfRange);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.5);k(DevLang-csharp)&rd=true
    Any idea what is going wrong? 
    I thank you for your time and help in advance,
    IP
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace ConsoleApplication1
    class Program
    private static string inFilename, outFilename;
    private static string errorMessage;
    private static void ShowUsage()
    Console.WriteLine("BMP2CSV by David Bolton. http://cplus.about.com (C) 2013");
    Console.WriteLine(@"Usage: bmp2csv input[.bmp] [output.csv]");
    Console.WriteLine(@"[means optional]");
    Console.WriteLine("Input extension must be .bmp, ouutput (if supplied) .csv");
    private static bool outputCsv(byte[] data, int width, int height)
    try
    using (var sw = new StreamWriter(outFilename))
    var ptr = 0;
    for (var y = 0; y < height; y++)
    var line = new StringBuilder();
    for (var x = 0; x < width; x++)
    line.Append(data[ptr++].ToString()).Append(',');
    sw.WriteLine(line);
    return true;
    catch
    Console.WriteLine("Error writing to " + outFilename);
    return false;
    private static bool ProcessFile()
    try
    using (var filein = new BinaryReader(File.OpenRead(inFilename)))
    var Signature1 = filein.ReadByte(); // now at 0x1
    var Signature2 = filein.ReadByte(); // now at 0x2
    if (Signature1 != 66 || Signature2 != 77) // Must be BM
    errorMessage = "Input File is not a BMP file";
    return false;
    filein.ReadDouble(); // skip next 8 bytes now at position 0xa
    var Offset = filein.ReadInt32(); // offset in file now at 0ea
    filein.ReadInt32(); // now at 0x12a
    var fileWidth = filein.ReadInt32(); // now at 0x16
    var fileHeight = filein.ReadInt32(); // now at 0x1a
    filein.ReadBytes(Offset - 0x1a); // should now be at offset bytes into file
    var data = filein.ReadBytes((int)filein.BaseStream.Length - Offset);
    // read remainder of file into data- array of bytes
    //Console.WriteLine("Data Length = {0}",data.Length);
    return outputCsv(data, fileWidth, fileHeight);
    catch
    errorMessage = "Error reading " + inFilename;
    return false;
    private static void Main(string[] args)
    errorMessage = "Ok";
    if (!ExtractParameters(args))
    return;
    if (!File.Exists(inFilename))
    Console.WriteLine("Cannot find file " + inFilename);
    return;
    if (ProcessFile())
    Console.WriteLine("file successfully processed - output in " + outFilename);
    else
    Console.WriteLine("File processing failed: " + errorMessage);
    private static bool ExtractParameters(string[] args)
    inFilename = args[0];
    var extension = Path.GetExtension(inFilename);
    if (extension.Length == 0)
    inFilename += ".bmp";
    else
    if (extension.ToUpper() != ".BMP")
    ShowUsage();
    return false;
    switch (args.Count())
    case 1: // No output filename so swap extensions
    outFilename = Path.GetFileNameWithoutExtension(inFilename) + ".csv";
    break;
    case 2:
    { // check outfiulename has no extension or a .csv only
    outFilename = args[1];
    extension = Path.GetExtension(outFilename);
    if (extension.Length == 0)
    outFilename += ".csv";
    else if (extension.ToUpper() != ".CSV")
    ShowUsage();
    return false;
    break;
    default: // no parameters? You get the usage message
    ShowUsage();
    return false;
    return true;

    You probably did not specify the command-line arguments, i.e. the name of input and output files. In order to do this in Visual Studio for debugging, see
    https://msdn.microsoft.com/en-us/library/vstudio/1ktzfy9w(v=vs.100).aspx. So type something like “C:\My Folder\MyFile.bmp” “C:\My Folder\MyOutput.csv”, including quotation marks, according to your real disks and paths.
    The program should be fixed to detect such errors and call
    ShowUsage. Maybe ask the author.

  • How to Connect crystal report with multiple databases?

    I Think my question is really clear
    I ask this because i think i already used every way logic in my head
    ConnectionInfo
    IConnectionInfo
    PropertyBag
    DataDefModel
    Etc
    i found Ludek's post about "Ras Connection Info Code" i think this will solve my case but still no luck 
    Dear Ludek i try your suggestion from here  Until the "Ras Connection Info Code" give an Error
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at CodeBuilder_RasConnectionInfo.frmRasConnectionInfo.VBConnectionCode(ReportDocument boReportDocument) in C:\Reza\Development\CodeBuilder-RasConnectionInfo\Form1.vb:line 183
       at CodeBuilder_RasConnectionInfo.frmRasConnectionInfo.btnLoadReport_Click(Object sender, EventArgs e) in C:\Reza\Development\CodeBuilder-RasConnectionInfo\Form1.vb:line 16
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    CodeBuilder-RasConnectionInfo
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Reza/Development/CodeBuilder-RasConnectionInfo/bin/Debug/CodeBuilder-RasConnectionInfo.exe
    Microsoft.VisualBasic
        Assembly Version: 8.0.0.0
        Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    System.Configuration
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    System.Runtime.Remoting
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    CrystalDecisions.CrystalReports.Engine
        Assembly Version: 13.0.2000.0
        Win32 Version: 13.0.0.99
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/13.0.2000.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll
    CrystalDecisions.Shared
        Assembly Version: 13.0.2000.0
        Win32 Version: 13.0.0.99
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll
    CrystalDecisions.ReportAppServer.CommLayer
        Assembly Version: 13.0.2000.0
        Win32 Version: 13.0.0.99
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll
    CrystalDecisions.ReportAppServer.ClientDoc
        Assembly Version: 13.0.2000.0
        Win32 Version: 13.0.0.99
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll
    System.Data
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    CrystalDecisions.ReportAppServer.Controllers
        Assembly Version: 13.0.2000.0
        Win32 Version: 13.0.0.99
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll
    CrystalDecisions.ReportAppServer.DataDefModel
        Assembly Version: 13.0.2000.0
        Win32 Version: 13.0.0.99
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll
    CrystalDecisions.ReportAppServer.DataSetConversion
        Assembly Version: 13.0.2000.0
        Win32 Version: 13.0.0.99
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll
    CrystalDecisions.ReportAppServer.CubeDefModel
        Assembly Version: 13.0.2000.0
        Win32 Version: 13.0.0.99
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CubeDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll
    CrystalDecisions.ReportAppServer.ReportDefModel
        Assembly Version: 13.0.2000.0
        Win32 Version: 13.0.0.99
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll
    log4net
        Assembly Version: 1.2.10.0
        Win32 Version: 1.2.10.0
        CodeBase: file:///C:/Windows/assembly/GAC_32/log4net/1.2.10.0__692fbea5521e1304/log4net.dll
    System.Web
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
    CustomMarshalers
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/Windows/assembly/GAC_32/CustomMarshalers/2.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    i don't know what happen
    is there any way to solve my case??
    actually i only need 3 databases connected in my report
    in each databases i insert about 3 - 8 command
    i'm using VS2010 Ultimate
    CR Version=13.0.2000.0 (ASP.Net)
    SQL Server Standard Edition 10.50.2500.0
    and
    SQL Server Standard Edition 10.50.1600.1 to test move the datasources
    can someone give me an enlightment about my case
    every suggestion would be great
    Thanks
    Zeal

    Just as an FYI. there is a utility that will actually write the code out for you. See KBA 1553921 - Is there a utility that would help in writing database logon code?
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Function sequence error. in 64bit Windows 2008 Server.

    Hi All,
    Pardon me if the posting is not in the correct group.
    I am migrating my application from 32bit(Windows 2003 Server) to 64bit (Windows 2008 Server R2).
    I am getting the following while trying to execute a SQL command
    Encountered ODBC error -1: S1010, 0, [Microsoft][ODBC Driver Manager] Function sequence error .
    Basically internal function call is SQLExecute() function call. This works perfectly for Windows 2003 Server 32bit. I tried the command execute at the background from the command prompt and it is working.
    I checked the squence of call.We have two consecutive SQLBindParameter function call and then we call SQLExecute. Is this sequence incorrect in case of 64bit? I also checked the return code given by SQLExecute which is 99.
    Any help or suggestion would be very much appreciated.
    Thanks,
    -R

    Hi Teun,
    Yes i have build the addon & installer with x86. I am using Interop.SAPbouiCOM.dll ,  Interop.SAPbouiCOM.dll, System.dll , System.XML.dll.
    I have not specified the relative path in code as such but iam loading my forms Load batch action i don't know if it ok in this scenario or not.
    Building the Solution/Project is Successful without any warning.
    While debugging it on my server it gives the same error "Object Reference Not Set to an Instance of an Object".
    Debug Out put last errors are as follows:
    A first chance exception of type 'System.IndexOutOfRangeException' occurred in mscorlib.dll
    'TAMPA800.exe': Loaded 'C:\Windows\SysWOW64\sxs.dll'
    First-chance exception at 0x76afe124 in TAMPA800.exe: Microsoft C++ exception: EEMessageException at memory location 0x0036ecec..
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in TAMPA800.exe
    A first chance exception of type 'System.NullReferenceException' occurred in TAMPA800.exe
    The thread 'Win32 Thread' (0x460) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0xdb8) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0xfdc) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0xfb4) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0xdc8) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0xe04) has exited with code 0 (0x0).
    The program '[3872] TAMPA800.exe: Managed' has exited with code 0 (0x0).
    The program '[3872] TAMPA800.exe: Native' has exited with code 0 (0x0).
    Regards
    John

  • Call Bapi_Material_Availability Error : Index was outside the bounds ...

    I am coding .net 2003 (VB)  and  .NET connector 2.0  Call Bapi_Material_Availability . It Error  Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.
    This my code:
       Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim Batch As String
            Dim Check_Rule As String
            Dim Customer As String
            Dim Dec_For_Rounding As Short
            Dim Dec_For_Rounding_X As String
            Dim Doc_Number As String
            Dim Itm_Number As String
            Dim Material As String
            Dim Material_Evg As Test6.BAPIMGVMATNR
            Dim Plant As String
            Dim Read_Atp_Lock As String
            Dim Read_Atp_Lock_X As String
            Dim Stge_Loc As String
            Dim Stock_Ind As String
            Dim Unit As String
            Dim Wbs_Elem As String
            Dim Av_Qty_Plt As Decimal
            Dim Dialogflag As String
            Dim Endleadtme As String
            Dim Return0 As Test6.BAPIRETURN
            Dim Wmdvex As Test6.BAPIWMDVETable
            Dim Wmdvsx As Test6.BAPIWMDVSTable
            Material = "100-400"
            Plant = "1000"
            Unit = "ST"
            Try
                SapProxy11.Bapi_Material_Availability(Batch, _
                Check_Rule, _
                Customer, _
                Dec_For_Rounding, _
                Dec_For_Rounding_X, _
                Doc_Number, _
                Itm_Number, _
                Material, _
                Material_Evg, _
                Plant, _
                Read_Atp_Lock, _
                Read_Atp_Lock_X, _
                Stge_Loc, _
                Stock_Ind, _
                Unit, _
                Wbs_Elem, _
                Av_Qty_Plt, _
                Dialogflag, _
                Endleadtme, _
                Return0, _
                Wmdvex, _
                Wmdvsx)
                Me.TextBox1.Text = Av_Qty_Plt.ToString()
            Catch ex As SAP.Connector.RfcAbapException
                MsgBox(ex.Message.ToString)
            End Try
        End Sub
    ========
    <i>Source Error:
    Line 157:     ByRef Wmdvsx As BAPIWMDVSTable)
    Line 158:        Dim results As Object()
    Line 159:        results = SAPInvoke("Bapi_Material_Availability", new Object() { _
    Line 160:                            Batch,Check_Rule,Customer,Dec_For_Rounding,Dec_For_Rounding_X,Doc_Number,Itm_Number,Material,Material_Evg,Plant,Read_Atp_Lock,Read_Atp_Lock_X,Stge_Loc,Stock_Ind,Unit,Wbs_Elem,Wmdvex,Wmdvsx })
    Line 161:        Av_Qty_Plt = CType(results(0), Decimal)
    Source File: E:\SAP\BAPI\Test6\SAPProxy1.vb    Line: 159
    Stack Trace:
    [IndexOutOfRangeException: Index was outside the bounds of the array.]
       SAP.Connector.Rfc.RfcClient.RfcInvoke(SAPClient proxy, String method, Object[] methodParamsIn) +1229
       SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) +70
       Test6.SAPProxy1.Bapi_Material_Availability(String Batch, String Check_Rule, String Customer, Int16 Dec_For_Rounding, String Dec_For_Rounding_X, String Doc_Number, String Itm_Number, String Material, BAPIMGVMATNR Material_Evg, String Plant, String Read_Atp_Lock, String Read_Atp_Lock_X, String Stge_Loc, String Stock_Ind, String Unit, String Wbs_Elem, Decimal& Av_Qty_Plt, String& Dialogflag, String& Endleadtme, BAPIRETURN& Return0, BAPIWMDVETable& Wmdvex, BAPIWMDVSTable& Wmdvsx) in E:\SAP\BAPI\Test6\SAPProxy1.vb:159
       Test6.WebForm1.Button1_Click(Object sender, EventArgs e) in E:\SAP\BAPI\Test6\Default.aspx.vb:64
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain() +1292
    </i>
    Pls. help me.
    Thank you.

    Hi Kreangsak,
    It seems that you need to initialize you tables, parameters for rfc function
    Dim Wmdvex As Test6.BAPIWMDVETable
    Dim Wmdvsx As Test6.BAPIWMDVSTable
    Wmdvex = new Test6.BAPIWMDVETable()
    Wmdvsx = new Test6.BAPIWMDVSTable()
    If there is other table, you need to initialize them with new operator. Null tables does not accepted.
    If you problem goes set the call stack's "show non-user code" property and send the stack.
    Best Regards,
    Huseyin Akturk
    SW Engineer & SAP ABAP Consultant
    www.huseyinakturk.net

  • Dataset Will not Fill on Application Server IIS 6.0

    Hello everyone,
    I am having trouble getting my dataset to fill on the server. It works great from the desktop in VS, but stops when run on the server.
    I have a package that accepts a parameter, adds a row, then returns a cursor. The whole thing works on the desktop, but stops on the server at the Fill datasource command (objDA.Fill(objDS)).
    The code
    Dim strConn As String = "User Id=******;Password=*******;Data Source=orcl_permit"
    Dim objConn As New Oracle.DataAccess.Client.OracleConnection(strConn)
    'Creating the OleDB Connection
    objConn.Open()
    'Creating the Command Type
    Dim objCmd As New Oracle.DataAccess.Client.OracleCommand()
    objCmd.CommandText = "LAST_ADDED_PERMIT.LAST_PERMIT"
    objCmd.CommandType = Data.CommandType.StoredProcedure
    objCmd.Connection = objConn
    objCmd.Parameters.Add(New OracleParameter("result_cursor", Oracle.DataAccess.Client.OracleDbType.RefCursor)).Direction = Data.ParameterDirection.Output
    objCmd.Parameters.Add(New OracleParameter("V_OPERATOR", Oracle.DataAccess.Client.OracleDbType.Varchar2)).Direction = Data.ParameterDirection.Input
    objCmd.Parameters("V_OPERATOR").Value = username
    'Creating the Data Adapter
    Dim objDA As New Oracle.DataAccess.Client.OracleDataAdapter()
    objDA.SelectCommand = objCmd
    'Creating the DataSet
    Dim objDS As New System.Data.DataSet
    'Filling the DataSet using the Data Adapter
    objDA.Fill(objDS)
    Me.DetailsView1.DataSource = objDS.Tables(0)
    'Set up the Grid
    Me.DetailsView1.AutoGenerateRows = False 'Do not Automatically generate the columns
    Dim strKeys() As String = {"APPLICATION_NO"} 'Columns to datakey to: {"APPLICATION_NO","PIN"} for more than one
    DetailsView1.DataKeyNames = strKeys 'Set the datakey
    'Create the columns
    Dim R_Application As BoundField = New BoundField 'Create the first column
    R_Application.DataField = "APPLICATION_NO" 'Name of the datesource field to bind to
    R_Application.HeaderText = "Application No." 'Column header
    Dim R_Type As BoundField = New BoundField
    R_Type.DataField = "PERMITTYPE"
    R_Type.HeaderText = "Type"
    Dim R_WorkClass As BoundField = New BoundField
    R_WorkClass.DataField = "PERMITWORKCLASS"
    R_WorkClass.HeaderText = "Work Class"
    Dim R_BuildingUse As BoundField = New BoundField
    R_BuildingUse.DataField = "PERMITBUILDINGUSE"
    R_BuildingUse.HeaderText = "Building Use"
    Dim R_PIN As BoundField = New BoundField
    R_PIN.DataField = "PIN"
    R_PIN.HeaderText = "PIN"
    Dim R_Owner As BoundField = New BoundField
    R_Owner.DataField = "OWNERNAME"
    R_Owner.HeaderText = "Owner"
    Dim R_Qualifier As BoundField = New BoundField
    R_Qualifier.DataField = "QUALPERSONALNAME"
    R_Qualifier.HeaderText = "Qualifier"
    Dim R_NOW As BoundField = New BoundField
    R_NOW.DataField = "NATURE_OF_WORK"
    R_NOW.HeaderText = "Nature of Work"
    Dim R_ProDes As BoundField = New BoundField
    R_ProDes.DataField = "PROJECT_DESC"
    R_ProDes.HeaderText = "Project Description"
    Dim R_ProID As BoundField = New BoundField
    R_ProID.DataField = "PROJECT_ID"
    R_ProID.HeaderText = "Project"
    Dim R_Comment As BoundField = New BoundField
    R_Comment.DataField = "PERMIT_COMMENT"
    R_Comment.HeaderText = "Comment"
    'Add the columns
    Me.DetailsView1.Fields.Clear() 'Clear the gridview out
    Me.DetailsView1.Fields.Add(R_Application) 'Add the column at runtime
    Me.DetailsView1.Fields.Add(R_Type)
    Me.DetailsView1.Fields.Add(R_WorkClass)
    Me.DetailsView1.Fields.Add(R_BuildingUse)
    Me.DetailsView1.Fields.Add(R_PIN) 'Add the column at runtime
    Me.DetailsView1.Fields.Add(R_Owner)
    Me.DetailsView1.Fields.Add(R_Qualifier)
    Me.DetailsView1.Fields.Add(R_NOW)
    Me.DetailsView1.Fields.Add(R_ProDes)
    Me.DetailsView1.Fields.Add(R_ProID)
    Me.DetailsView1.Fields.Add(R_Comment)
    Me.DetailsView1.DataBind() 'Go baby go
    objConn.Close()
    objConn.Dispose()
    'Direct them to the newly created permit
    'Dim transUrl As String = "Permit.aspx?"
    'transUrl = transUrl + "Permit=" + Me.DetailsView1.SelectedValue.ToString
    'Response.Redirect(transUrl, True)
    The error
    Object reference not set to an instance of an object.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
    Source Error:
    Line 27: Dim objDS As New System.Data.DataSet
    Line 28: 'Filling the DataSet using the Data Adapter
    Line 29: objDA.Fill(objDS, "result_cursor")Line 30:
    Line 31: Me.DetailsView1.DataSource = objDS.Tables(0)
    Thanks

    Hello.
    I have exactly the same problem, but with another database engine. Its looks like happens after a while...once start failing, fails always until the process is restarted.
    If you found a solution o cause, please replay. The error is
    The code:
    DataSet ds = new DataSet();
    adapter.Fill(ds); //it work fine, no exceptions
    DataTable t = ds.Tables[0]; // --> Exception: "System.IndexOutOfRangeException", "Cannot find table 0."
    Thanks in advance.

  • SQL Server 2005 Database Mail - Mail configuration information could not be read from the database.

    I'm trying to setup Database Mail and send a test message, but it's not working.
    I've done several step-by-steps and all and I can't get it to work. Also checked several posts in this forum but none helped. I think it used to work before (2 months ago) but we had to turn it off.
    I've enabled it in Surface Configuration, have tried recreating all profiles, restarted SQL Agent, checked version mismatch...
    I check the Database Mail and I get the following message:
    Log Database Mail (Database Mail Log)
    Log ID 152
    Process ID 7684
    Last Modified 3/14/2013 6:49:58 PM
    Last Modified By SPEEDLING\sqlservice
    Message
    1) Exception Information
    ===================
    Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException
    Message: Mail configuration information could not be read from the database.
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Microsoft.SqlServer.Management.SqlIMail.Server.Objects.Account GetAccount(Int32)
    HelpLink: NULL
    Source: DatabaseMailEngine
    StackTrace Information
    ===================
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandFactory.CreateSendMailCommand(DBSession dbSession)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandRunner.Run(DBSession db)
       at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)
    2) Exception Information
    ===================
    Exception Type: System.IndexOutOfRangeException
    Message: timeout
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Int32 GetOrdinal(System.String)
    HelpLink: NULL
    Source: System.Data
    StackTrace Information
    ===================
       at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)
       at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
       at System.Data.SqlClient.SqlDataReader.get_Item(String name)
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)

    I'm trying to setup Database Mail and send a test message, but it's not working.
    I've done several step-by-steps and all and I can't get it to work. Also checked several posts in this forum but none helped. I think it used to work before (2 months ago) but we had to turn it off.
    I've enabled it in Surface Configuration, have tried recreating all profiles, restarted SQL Agent, checked version mismatch...
    I check the Database Mail and I get the following message:
    Log
    Database Mail (Database Mail Log)
    Log ID
    152
    Process ID
    7684
    Last Modified
    3/14/2013 6:49:58 PM
    Last Modified By
    SPEEDLING\sqlservice
    Message
    1) Exception Information
    ===================
    Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException
    Message: Mail configuration information could not be read from the database.
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Microsoft.SqlServer.Management.SqlIMail.Server.Objects.Account GetAccount(Int32)
    HelpLink: NULL
    Source: DatabaseMailEngine
    StackTrace Information
    ===================
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandFactory.CreateSendMailCommand(DBSession
    dbSession)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandRunner.Run(DBSession db)
       at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)
    2) Exception Information
    ===================
    Exception Type: System.IndexOutOfRangeException
    Message: timeout
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Int32 GetOrdinal(System.String)
    HelpLink: NULL
    Source: System.Data
    StackTrace Information
    ===================
       at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)
       at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
       at System.Data.SqlClient.SqlDataReader.get_Item(String name)
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)

Maybe you are looking for