ArgumentException was unhandled by user code

Hi,
I am a new user of ODP.net and Oracle. I have a stored procedure whose in parameter is UDT. It is a table of type Object. I need to know what would be its equivalent in .Net?
E.g.
create or replace
TYPE TEMP_OBJ AS OBJECT (
a_id number,
Name varchar2(256),
flag char(1),
user varchar2(256) )
create or replace
type ACTUALONE is table of TEMP_OBJ
procedure submit_proc
(i_actual in actualone,
o_status out number,
o_err_message out varchar2);
How do I map my oracle fields with the C#.Net. What do I do to execute the above stored procedure i.e. "submit_proc" from my .Net code? I want a code or explanation on how to ride on this beast.

837779 wrote:
Hi Alex,
I do not intend to do this stuffs from UI. The link that you have sent me would have been of gr8 help if I had to do it by UI. I want to code my entire requirement and I cannot add the server in the .Net as I do have the tns entries in my .ora file and I am not even allowed to do that. So please if you can send in some code that can explain me the solution to my problem.You should at least read through the walkthrough Alex provided you even if it involves UI elements. It includes the information you are looking for in the "Generating Custom Classes for User-Defined Types" section.

Similar Messages

  • InvalidOperationException was unhandled by user code

    Hi,
    I'm trying to validate the date format of the command using these codes. But I'm with the captioned error? Any advice for it?
    protected void gv_upd_rec(object sender, GridViewUpdateEventArgs e)
    int rIndex = e.RowIndex;
    OracleConnection conn = new OracleConnection("Data Source=XE;User ID=my_schema;Password=wsabc;");
    OracleDataReader reader;
    string start_date = gv1.Rows[rIndex].Cells[1].Text;
    string end_date = gv1.Rows[rIndex].Cells[2].Text;
    try
    OracleCommand cmd = new OracleCommand("select to_date(:start_date,'dd/Mon/rr'),to_date(:end_date,'dd/Mon/rr') from dual", conn);
    cmd.Parameters.AddWithValue("start_date", OracleType.VarChar).Value = start_date;
    cmd.Parameters.AddWithValue("end_date", OracleType.VarChar).Value = end_date;
    reader = cmd.ExecuteReader();
    catch (OracleException ex)
    ClientScript.RegisterClientScriptBlock(Page.GetType(), "alert", "alert('Invalid date format is entered: " + ex.Message + ".');", true);
    return;
    finally
    }

    Hi,
    You're using Microsoft's data provider, not Oracle's, so a Microsoft forum may be a better place to post your problem.
    However, I did try this, and it worked fine for me:
    using (OracleConnection con = new OracleConnection("user id=scott;password=tiger;data source=orcl"))
                con.Open();
                using (OracleCommand cmd = new OracleCommand("", con))
                    cmd.CommandText = "select to_date(:start_date,'dd/Mon/rr'),to_date(:end_date,'dd/Mon/rr') from dual";
                    cmd.Parameters.AddWithValue("start_date", OracleType.VarChar).Value = "01/JAN/02";
                    cmd.Parameters.AddWithValue("end_date", OracleType.VarChar).Value = "01/JAN/08";
                    OracleDataReader reader = cmd.ExecuteReader();
                    Console.WriteLine(cmd.ExecuteScalar().ToString());
            }OUTPUT
    ======
    1/1/2002 12:00:00 AM
    I'm not sure why you're calling both ExecuteReader() and ExecuteScalar(), I assume that's just for debugging purposes?
    Greg

  • DirectoryNotFoundException was unhandled by user code

    I have taken over a pre-existing application from the previous developer. I was able to successfully compile the application, but when I attempt to debug the application I receive the error message below:
    Does anyone have an idea what this is referring to and how to resolve it?
    Thanks,
    Kenny

    Hi Kenny,
    Which kind of project did you debug?
    >>An unhandled exception of type  'System.IO.DirectoryNotFoundException'  occurred in mscorlib.dll
    Additional information: Could not find  a part of the path...
    Generally the error message means that it would be related to the resources management.
    Reference:
    http://stackoverflow.com/questions/4216396/system-io-directorynotfoundexception-after-deleting-an-empty-folder-and-recreati
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/6eacf70d-f229-4cc1-8868-fba98008455a/c-systemiodirectorynotfoundexception-after-deleting-an-empty-folder-and-recreating-it?forum=csharpgeneral
    Maybe you could click "View Detail" to get more information in your side, but I doubt that it would be not the VS IDE issue.
    Best Regards,
    Jack 
    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.

  • Entityexception was unhandled by user code

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.Mvc;
    using MvcDemo.Models;
    namespace MvcDemo.Controllers
        public class EmployeeController : Controller
            public ActionResult Details( int id )
                EmployeeContext employeeContext = new EmployeeContext();
                Employee employee =  employeeContext.Employees.Single(emp => emp.EmployeeId == id);    //when i debugg this project then this error line occurred at this line
                return View(employee);
     i try to retrive data from the table and by id column 
                               

    Well you need to find out what the error is and post it, because otherwise, only Harry Houdini can pull that rabbit out of the hat for you.
    Harry would put a try/catch around the code and catch the exception and pull the rabbit out by its ears.

  • Unhandled exception when code runs for the first time,but works fine the second

    Hi All,
    I have the following code snippet
    private void RGL_Click(object sender, RibbonControlEventArgs e)
    Word._Document oDoc;
               oDoc = Globals.ThisAddIn.Application.ActiveDocument;
                object start = oDoc.Content.Start;
                object end = oDoc.Content.End;
                oDoc.Range(ref start, ref end).LanguageID = WdLanguageID.wdEnglishCanadian;
                oDoc.Range(ref start, ref end).NoProofing = 0;
    Microsoft.Office.Interop.Word.ReadabilityStatistic DocStats;
                    DocStats = oDoc.ReadabilityStatistics[10];------>exception occurs here when code runs first time
                    MessageBox.Show(DocStats.Name + " " + DocStats.Value);
    When I copy paste a document and click on the button it raises a COM exception but if I click continue and click on the button again, the correct grade level score is displayed.Cant figure out why this is happening.

    Thanks for the answer Eugene, this exception never shows up if I type something and click on the rgl button , but if i open a huge document that is already in Canadian english and click on this ribbon it gives me the following exception
    System.Runtime.InteropServices.COMException was unhandled by user code
      HelpLink=wdmain11.chm#36966
      HResult=-2146824090
      Message=Command failed
      Source=Microsoft Word
      ErrorCode=-2146824090
      StackTrace:
           at Microsoft.Office.Interop.Word.ReadabilityStatistics.get_Item(Object& Index)
           at UsabilityMapping_V01.Ribbon1.RGL_Click(Object sender, RibbonControlEventArgs e) in <my path> 1211
           at Microsoft.Office.Tools.Ribbon.RibbonPropertyStorage.ControlActionRaise(IRibbonControl control)
           at Microsoft.Office.Tools.Ribbon.RibbonPropertyStorage.ButtonClickCallback(RibbonComponentImpl component, Object[] args)
           at Microsoft.Office.Tools.Ribbon.RibbonManagerImpl.Invoke(RibbonComponentCallback callback, Object[] args)
           at Microsoft.Office.Tools.Ribbon.RibbonMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
           at Microsoft.Office.Tools.Ribbon.RibbonManagerImpl.System.Reflection.IReflect.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[]
    namedParameters)
      InnerException: 

  • Why do I get a "NullReferenceException was not handled by user code" error in one situation but not in the other?

    We are using Sharepoint 2010 and Infopath 2010.  In my form, I have a Managed Metadata field that I need to test for a Null value.  I found, with the help of this forum's participatns, that a [field]_Changed event for one MMD field runs multiple
    time because of the underlying XML elements (Terms, TermInfo, TermName, TermId).  So I'm trying to figure out how to test the XML to see when the TermName has a value.  By doing this, I hope to limit when the additional code in my form runs, i.e.
    I'll only trigger it when TermName is not null. 
    Just to test for null/empty (before doing anything that calls the addtional code) when I run this code, it completes correctly but always shows a message box:
    Dim strTest As String = Me.CreateNavigator.SelectSingleNode("/pr:properties/p:properties/documentManagement/ns2:h2b59c4ae4144c01973b1d8571d217ad", Me.NamespaceManager).InnerXml
                If String.IsNullOrEmpty(strTest) Then
                Else
                    MessageBox.Show("This is the value of the States InnerXML   " & strTest)
                End If
    But when I run this code, I get a "NullReferenceException was not handled by user code.  Object reference not set to an instance of an object" at the "Dim strTest..." line:
       Dim strTest As String = Me.CreateNavigator.SelectSingleNode("/pr:properties/p:properties/documentManagement/ns2:h2b59c4ae4144c01973b1d8571d217ad/pc:Terms/pc:TermInfo/pc:TermName", Me.NamespaceManager).InnerXml
                If String.IsNullOrEmpty(strTest) Then
                Else
                    MessageBox.Show("This is the value of the States InnerXML   " & strTest)
                End If
    Can any one explain why drilling down like this gives me this error?  And can you tell me how to get around it so I can limit how many times the code in my Infopath form needs to run?
    Thanks in advance.  Carol.

    Never mind, I think I've got it figured out.  When I do it this way, I get to the If Not...Nothing at the correct time. Thanks for sending me down the correct path, Scott. Carol.:
    Dim
    firstStr As
    String =
    String.Empty         
    Dim xNav
    As XPathNavigator = MainDataSource.CreateNavigator()
    Dim xFirst
    As XPathNavigator = xNav.SelectSingleNode("/pr:properties/p:properties/documentManagement/ns2:h2b59c4ae4144c01973b1d8571d217ad/pc:Terms/pc:TermInfo/pc:TermName",
    Me.NamespaceManager)
    If
    Not xFirst
    Is
    Nothing
    Then               
    Dim strxFirst
    As
    String = xFirst.InnerXml
                    MessageBox.Show(
    "Value of InnerXML   " & strxFirst)
    Else
                    MessageBox.Show(
    "Empty or Null")           
    End
    If

  • ExternalException was unhandled : A generic error occurred in GDI+.

    I am try to save this bitmap as jpg file for every 5 sec. It works fine at another application, before I move this method to another app. The error message shows ExternalException was unhandled : A generic error occurred in GDI+. I do not know if
    it is write permission issure or anything else. Since I use same computer and try to save at same file path, the error message keep going. I think I need help.
    The error code:
    public void captureScreen()
    bmpScreenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
    Debug.WriteLine("width:{0}, height:{1}", Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
    gfxScreenshot = Graphics.FromImage(bmpScreenshot);
    gfxScreenshot.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
    //Save the screenshot to the specified path that the user has chosen
    i++;
    string i1 = Convert.ToString(i);
    string name = "good" + i1 + ".jpg";
    ImageCodecInfo jpg = GetEncoder(ImageFormat.Jpeg);
    System.Drawing.Imaging.Encoder myEncoder = System.Drawing.Imaging.Encoder.Quality;
    EncoderParameters myEncoderParameters = new EncoderParameters(1);
    EncoderParameter myEncoderParameter = new EncoderParameter(myEncoder,
    50L);
    myEncoderParameters.Param[0] = myEncoderParameter;
    bmpScreenshot.Save(name, jpg,
    myEncoderParameters);
    Bitmap bitmap = new Bitmap(name);
    System.Drawing.Image image = (System.Drawing.Image)bitmap;
    The error shows here:
    bmpScreenshot.Save(name, jpg,
    myEncoderParameters);
    And Only alow me save one jpg, then pop up error

    Hi
    Since I can't reproduce your issue with some
    undefined code.
    Just take a look at from
    Graphics.FromImage Method
      in MSDN  document.
    You should always call the Dispose method to release the
    Graphics and related resources created by the
    FromImage method.  Please try and test it again.
    If still can't resolve, please post the complete code.  Thanks.
    Have a nice day!
    Kristin
    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.

  • Exception of type 'System.ArgumentException' was thrown. Parameter name: newObj when register sts to sharepoint 2010

    Hi
    when i register my custom sts to sharepoint i receive error : 
    Exception of type 'System.ArgumentException' was thrown.
    Parameter name: newObj
    i followed https://msdn.microsoft.com/EN-US/library/office/ff955607(v=office.14).aspx
    private void button1_Click(object sender, EventArgs e)
    List<SPTrustedClaimTypeInformation> claimMapping = new List<SPTrustedClaimTypeInformation>();
    List<string> strClaimMapping = new List<string>();
    SPTrustedClaimTypeInformation idClaim = new SPTrustedClaimTypeInformation("EmailAddress",
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress");
    SPTrustedClaimTypeInformation titleClaim = new SPTrustedClaimTypeInformation("Title",
    "http://schemas.wingtip.com/sharepoint/2009/08/claims/title",
    "http://schemas.wingtip.com/sharepoint/2009/08/claims/title");
    titleClaim.AcceptOnlyKnownClaimValues = true;
    idClaim.AddKnownClaimValue("[email protected]");
    idClaim.AddKnownClaimValue("[email protected]");
    idClaim.AddKnownClaimValue("[email protected]");
    titleClaim.AddKnownClaimValue("Engineer");
    titleClaim.AddKnownClaimValue("Manager");
    titleClaim.AddKnownClaimValue("CEO");
    // Create the string[] for all claims. This is required for
    // the construction of the SPTrustedLoginProvider object.
    strClaimMapping.Add(idClaim.InputClaimType);
    strClaimMapping.Add(titleClaim.InputClaimType);
    X509Certificate2 ImportTrustCertificate = new X509Certificate2(@"C:\SPPROJECTS\STS\ClaimsWalkthrough\Resources\STSTestCertPub.cer");
    claimMapping.Add(idClaim);
    claimMapping.Add(titleClaim);
    SPSecurityTokenServiceManager manager = SPSecurityTokenServiceManager.Local;
    SPTrustedLoginProvider provider = new SPTrustedLoginProvider(manager,
    "WingtipSTS", "WingtipSTS", new Uri("http://localhost:97/default.aspx"),
    "https://portal.test.com:90/_trust/", strClaimMapping.ToArray(), idClaim);
    foreach (SPTrustedClaimTypeInformation claimTypeInfo in claimMapping)
    if (claimTypeInfo.InputClaimType == provider.IdentityClaimTypeInformation.InputClaimType)
    continue;
    provider.AddClaimTypeInformation(claimTypeInfo);
    if (ImportTrustCertificate != null)
    provider.SigningCertificate = ImportTrustCertificate;
    //provider.ClaimProviderName = "ContosoCRMClaimProvider";
    provider.UseWReplyParameter = true;
    manager.TrustedLoginProviders.Add(provider);
    manager.Update();
    adil

    After spending the last hour looking again at my FBA issue, i finally got the answer to my own question which is SPClaimsUtility.
    For anyone in the future having this issue, this is a snapshot from my code:
    SPSecurity.RunWithElevatedPrivileges(delegate()
                   string usernamestring = GetTextBox("tbUsername").Text;
                   string passwordstring = GetTextBox("tbPassword").Text;
    ATPAuthProvider.ATPMembershipProvider memProvider = new ATPAuthProvider.ATPMembershipProvider();
    if (memProvider.ValidateUser(usernamestring, passwordstring))
                           MembershipUser user = memProvider.GetUser(usernamestring,
    true);
                           if (user != null)
      bool Status = SPClaimsUtility.AuthenticateFormsUser(HttpContext.Current.Request.UrlReferrer,
    usernamestring, passwordstring);
                               if (Status)
                                   HttpContext.Current.Response.Redirect("/Pages/Home.aspx", false);
    Note: The SPClaimsUtility class is from the Microsoft.SharePoint.IdentityModel dll which reside in the new GAC location: C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel\v4.0_15.0.0.0__71e9bce111e9429c
    Credit to Sivarajan's blog: http://sivarajan.me/post/SharePoint-2013-Enabling-Custom-Login-Page-and-Mixed-Contents-Part-2
    Enjoy!

  • Crystal Report 11 error "AccessViolationException was unhandled" on windows

    We have migrated VB code to VS 2010. We are using Crystal Report 11 with Visual Studio 2010, Crystal report is working fine with other Windows OS but not working in Windows 7 OS it throws an error "AccessViolationException was unhandled". We are using Crystal Report viewer, the error stops at the viewer control and gives the above error. Please let me know what is the solution for this
    Note: All admin rights has been given to system

    Only version of CR runtime supported in VS 2010 is Cr for VS 2010:
    http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_1.exe
    Thank you
    Don

  • Setting the User Code for RICOH Aficio MP C 4000

    Hi guys, initially I had trouble setting my office network printer. But the thread at http://discussions.apple.com/thread.jspa?threadID=2235451 helped a lot. Now I am still stuck as the office uses "user codes" for each of the staff but when I tried to set it up, i couldn't punch in any numbers as only 4 options were presented ie nos from 1001-1004.
    I might be wrong but it seems to me that the user codes could be hardcoded in a text file somewhere. Question is how do I do that?
    Thanks

    so ive read and done everything on this feed. i also noticed that this question was marked at answered but it doesnt seem like the answer should be to hook into another printer.
    im trying to print to my office printer, Ricoh aficio mp c5000, and im so close i can taste it but i must be missing something.
    ive called applecare, ricoh, downloaded wayyy too many drivers, done everything in this feed and still nothing... well not exactly.
    when i hit print the printer wakes up and makes noise but it doesnt pickup any paper or actually print. i can hear things startup and start spinning but nothing prints.
    i know that for all the pc's that work on this printer, have to print in black and white or otherwise enter a Valid Access for color. I dont even see the option of valid access in the print settings.
    also
    i saw an option of finisher, option tray, upper internal tray, and internal shift tray. would those settings play a part as to why im not printing (using the Ricoh Aficio MP C5000 PXL driver)
    Please help

  • Rename User Code

    Is there any safe way to change a user code?  The problem is that user 'ABC' was given a license in one company.  Then, another company was created with user 'abc'.  The license was not allocated to this new user because of the uppercase/lowercase difference.  However, we cannot create user 'ABC' in the new company because user codes are not case-sensitive in general.  Is there any way to delete a user from OUSR or rename the user code?  Or allocate the license for 'ABC' in company A to 'abc' in company B?  Thanks for the help.

    Hi Brian.......
    Its not at all possible when the particular code is in use. Infact any of the codes can not be renamed once it is used.
    But in order to achieve this you can lock these ABC and abc user codes and can create a new user in both the DBs and can share the same license..........
    Regards,
    Rahul

  • Printing at Ricoh C3501 with user code

    My MBP running below printer drivers for printing to Ricoh C3501 with user code.
    foomatic-rip-4.0.6.230.dmg
    gplgs-8.71.dmg
    pxlmono-1.9.dmg
    RicohUserCodes.command
    As Matt Broughton recommanded before upgrade. The printing worked fine.
    After upgrade to Yosemite, my MBP can no longer print on Ricoh c3501. Checking the printing queue, the print job is gone, but, actually, the doc is not printed.
    This was happen if I select color print but using grayscale user code, but this time I select grayscale printing and using grayscale user code and still could not print as my MBP did before iOS upgrade.
    After checking my colleagues, all the Mac in my company upgrading to Yosemite have the same printing problem.
    Please help out what else I can do to fix the issue.
    Thank you.
    Bill

    Hi Bill,
    This video helped me out with my printing problem and maybe it will help you with yours. Printer/Scanner Help With Yosemite
    -crazy

  • TypeInitializationException was unhandled

    Hello,
    I was able to successfully compile this program, but received this error message when trying to debug. 
    Can anyone provide any help or advice on how to best go about resolving this?
    Kenny

    Hi Kenny,
    It showed the exception window since we enabled the exception thrown under Debug->Exception window.
    But the real issue would be related to your project code.
    Reference:
    http://stackoverflow.com/questions/4110168/c-sharp-error-when-i-try-to-compile 
    http://stackoverflow.com/questions/5179156/system-typeinitializationexception-was-unhandled
    Like above two cases, you would look at the detailed inner exception to find out where the real problem is.
    Best Regards,
    Jack
    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.

  • Need help with Connect 4 game, IndexOutOfRangeException was unhandled

    Hi! I've been struggling with this for a while now, the issue is that as soon i move a game piece to the field i get this errorats "IndexOutOfRangeException was unhandled" and i don't know why since my intention with the code was to use for loops
    look through the 2D array thats based on two constants: BOARDSIZEx = 9 and BOARDSIZEy = 6. Instead of traditional 7*6 connect 4 grid i made it 9 squares wide due to having pieces on the side to drag and drop.
    Here's the code for my checkwin:
    public bool checkWin(Piece[,] pieceArray, bool movebool)
    bool found = false;
    //Horizontal
    for (int i = 0; i < BOARDSIZEx - 3; i++)
    for (int j = 0; j < BOARDSIZEy; j++)
    if ((pieceArray[i, j] != null)
    && (pieceArray[i, j] == pieceArray[i, j + 1])
    && (pieceArray[i, j] == pieceArray[i, j + 2])
    && (pieceArray[i, j] == pieceArray[i, j + 3]))
    if (pieceArray[i, j].IsStarter != movebool)
    found = true;
    goto Done; //interesting way of getting out of nested for loop
    //for more on goto: http://stackoverflow.com/questions/324831/breaking-out-of-a-nested-loop
    //Vertikal
    for (int i = 0; i < BOARDSIZEx; i++)
    for (int j = 0; j < BOARDSIZEy - 3; j++)
    if ((pieceArray[i, j] != null)
    && (pieceArray[i, j] == pieceArray[i + 1, j]) && (pieceArray[i, j] == pieceArray[i + 2, j])
    && (pieceArray[i, j] == pieceArray[i + 3, j]))
    if (pieceArray[i, j].IsStarter != movebool)
    found = true;
    goto Done; //interesting way of getting out of nested for loop
    //for more on goto: http://stackoverflow.com/questions/324831/breaking-out-of-a-nested-loop
    //Diagonal, Lower left to upper right
    for (int i = 0; i < BOARDSIZEx - 3; i++)
    for (int j = 0; j < BOARDSIZEy - 3; j++)
    if ((pieceArray[i, j] != null)
    && (pieceArray[i, j] == pieceArray[i + 1, j +1])
    && (pieceArray[i, j] == pieceArray[i + 2, j + 2])
    && (pieceArray[i, j] == pieceArray[i + 3, j + 3]))
    if (pieceArray[i, j].IsStarter != movebool)
    found = true;
    goto Done; //interesting way of getting out of nested for loop
    //for more on goto: http://stackoverflow.com/questions/324831/breaking-out-of-a-nested-loop
    //Diagonal, upper left to lower right
    for (int i = 0; i >= BOARDSIZEx; i--)
    for (int j = 0; j < BOARDSIZEy - 3; j++)
    if ((pieceArray[i, j] != null)
    && (pieceArray[i, j] == pieceArray[i - 1, j + 1])
    && (pieceArray[i, j] == pieceArray[i - 2, j + 2])
    && (pieceArray[i, j] == pieceArray[i - 3, j +3]))
    if (pieceArray[i, j].IsStarter != movebool)
    found = true;
    goto Done; //interesting way of getting out of nested for loop
    //for more on goto: http://stackoverflow.com/questions/324831/breaking-out-of-a-nested-loop
    Done:
    return !found;
    It's at the vertical check that the error occurs and also my checkwin doesnt seem to respond to the call in the game.cs code.
    //check for win
    bool moveBool = true; //returns yes or no depending on whether both players have moved their pieces
    if (move % 2 == 0) moveBool = false;
    bool win = rules.checkWin(pieceArray, moveBool);
    //The game is won!
    if (win)
    string winningPlayerName = player1.Name; //creating a new player instance, just for shortening the code below
    if (moveBool == false) winningPlayerName = player2.Name; //if it was player 2 who won, the name changes
    message = winningPlayerName + " has won the game!\n\n"; //The name of the player
    Board.PrintMove(message); //Print the message
    if (moveBool == true) player1.Score += 1; else player2.Score += 1; //update score for the players
    //The player's labels get their update texts (score)
    Board.UpdateLabels(player1, player2);
    //Here, depending on what one wants to do, the board is reset etc.
    else
    move++; //draw is updated
    And here's a picture on how it looks like at the moment.
    Thanks in Advance!
    Student at the University of Borås, Sweden

    for (int i = 0; i < BOARDSIZEx; i++) // If BOARDSizex is the number of elements in the first dimension...
    for (int j = 0; j < BOARDSIZEy - 3; j++)
    if ((pieceArray[i, j] != null)
    && (pieceArray[i, j] == pieceArray[i + 1, j]) && (pieceArray[i, j] == pieceArray[i + 2, j])
    && (pieceArray[i, j] == pieceArray[i + 3, j])) // Then [i + anything, j] will be out of range.
    You probably meant to add the one, two, or three to the j rather than the i.

  • Asadmin admin user code and password

    I'm trying to lear j2ee using System Application Server Platform Edition 8. I try to use asadmin tool and it requieres me the admin user code with the respective password, and I don't remember if it was set during setup, neither I have read in any place what it is. Can anybody help me?
    Thanks in advance.

    Thanks!!!!, while I was waiting for an answer, I browsed the topics and voila, found the topic you are referring at now.

Maybe you are looking for

  • Is there a way to set maximum cache size or to change default cache directory to sd card on Android?

    I'm low on space in my Android Phone and Firefox Cache is huge by my phone standards. I have to clear data after each time I use firefox. Firefox is great but I'm using it less and less, day by day. I browsed Internet for tips, but while I was able t

  • OSB Dynamic Routing Downstream Error Handling.

    Hi I've written several services which implement dynamic routing proxys which route to other proxys who then talk to business services. My problem is that when the downstream service encounters an error the router seems to throw away that error messa

  • IPod Touch and Disk Usage...

    Hi, can an iPod Touch be used as an external HD like my Classic? There's no iPod Touch icon on my Desktop whenever I plugged it in... Thanks.

  • ActionListener in ADF button

    Hi, I have a button with actionlistener property as "#{bindings.CreateInsert3.execute}". How can i call the same from backingbean? i need this becausei want to set some values before this operation when someone clicks the button.Can someone give me c

  • Movement Type 351

    Dear All,            I want to know the process with movement type 351, What type of accounting entries and which plant (supplying plant or receving plant) ? does document with 351 with + sign automatically generated in the system ? Thanks