Bug in DBForum.cs

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
2/3/2012 8:12:37 AM
Gravatar
Total Posts 5

Bug in DBForum.cs

version 2.3.8.1

file: DBForum.cs

Line 961:

            arParams = new SqlCeParameter[3];

arParams[0] = new SqlCeParameter("@ItemID", SqlDbType.Int);             arParams[0].Direction = ParameterDirection.Input;             arParams[0].Value = forumId;

arParams[1] = new SqlCeParameter("@MostRecentPostUserID", SqlDbType.Int);             arParams[1].Direction = ParameterDirection.Input;             arParams[1].Value = mostRecentPostUserID;

arParams[2] = new SqlCeParameter("@PostCount", SqlDbType.Int);             arParams[2].Direction = ParameterDirection.Input;             arParams[2].Value = postCount;

arParams[3] = new SqlCeParameter("@MostRecentPostDate", SqlDbType.DateTime);             arParams[3].Direction = ParameterDirection.Input;             arParams[3].Value = mostRecentPostDate;

 

The first line shoud be

arParams = new SqlCeParameter[4];

Otherwise, you have 'out of range' exception on arParams[3].

 

Regards,

Weijun

2/3/2012 8:41:48 AM
Gravatar
Total Posts 18439

Re: Bug in DBForum.cs

Hi Weijun,

Thanks for the bug report. This is now fixed in the source code repository and I have patched the 2.3.8.1 release for SQL CE.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.