Menu

#2 Invalid cast error dalprovider.cs

open
WS-DAL (1)
5
2010-08-15
2010-08-15
Anonymous
No

Invalid cast in Dalprovider.cs. I believe this is because of the provided SQL MYSQL script has Character id as uint. I changed dalprovider.cs to implicitly cast the the object to an (uint32) and then int. I believe updating the table or script entry would fix this aswell.

if (p != null)
{
//charID = (int)p;
charID = (int)(UInt32)p;
}

Discussion

  • Enriko Riba

    Enriko Riba - 2010-08-15

    Keeping the MSSQL & MySQL tables in sync would fix that but casting to uint would break MS SQL users.

     
  • Enriko Riba

    Enriko Riba - 2010-08-15
    • labels: --> WS-DAL
    • assigned_to: nobody --> skyflash
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.