|
The only tool I've ever heard of for that is IBM's Rational Purify. I've never used, nor seen it, so I can't vouch for it's effectiveness.
|
|
|
|
|
Hi,
not really an answer to your question, but here it goes: you can do two tests without
any specialized tools:
1. run other software on the same machine
2. run your app on another machine
if 1. seems OK and 2. fails, you probably have bugs (such as thread synchronization problems);
if 1. fails and 2. seems OK, your machine most likely has a problem.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
This one is throwing me for a doozie. Have a program that is recording times and writing to a database. We are in testing mode right now. We looked at the database during testing and noticed that sometimes the date were written in the mm/dd/yyyy and time in the 12-hr format. Other times it was in the dd/mm/yyyy and time in the 24-hr format.
So I wrote a q&d to output dates and noticed that when using firefox the date was in dd//mm/yyyy format and when in IE the format was in mm/dd/yyyy format.
But when we were testing we noticed that it sometimes would write in dd/mm/yyyy format from IE also. Sporadic.
The site is on the web server and the database is also on the same web server.
Anyone know how or why this would happen?
Thanx in advance.
Jude
|
|
|
|
|
TheJudeDude wrote: We looked at the database during testing and noticed that sometimes the date were written in the mm/dd/yyyy and time in the 12-hr format. Other times it was in the dd/mm/yyyy and time in the 24-hr format.
This tells me you're storing your date/times in your database as a String, not as a DateTime value. If so, this is a HUGE mistake that will cause you all kinds of headaches like this.
|
|
|
|
|
Hi there,
could anyone help me start with this: don't know where to look or start
I have 3 tables which i want to show in a datagrid
--> Parent First row = Customer name
+ child first row totalsum of orders for this customer
+ ChildChild First row = Detailed orders for this customer
With a + or - button to click open or not
I also work wit *.xsd scheme
tableAdapters,... already have a relation between those tables
But then i'm stuck
Please get me back on track...
If i read everywhere it's all in ASP.net with dataset and thinks like that...
But i don't know how thhat helps me...
thanks
A.
|
|
|
|
|
Create a Dataset Object Fill the Dataset with Tables then Create the Relationship between these tables make the DatagridView.DataSource property equal to that Dataset. Does this solves your problem?
AliAmjad (MCP)
|
|
|
|
|
It is all with dataset but i have tableAdapters
so how do i fill my dataset with correct data throug TableAdapters?
The relationship is already created between my tableAdapters!
i can use My tableAdapter as well to fill a datagrid, why change to a Dataset?
A.
|
|
|
|
|
DataGridView is a Windows Forms control only. It doesn't support showing child tables the way you want without HEAVY modifications to the DGV. You'd be better off using a 3rd party grid control like DevExpress' XtraGrid.
|
|
|
|
|
No other Solution?
I don't want the third party grid!
But thanks anyway
A.
|
|
|
|
|
The other solution would take you about 3 months to write. Like I said, the DGV doesn't natively support showing child tables. I went for a 3rd party solution, and after downloading and installing the controls, had my requirement done in about 3 minutes.
|
|
|
|
|
You can use the "old" DataGrid.
|
|
|
|
|
|
Some help on good practice would be appreciated.
I have the following function and similar functions, but often get a squigly line
somewhere in the functions which tells me the function does not return a value on all paths.
Public Function ConvertToXmlDocument() As XmlDocument
'Alter the return type to suit - either stream or file or other
Dim FileLineString As String
Dim LineNumberInteger As Int32
Dim XmlSequenceCount As Int32
'Create xml envelope
Dim XmlOutputDocument As New Xml.XmlDocument
Try
'Intialise Xml Document
If InitialiseXmlDocument(XmlOutputDocument, "Flat file" Then
'Loop array / reading each line of file content
For Each FileLineString In Me.FileContentString
'Line count
LineNumberInteger += 1
'Retrieve xml node.......
'Unformat retrieved node against file line....
Next
Return XmlOutputDocument
End If
Catch ex As Exception
Return Nothing
End Try
End Function
Should i use multiple returns (ie another return statement after the end try) or is their a much better way in general, not just specific to this function?
Many Thanks
|
|
|
|
|
Dim XmlOutputDocument As New Xml.XmlDocument
try
'do your code
catch ex As Exception
'error message
end try
Return XmlOutputDocument
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
The 'function does not return a value on all paths' is happening because you have code like...
Try
If x=y Then
...
Return x
End If
Catch
Return Nothing
End Try
But if you note if the 'If' clause is not met then nothing will be returned, so you should implement something similar to
Try
If x=y Then
...
Return x
Else
Return y
End If
Catch
Return Nothing
End Try
|
|
|
|
|
Many thanks , think i'll try applying the return at the end of the function.
|
|
|
|
|
I believe in the concept that a function should have but a single Return statement. Create a variable in the beginning of the function and set it's default return value. The rest of the function code should work on validating input parameters and changing that default value or throwing an exception if something goes wrong. By the time the execution gets to the bottom of the function, the return statement has the value that needs to go back to the caller.
|
|
|
|
|
I have system developed in VB.Net,I need it to send e mails to a special domain for example to instructors in university
any one can help?
There is always something to learn
|
|
|
|
|
the following code should work
Imports System.web.Mail
Imports System.Web
Private Sub sendmail()
Dim attch As ArrayList = Nothing
Dim myMessage As MailMessage
Try
myMessage = New MailMessage()
With myMessage
.To = ' INSERT adress to who to send
.From = 'INSERT From wich adress to send
.Subject = 'INSERT subject
Dim text As String = System.Text.RegularExpressions.Regex.Replace(txtbody.Text, "\n", "<br>")
.Body = text
.BodyFormat = MailFormat.Html
'.Cc = CC
'.Bcc = BCC
If Not attch Is Nothing Then
For i = 0 To attch.Count - 1
If FileExists(attch(i)) Then
Dim s As New System.Web.Mail.MailAttachment(attch(i))
.Attachments.Add(s)
End If
Next
End If
End With
SmtpMail.SmtpServer = 'INSERT smtp server here
SmtpMail.Send(myMessage)
Catch myexp As Exception
' Throw myexp
End Try
end sub
hope this helps
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistakes.
|
|
|
|
|
Damn! I have some grass that needs cutting and my truck needs an oil change too! Ummm, what else can you do for me, ... OH! How about refinishing the floor in a bedroom and painting. I mean, since you're doing his homework for him and all...
|
|
|
|
|
Dave Kreskowiak wrote: I have some grass that needs cutting
shure when I'm in the neihberhood
Dave Kreskowiak wrote: my truck needs an oil change
I can try but will not be held responsible for any accidents like accidently setting you'r truck on fire
Dave Kreskowiak wrote: refinishing the floor in a bedroom and painting
shure but I pick the colors
Dave Kreskowiak wrote: I mean, since you're doing his homework for him and all...
I dought that his homework is only sending a mail (if it is I wish I went to his school). But you'r right I should have pikked up on that. Anyway I had the code written in one of my projects so I took me all but 3min to do the post but still 3min to much.
I'll go beat myself up now for not spotting this (normaly I'm better at spotting homework questions, guess he got lucky and got me on a weak moment)
-- modified at 3:34 Thursday 25th October, 2007
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistakes.
|
|
|
|
|
TDDragon wrote: dought that his homework is only sending a mail (if it is I wish I went to his school). But you'r right I should have pikked up on that. Anyway I had the code written in one of my projects so I took me all but 3min to do the post but still 3min to much.
I'll go beat myself up now for not spotting this (normaly I'm better at spotting homework questions, guess he got lucky and got me on a weak moment)
It happens. I've caught myself doing the same thing, and I usually beat myself up like this too.
TDDragon wrote: The only way we learn is by making mistakes.
That's what going to University is for!
|
|
|
|
|
Dave Kreskowiak wrote:
TDDragon wrote:
The only way we learn is by making mistakes.
That's what going to University is for!
making mistakes or learning
true going to university is good but I'v learned more in the 9 months now that I'v been working than my 4 years in university
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistakes.
|
|
|
|
|
thanks a lot
your help is helpfull,
but I have a question more about this topic: can I let the message content be the result of some calculation with in my system(programm)?
to contain a chart for example?
Best Wishes
Knowledge student
There is always something to learn
|
|
|
|
|
Hi,
I am a very beginner in ASP & VB.NET development
I learnt how to create classes in web site using VB.Net language but I do not know how to use them or even give them the ability to change in the main form(defualt)
Thanks
There is always something to learn
|
|
|
|