Author Topic: Sambapos Crashing  (Read 10996 times)

lemmings

  • Full Member
  • ***
  • Posts: 165
Sambapos Crashing
« on: February 01, 2013, 08:05:57 pm »
Attached is an error log, Sambapos keeps crashing intermittently.

This is the 3rd time this evening and mainly happens when in Management, amending modifiers or products.

It could be an issue with the SQL Server as there may be some delay when saving data, so perhaps I'am moving about from one screen to the next without waiting for the data to be saved. (I have been putting the database under some strain this evening with the rework of recipes etc etc)

Is is possible someone in support could just enlighten me to what this error is linked too ?

Thank You

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Sambapos Crashing
« Reply #1 on: February 01, 2013, 08:58:34 pm »
This is a grid editor bug.
The reason is simple but the effect seems horrible :)

That happens while modifying data on grids. If you notice a grid cell has a red border that means "entered value not accepted". You can save or close the screen while grid is in error state but it will crash as soon as you display that screen again.

There are two things to avoid.
1. While editing data do not move to other cells with mouse click. Just press enter.
2. Do not clear numeric values with delete key. Enter zero instead.

The bug is: when grid is in error state, second attempt to display data crashes it. It should simply allow refresh when it is in error state.

Since that grid is part of .net framework library we can't fix the bug because it is closed source.
So it submitted to Microsoft but still not solved.
https://connect.microsoft.com/VisualStudio/feedback/details/532494/wpf-datagrid-and-tabcontrol-deferrefresh-exception

I didn't tested it with latest (4.5) framework. If it still not solved I'll try to find a workaround.

It will be awesome if .net framework completely becomes open source... It will happen one day but nobody can know when.

lemmings

  • Full Member
  • ***
  • Posts: 165
Re: Sambapos Crashing
« Reply #2 on: February 02, 2013, 05:30:26 am »
Ok thanks. Its not an issue with Sambapos or my SQL  database.

I will avoid mouse clicks when editing as this is probably the maim cause.

rvandam

  • Jr. Member
  • **
  • Posts: 96
Re: Sambapos Crashing
« Reply #3 on: February 02, 2013, 01:09:45 pm »
@emre The mono project is a good attempt to make an opensource .net framework :)

http://www.mono-project.com/Main_Page

lemmings

  • Full Member
  • ***
  • Posts: 165
Re: Sambapos Crashing
« Reply #4 on: February 10, 2013, 04:32:28 am »
It does appear that the 4.5 framework has resolved this issue.

It does explain why my desktop was never crashing when I setup Sambapos but my fathers till keeps crashing, this was running .NET 3.5.

I have upgraded the till to 4.5 framework and the issue has not reoccured as yet