Re: Strange behaviour
- From: "Jon Rowlan" <jon.rowlan@xxxxxxxx>
- Date: Mon, 9 Jan 2006 19:06:38 -0000
Somewhat embarrasing to admit it ....
I am calling the program over and over again ...
and right at the start of the program I kill the file.
Many many thanks for all the suggestions ... I appreciate your time and
humbly apologise for wasting it all. :-(
jON
p.s. I did get some good tips there though .... freefile is a good one for
example so its not all wasted ....
"Jon Rowlan" <jon.rowlan@xxxxxxxx> wrote in message
news:%23EIUL0FFGHA.3168@xxxxxxxxxxxxxxxxxxxxxxx
>I have this function :
>
> Public Function LogError(Message As String)
>
> MsgBox LogFilePathName
>
> On Error GoTo LogErrorError
>
> Open LogFilePathName For Append As #1
> Print #1, Message
> Print #1, ""
> Print #1, "[" & Address(1) & "],[" & Address(2) & "],[" & Address(3) &
> "],[" & Address(4) & "],[" & Address(5) & "],[" & Address(6) & "]"
> Print #1, ""
> Close #1
> Exit Function
>
> LogErrorError:
> MsgBox "Error: " & Err.Number & ", " & Err.Description
>
> End Function
>
> I have put msgbox messages in before and after the Open/Write/close code
> and when I run my program calling this function is triggers fine. In vb
> debugger it also triggers fine.
>
> However, when compiled as a .exe the msgbox's fire up so that I can see
> the function entry and exit points are being traversed but my log file
> contains no entries. When running in the debugger the code executes and
> the log file is updated, just not when its compiled.
>
> I have checked with a msgbox that the contents of LogFilePathName contain
> a valid path, albeit converted to DOS 8.3 squiggly addresses.
>
> Am I doing something wrong ? The compiled program is not behaving as the
> interpeted one ????
>
> jON
>
> p.s. Address is a public dim'd array
>
.
- Follow-Ups:
- Re: Strange behaviour
- From: Thorsten Albers
- Re: Strange behaviour
- References:
- Strange behaviour
- From: Jon Rowlan
- Strange behaviour
- Prev by Date: Re: Moving Windows Taskbar by coding
- Next by Date: Re: Moving Windows Taskbar by coding
- Previous by thread: Re: Strange behaviour
- Next by thread: Re: Strange behaviour
- Index(es):
Relevant Pages
|