Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
GeneralRe: PInvoke stack overflow Pin
openLG2-Feb-12 3:09
openLG2-Feb-12 3:09 
AnswerRe: PInvoke stack overflow Pin
Luc Pattyn2-Feb-12 3:10
sitebuilderLuc Pattyn2-Feb-12 3:10 
GeneralRe: PInvoke stack overflow Pin
openLG2-Feb-12 3:16
openLG2-Feb-12 3:16 
QuestionNeed help for duplicate rows automatically inserted from front end. Pin
Member 85919852-Feb-12 2:17
Member 85919852-Feb-12 2:17 
AnswerRe: Need help for duplicate rows automatically inserted from front end. Pin
PIEBALDconsult2-Feb-12 2:28
mvePIEBALDconsult2-Feb-12 2:28 
AnswerRe: Need help for duplicate rows automatically inserted from front end. Pin
OriginalGriff2-Feb-12 3:03
mveOriginalGriff2-Feb-12 3:03 
GeneralRe: Need help for duplicate rows automatically inserted from front end. Pin
Luc Pattyn2-Feb-12 3:29
sitebuilderLuc Pattyn2-Feb-12 3:29 
AnswerRe: Need help for duplicate rows automatically inserted from front end. Pin
Dave Kreskowiak2-Feb-12 3:49
mveDave Kreskowiak2-Feb-12 3:49 
Perfect?? Really??

Everyone thinks their code is perfect, right up until it explodes on a machine that was not your DEV box.

I've got an app I've written going out to 10,800 machines next week. Even though I've tested it to death on a dozen machines, both XP and 7 and had a mini-pilot, I can no longer find anything wrong when the app is used normally and when I intentionally try and break it. Does that mean that my code is perfect?? Hell NO! It just means there's a test case that I haven't thought of yet.

Am I nervous that I have an app going out to so many machines? You bet your ass I am!! Especially so considering this app was comissioned by a VP and has very high visibility.

Chances are VERY good that its your code that's screwed up and there's some misguided step in your logic that you think is right and it's not, or some condition you didn't think of or are not checking for that's causing the problem.


Member 8591985 wrote:
I use Stored procedure to insert data in the table.
But somehow I find
duplicate entries except for first column in the table.


AND

Member 8591985 wrote:
Because I tried it myself and it wont allow to enter duplicate values as my
logic is perfect and I am inserting values on button click.


Case in point. You're obviously doing something very wrong that is never going to work in a multi-user environment. The logic works perfectly IF and only IF there is one person running your frontend. Your code is probably written for that limitation and falls on its face when used by multiple users because it doesn't take into account two people using the code at the exact same time.

You should be asking yourself (and your logic) what would happen if 2 or more users click on this button at the exact same time.

Member 8591985 wrote:
How is this possible? I mean is there an error in my front end coding or is it
an error in Sql-server.


An error in SQL Server itself? Most assuredly not. Is there some problem in your stored procedure AND/OR your frontend code? I'd guarantee it!

QuestionCall validation during setup Pin
iamdking1-Feb-12 20:20
iamdking1-Feb-12 20:20 
AnswerRe: Call validation during setup Pin
thatraja1-Feb-12 20:40
professionalthatraja1-Feb-12 20:40 
AnswerRe: Call validation during setup Pin
Abhinav S1-Feb-12 21:16
Abhinav S1-Feb-12 21:16 
QuestionSaveSetting Pin
Ian_urquhart1-Feb-12 1:35
Ian_urquhart1-Feb-12 1:35 
AnswerRe: SaveSetting Pin
Pete O'Hanlon1-Feb-12 2:28
mvePete O'Hanlon1-Feb-12 2:28 
GeneralRe: SaveSetting Pin
Ian_urquhart1-Feb-12 5:38
Ian_urquhart1-Feb-12 5:38 
GeneralRe: SaveSetting Pin
Pete O'Hanlon1-Feb-12 7:30
mvePete O'Hanlon1-Feb-12 7:30 
AnswerRe: SaveSetting Pin
Abhinav S1-Feb-12 3:15
Abhinav S1-Feb-12 3:15 
AnswerRe: SaveSetting Pin
BillWoodruff1-Feb-12 5:36
professionalBillWoodruff1-Feb-12 5:36 
GeneralRe: SaveSetting Pin
Ian_urquhart1-Feb-12 5:56
Ian_urquhart1-Feb-12 5:56 
GeneralRe: SaveSetting Pin
SledgeHammer011-Feb-12 6:27
SledgeHammer011-Feb-12 6:27 
QuestionHow to find if client is idle or not? Pin
sreenathpktr1-Feb-12 1:06
sreenathpktr1-Feb-12 1:06 
AnswerRe: How to find if client is idle or not? Pin
DaveAuld1-Feb-12 1:32
professionalDaveAuld1-Feb-12 1:32 
AnswerRe: How to find if client is idle or not? Pin
DaveyM691-Feb-12 3:21
professionalDaveyM691-Feb-12 3:21 
AnswerRe: How to find if client is idle or not? Pin
jschell1-Feb-12 10:10
jschell1-Feb-12 10:10 
Question[SOLVED] Checkbox Column - DatagridView Pin
AmbiguousName1-Feb-12 0:51
AmbiguousName1-Feb-12 0:51 
AnswerRe: Checkbox Column - DatagridView Pin
Eddy Vluggen1-Feb-12 9:55
professionalEddy Vluggen1-Feb-12 9:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.