473,837 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.Net file access problem with UNC

I need to access some data on a server. I can access it directly using UNC
(i.e. \\ComputerName\ ShareName\Path\ FileName) or using a mapped network
drive resource (S:\Path\FileNa me).

Here is my problem: my vb.net program has problems with UNC. If the UNC
server is restarted or goes off-line, my VB.net program crashes. The code
for UNC access to the file is included below and is put in the tick event of
a form timer control running every 10 seconds. The program does not crash
when the network server goes down using the same code below except that the
network resource is referenced using a mapped drive (i.e. S:\).

=======

Try

If File.Exists("\\ Server1\Files\D ata1.dbf") Then

Try
File.Copy(("\\S erver1\Files\Da ta1.dbf",
"C:\Data\tblDat a.dbf", True)
Catch
'Do Nothing
End Try

End If

Catch

'msgbox error

End Try

=======

The reason I would prefer to use UNC is so that the drive does not have to
be mapped on the clients computer - and the client cannot goof around with
the server files that easily (I do not have the ability to modify
permissions in this situation at all).

Note: the program only crashes after the program has been running for a
while (i.e. after multiple ticks). So, I'm guessing that if it is in the
middle of a check and the server goes down, then it crashes. Because, if you
put an invalid UNC path and start up the program, it handles that without a
problem ( i.e. no crashes, just runs every 10 seconds).
Nov 21 '05 #1
8 9771
what do you mean by "crashes?"
Do you get an error message?

How big are these files? Do they take more than 10 seconds to copy from one
place to another?

Are you testing this by taking down the server, or does this just happen
without intervention? If the latter, how often?

I'm wondering if you aren't attempting to execute the timed code while it is
still running from the previous tick?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:uADBd.4151 2$KO5.40042@clg rps13...
I need to access some data on a server. I can access it directly using UNC
(i.e. \\ComputerName\ ShareName\Path\ FileName) or using a mapped network
drive resource (S:\Path\FileNa me).

Here is my problem: my vb.net program has problems with UNC. If the UNC
server is restarted or goes off-line, my VB.net program crashes. The code
for UNC access to the file is included below and is put in the tick event of a form timer control running every 10 seconds. The program does not crash
when the network server goes down using the same code below except that the network resource is referenced using a mapped drive (i.e. S:\).

=======

Try

If File.Exists("\\ Server1\Files\D ata1.dbf") Then

Try
File.Copy(("\\S erver1\Files\Da ta1.dbf",
"C:\Data\tblDat a.dbf", True)
Catch
'Do Nothing
End Try

End If

Catch

'msgbox error

End Try

=======

The reason I would prefer to use UNC is so that the drive does not have to
be mapped on the clients computer - and the client cannot goof around with
the server files that easily (I do not have the ability to modify
permissions in this situation at all).

Note: the program only crashes after the program has been running for a
while (i.e. after multiple ticks). So, I'm guessing that if it is in the
middle of a check and the server goes down, then it crashes. Because, if you put an invalid UNC path and start up the program, it handles that without a problem ( i.e. no crashes, just runs every 10 seconds).

Nov 21 '05 #2
"Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in message
news:eLGBd.3168 49$HA.295458@at tbi_s01...
what do you mean by "crashes?"
Do you get an error message?
No error message - VB.Net program on Windows XP crashes and reboots
immediately

How big are these files? Do they take more than 10 seconds to copy from one place to another?
No, only a fraction of a second.


Are you testing this by taking down the server, or does this just happen
without intervention? If the latter, how often?

I've done tests by taking down the server. But, in the production
environment, this server goes through a number of reboots under normal
operations daily.
I'm wondering if you aren't attempting to execute the timed code while it is still running from the previous tick?
I've disabled the timer during the tick - so, that is not happening.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:uADBd.4151 2$KO5.40042@clg rps13...
I need to access some data on a server. I can access it directly using UNC (i.e. \\ComputerName\ ShareName\Path\ FileName) or using a mapped network
drive resource (S:\Path\FileNa me).

Here is my problem: my vb.net program has problems with UNC. If the UNC
server is restarted or goes off-line, my VB.net program crashes. The code for UNC access to the file is included below and is put in the tick event
of
a form timer control running every 10 seconds. The program does not
crash when the network server goes down using the same code below except that

the
network resource is referenced using a mapped drive (i.e. S:\).

=======

Try

If File.Exists("\\ Server1\Files\D ata1.dbf") Then

Try
File.Copy(("\\S erver1\Files\Da ta1.dbf",
"C:\Data\tblDat a.dbf", True)
Catch
'Do Nothing
End Try

End If

Catch

'msgbox error

End Try

=======

The reason I would prefer to use UNC is so that the drive does not have to be mapped on the clients computer - and the client cannot goof around with the server files that easily (I do not have the ability to modify
permissions in this situation at all).

Note: the program only crashes after the program has been running for a
while (i.e. after multiple ticks). So, I'm guessing that if it is in the
middle of a check and the server goes down, then it crashes. Because, if

you
put an invalid UNC path and start up the program, it handles that

without a
problem ( i.e. no crashes, just runs every 10 seconds).


Nov 21 '05 #3
First off, if you can't see the error, you can't address it.
Turn off "auto reboot on system crash" on your XP client.
http://www.theeldergeek.com/auto_reb...stem_crash.htm

Also, if you haven't installed XP SP2 yet, do it now. Your problem may
already have been fixed.
An error in a .net app should never crash a system. In fact, I'm not sure
your app is actually causing the system crash.

Have you checked the error log?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:f7IBd.4299 4$KO5.14316@clg rps13...
"Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in message
news:eLGBd.3168 49$HA.295458@at tbi_s01...
what do you mean by "crashes?"
Do you get an error message?
No error message - VB.Net program on Windows XP crashes and reboots
immediately

How big are these files? Do they take more than 10 seconds to copy from

one
place to another?


No, only a fraction of a second.


Are you testing this by taking down the server, or does this just happen
without intervention? If the latter, how often?


I've done tests by taking down the server. But, in the production
environment, this server goes through a number of reboots under normal
operations daily.
I'm wondering if you aren't attempting to execute the timed code while it is
still running from the previous tick?
I've disabled the timer during the tick - so, that is not happening.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:uADBd.4151 2$KO5.40042@clg rps13...
I need to access some data on a server. I can access it directly using UNC (i.e. \\ComputerName\ ShareName\Path\ FileName) or using a mapped network drive resource (S:\Path\FileNa me).

Here is my problem: my vb.net program has problems with UNC. If the UNC server is restarted or goes off-line, my VB.net program crashes. The code for UNC access to the file is included below and is put in the tick event
of
a form timer control running every 10 seconds. The program does not

crash when the network server goes down using the same code below except that the
network resource is referenced using a mapped drive (i.e. S:\).

=======

Try

If File.Exists("\\ Server1\Files\D ata1.dbf") Then

Try
File.Copy(("\\S erver1\Files\Da ta1.dbf",
"C:\Data\tblDat a.dbf", True)
Catch
'Do Nothing
End Try

End If

Catch

'msgbox error

End Try

=======

The reason I would prefer to use UNC is so that the drive does not
have to be mapped on the clients computer - and the client cannot goof around with the server files that easily (I do not have the ability to modify
permissions in this situation at all).

Note: the program only crashes after the program has been running for
a while (i.e. after multiple ticks). So, I'm guessing that if it is in the middle of a check and the server goes down, then it crashes. Because,

if you
put an invalid UNC path and start up the program, it handles that

without
a
problem ( i.e. no crashes, just runs every 10 seconds).



Nov 21 '05 #4
"Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in message
news:keKBd.8230 $3m6.4869@attbi _s51...
First off, if you can't see the error, you can't address it.
Turn off "auto reboot on system crash" on your XP client.
http://www.theeldergeek.com/auto_reb...stem_crash.htm
Ok, here is the blue screen that comes up when auto reboot on system crash
is disabled:

==========
A problem has been detected and windows has been shut down to prevent damage
to your computer.

BAD_POOL_CALLER

If this is the first time you've seen this stop error screen, restart your
computer. If this screen appears again, follow these steps:

Check to make sure any new hardware or software is properly installed. If
this is a new installation, ask your hardware or software manufacturer for
any windows updates you might need.

If problems continue, disable or remove any newly installed hardware or
software. Disable BIOS memory options such as caching or shadowing. If you
need to use safe mode to remove or disable components, restart your
computer, press F8 to select Advanced Startup Options, and then select safe
mode.

Technical Information:

*** STOP: 0x000000C2 (0x00000050, 0xE1BD5000, 0x00000BD5, 0x0A800000)

Beginning dump of physical memory
Physical memory dump complete
Contact your system administrator or technical support group for further
assistance.
==========

This is a clean system on which I've installed XP cleanly from CD-ROM 3
times - I've also tried another brand new PC - same problem. This is the
only software that is running besides the Lantastic Network software used to
connect to the DOS Lantastic server. To test, I'm pulling the network
connection out from the DOS server to take it off-line -- and, that is the
only thing I am doing. When the VB.NET program is set to get the network
file in the try block from a mapped drive to the DOS server (S:\), no crash
occurs. When I use UNC to get the file in the try block, take the DOS server
off-line, the program (system) crashes.

Also, if you haven't installed XP SP2 yet, do it now. Your problem may
already have been fixed.
Same problem on XP SP2.
An error in a .net app should never crash a system. In fact, I'm not sure your app is actually causing the system crash.
The only thing I change is the way the path is referenced when communicating
with the DOS server. I've streamlined the code and tested a very simple
version. When my program references a UNC path, it crashes when that UNC
path is not available.

When I reference a mapped network drive (mapped to the very same UNC path),
no crash occurs - it just does its check and fails (does not do the file
copy). Then, after the fail, I have the code enable the timer again and it
checks again then as scheduled every 10 seconds. When I bring the DOS server
on-line again, it will work again and do the file copy fine.

When everything is connected, identical code runs fine in both situations
(UNC & Mapped Drive) and the remote files are copied without any issues. So,
the simple file copy code seems to work fine.

Basically, in summary:

Reference DOS Server using UNC, DOS Server on-line: file copy works
Reference DOS Server using UNC, DOS Server OFF-LINE: system crashes, blue
screen, have to restart
Reference DOS Server using mapped drive, DOS Server on-line: file copy works
Reference DOS Server using mapped drive, DOS Server OFF-LINE: program runs -
no file copy, when server back on-line again file copy works again.


Have you checked the error log?

Nothing in the Application/Security log.

System log has 2 errors that I believe are related to this problem:

=======

Event
Source: Save Dump
Event ID: 1001
Description:
The computer has rebooted from a bugcheck. The bugcheck was: 0x000000c2
(0x00000050, 0xe1bd5000, 0x00000bd5, 0x0a800000). A dump was saved in:
C:\WINDOWS\Mini dump\Mini010205-01.dmp.

=======

Event
Source: System Error
Category: (102)
Event ID: 1003
Description:
Error code 000000c2, parameter1 00000050, parameter2 e1bd5000, parameter3
00000bd5, parameter4 0a800000.

=======

There are acpi errors (on every reboot) and W32Time errors (every so often,
including reboot) that are also listed in this system's error log.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:f7IBd.4299 4$KO5.14316@clg rps13...
"Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in message
news:eLGBd.3168 49$HA.295458@at tbi_s01...
what do you mean by "crashes?"
Do you get an error message?
No error message - VB.Net program on Windows XP crashes and reboots
immediately

How big are these files? Do they take more than 10 seconds to copy from
one
place to another?


No, only a fraction of a second.


Are you testing this by taking down the server, or does this just
happen without intervention? If the latter, how often?


I've done tests by taking down the server. But, in the production
environment, this server goes through a number of reboots under normal
operations daily.
I'm wondering if you aren't attempting to execute the timed code while it
is
still running from the previous tick?

I've disabled the timer during the tick - so, that is not happening.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:uADBd.4151 2$KO5.40042@clg rps13...
> I need to access some data on a server. I can access it directly

using UNC
> (i.e. \\ComputerName\ ShareName\Path\ FileName) or using a mapped network > drive resource (S:\Path\FileNa me).
>
> Here is my problem: my vb.net program has problems with UNC. If the UNC > server is restarted or goes off-line, my VB.net program crashes. The

code
> for UNC access to the file is included below and is put in the tick

event
of
> a form timer control running every 10 seconds. The program does not

crash
> when the network server goes down using the same code below except that the
> network resource is referenced using a mapped drive (i.e. S:\).
>
> =======
>
> Try
>
> If File.Exists("\\ Server1\Files\D ata1.dbf") Then
>
> Try
> File.Copy(("\\S erver1\Files\Da ta1.dbf",
> "C:\Data\tblDat a.dbf", True)
> Catch
> 'Do Nothing
> End Try
>
> End If
>
> Catch
>
> 'msgbox error
>
> End Try
>
> =======
>
> The reason I would prefer to use UNC is so that the drive does not have
to
> be mapped on the clients computer - and the client cannot goof

around with
> the server files that easily (I do not have the ability to modify
> permissions in this situation at all).
>
> Note: the program only crashes after the program has been running

for a > while (i.e. after multiple ticks). So, I'm guessing that if it is in the > middle of a check and the server goes down, then it crashes.
Because,
if you
> put an invalid UNC path and start up the program, it handles that

without
a
> problem ( i.e. no crashes, just runs every 10 seconds).
>
>





Nov 21 '05 #5
Lantastic! Why didn't you say so?

I didn't even think that Artisoft supported Lantastic any more!

The problem is clearly the Lantastic driver.

I wonder why you use Lantastic anyway. It is simple to set up a TCP
network. The drivers are built in to Windows XP/98/NT/2000/2003 as well as
every version of Unix and Linux that I know of. The hardware is cheap and
the wiring can be done by anyone (I have a TCP network in my house).

That's the reason that the market dried up for Lantastic... Microsoft built
their functionality right into the OS, and Lantastic had no compelling
reason why someone should buy their product. They let their product go
stale and were overtaken.

I hate to say this, but you are asking a question on the wrong newsgroup.
You need to see if you can find a Lantastic driver that is compatible with
Windows XP. That's a question for Artisoft.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:2XNBd.4393 8$KO5.39123@clg rps13...
"Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in message
news:keKBd.8230 $3m6.4869@attbi _s51...
First off, if you can't see the error, you can't address it.
Turn off "auto reboot on system crash" on your XP client.
http://www.theeldergeek.com/auto_reb...stem_crash.htm
Ok, here is the blue screen that comes up when auto reboot on system crash
is disabled:

==========
A problem has been detected and windows has been shut down to prevent

damage to your computer.

BAD_POOL_CALLER

If this is the first time you've seen this stop error screen, restart your
computer. If this screen appears again, follow these steps:

Check to make sure any new hardware or software is properly installed. If
this is a new installation, ask your hardware or software manufacturer for
any windows updates you might need.

If problems continue, disable or remove any newly installed hardware or
software. Disable BIOS memory options such as caching or shadowing. If you
need to use safe mode to remove or disable components, restart your
computer, press F8 to select Advanced Startup Options, and then select safe mode.

Technical Information:

*** STOP: 0x000000C2 (0x00000050, 0xE1BD5000, 0x00000BD5, 0x0A800000)

Beginning dump of physical memory
Physical memory dump complete
Contact your system administrator or technical support group for further
assistance.
==========

This is a clean system on which I've installed XP cleanly from CD-ROM 3
times - I've also tried another brand new PC - same problem. This is the
only software that is running besides the Lantastic Network software used to connect to the DOS Lantastic server. To test, I'm pulling the network
connection out from the DOS server to take it off-line -- and, that is the
only thing I am doing. When the VB.NET program is set to get the network
file in the try block from a mapped drive to the DOS server (S:\), no crash occurs. When I use UNC to get the file in the try block, take the DOS server off-line, the program (system) crashes.

Also, if you haven't installed XP SP2 yet, do it now. Your problem may
already have been fixed.
Same problem on XP SP2.
An error in a .net app should never crash a system. In fact, I'm not

sure
your app is actually causing the system crash.


The only thing I change is the way the path is referenced when

communicating with the DOS server. I've streamlined the code and tested a very simple
version. When my program references a UNC path, it crashes when that UNC
path is not available.

When I reference a mapped network drive (mapped to the very same UNC path), no crash occurs - it just does its check and fails (does not do the file
copy). Then, after the fail, I have the code enable the timer again and it
checks again then as scheduled every 10 seconds. When I bring the DOS server on-line again, it will work again and do the file copy fine.

When everything is connected, identical code runs fine in both situations
(UNC & Mapped Drive) and the remote files are copied without any issues. So, the simple file copy code seems to work fine.

Basically, in summary:

Reference DOS Server using UNC, DOS Server on-line: file copy works
Reference DOS Server using UNC, DOS Server OFF-LINE: system crashes, blue
screen, have to restart
Reference DOS Server using mapped drive, DOS Server on-line: file copy works Reference DOS Server using mapped drive, DOS Server OFF-LINE: program runs - no file copy, when server back on-line again file copy works again.


Have you checked the error log?

Nothing in the Application/Security log.

System log has 2 errors that I believe are related to this problem:

=======

Event
Source: Save Dump
Event ID: 1001
Description:
The computer has rebooted from a bugcheck. The bugcheck was: 0x000000c2
(0x00000050, 0xe1bd5000, 0x00000bd5, 0x0a800000). A dump was saved in:
C:\WINDOWS\Mini dump\Mini010205-01.dmp.

=======

Event
Source: System Error
Category: (102)
Event ID: 1003
Description:
Error code 000000c2, parameter1 00000050, parameter2 e1bd5000, parameter3
00000bd5, parameter4 0a800000.

=======

There are acpi errors (on every reboot) and W32Time errors (every so

often, including reboot) that are also listed in this system's error log.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:f7IBd.4299 4$KO5.14316@clg rps13...
"Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in message news:eLGBd.3168 49$HA.295458@at tbi_s01...
> what do you mean by "crashes?"
> Do you get an error message?

No error message - VB.Net program on Windows XP crashes and reboots
immediately

>
> How big are these files? Do they take more than 10 seconds to copy from one
> place to another?

No, only a fraction of a second.
>
> Are you testing this by taking down the server, or does this just happen > without intervention? If the latter, how often?
>

I've done tests by taking down the server. But, in the production
environment, this server goes through a number of reboots under normal
operations daily.

> I'm wondering if you aren't attempting to execute the timed code while
it
is
> still running from the previous tick?
>
I've disabled the timer during the tick - so, that is not happening.

> --
> --- Nick Malik [Microsoft]
> MCSD, CFPS, Certified Scrummaster
> http://blogs.msdn.com/nickmalik
>
> Disclaimer: Opinions expressed in this forum are my own, and not
> representative of my employer.
> I do not answer questions on behalf of my employer. I'm just a
> programmer helping programmers.
> --
> "Sarah" <sa********@pow ertechcanada.co m> wrote in message
> news:uADBd.4151 2$KO5.40042@clg rps13...
> > I need to access some data on a server. I can access it directly using UNC
> > (i.e. \\ComputerName\ ShareName\Path\ FileName) or using a mapped

network
> > drive resource (S:\Path\FileNa me).
> >
> > Here is my problem: my vb.net program has problems with UNC. If
the
UNC
> > server is restarted or goes off-line, my VB.net program crashes.
The code
> > for UNC access to the file is included below and is put in the tick event
> of
> > a form timer control running every 10 seconds. The program does not crash
> > when the network server goes down using the same code below except

that
> the
> > network resource is referenced using a mapped drive (i.e. S:\).
> >
> > =======
> >
> > Try
> >
> > If File.Exists("\\ Server1\Files\D ata1.dbf") Then
> >
> > Try
> > File.Copy(("\\S erver1\Files\Da ta1.dbf", > > "C:\Data\tblDat a.dbf", True)
> > Catch
> > 'Do Nothing
> > End Try
> >
> > End If
> >
> > Catch
> >
> > 'msgbox error
> >
> > End Try
> >
> > =======
> >
> > The reason I would prefer to use UNC is so that the drive does not

have
to
> > be mapped on the clients computer - and the client cannot goof

around with
> > the server files that easily (I do not have the ability to modify
> > permissions in this situation at all).
> >
> > Note: the program only crashes after the program has been running

for
a
> > while (i.e. after multiple ticks). So, I'm guessing that if it is

in the
> > middle of a check and the server goes down, then it crashes.

Because,
if
> you
> > put an invalid UNC path and start up the program, it handles that
without
> a
> > problem ( i.e. no crashes, just runs every 10 seconds).
> >
> >
>
>



Nov 21 '05 #6
It is compatible with Windows XP - it says so. Artisoft sold Lantastic to
Converging Technologies. (http://www.spartacom.com/products/lantastic.htm).

The only problem is when the system is disconnected under UNC. Only when my
program is running in loop mode, does it crash. When the network is
disconnected without my program running, there are no problems. When the UNC
resource is mapped, no crashes either. So, I'm hoping there is some way to
handle the error.

This is a legacy network that I have NO control over - and, it has to use
Lantastic because of remote boot clients in DOS for POS systems.
"Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in message
news:DM%Bd.6091 34$wV.277235@at tbi_s54...
Lantastic! Why didn't you say so?

I didn't even think that Artisoft supported Lantastic any more!

The problem is clearly the Lantastic driver.

I wonder why you use Lantastic anyway. It is simple to set up a TCP
network. The drivers are built in to Windows XP/98/NT/2000/2003 as well as every version of Unix and Linux that I know of. The hardware is cheap and
the wiring can be done by anyone (I have a TCP network in my house).

That's the reason that the market dried up for Lantastic... Microsoft built their functionality right into the OS, and Lantastic had no compelling
reason why someone should buy their product. They let their product go
stale and were overtaken.

I hate to say this, but you are asking a question on the wrong newsgroup.
You need to see if you can find a Lantastic driver that is compatible with
Windows XP. That's a question for Artisoft.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:2XNBd.4393 8$KO5.39123@clg rps13...
"Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in message
news:keKBd.8230 $3m6.4869@attbi _s51...
First off, if you can't see the error, you can't address it.
Turn off "auto reboot on system crash" on your XP client.
http://www.theeldergeek.com/auto_reb...stem_crash.htm
Ok, here is the blue screen that comes up when auto reboot on system crash
is disabled:

==========
A problem has been detected and windows has been shut down to prevent

damage
to your computer.

BAD_POOL_CALLER

If this is the first time you've seen this stop error screen, restart your computer. If this screen appears again, follow these steps:

Check to make sure any new hardware or software is properly installed. If this is a new installation, ask your hardware or software manufacturer for any windows updates you might need.

If problems continue, disable or remove any newly installed hardware or
software. Disable BIOS memory options such as caching or shadowing. If you need to use safe mode to remove or disable components, restart your
computer, press F8 to select Advanced Startup Options, and then select

safe
mode.

Technical Information:

*** STOP: 0x000000C2 (0x00000050, 0xE1BD5000, 0x00000BD5, 0x0A800000)

Beginning dump of physical memory
Physical memory dump complete
Contact your system administrator or technical support group for further
assistance.
==========

This is a clean system on which I've installed XP cleanly from CD-ROM 3
times - I've also tried another brand new PC - same problem. This is the
only software that is running besides the Lantastic Network software used to
connect to the DOS Lantastic server. To test, I'm pulling the network
connection out from the DOS server to take it off-line -- and, that is
the only thing I am doing. When the VB.NET program is set to get the network
file in the try block from a mapped drive to the DOS server (S:\), no

crash
occurs. When I use UNC to get the file in the try block, take the DOS

server
off-line, the program (system) crashes.

Also, if you haven't installed XP SP2 yet, do it now. Your problem may already have been fixed.


Same problem on XP SP2.
An error in a .net app should never crash a system. In fact, I'm not

sure
your app is actually causing the system crash.


The only thing I change is the way the path is referenced when

communicating
with the DOS server. I've streamlined the code and tested a very simple
version. When my program references a UNC path, it crashes when that UNC
path is not available.

When I reference a mapped network drive (mapped to the very same UNC

path),
no crash occurs - it just does its check and fails (does not do the file
copy). Then, after the fail, I have the code enable the timer again and it checks again then as scheduled every 10 seconds. When I bring the DOS

server
on-line again, it will work again and do the file copy fine.

When everything is connected, identical code runs fine in both situations (UNC & Mapped Drive) and the remote files are copied without any issues.

So,
the simple file copy code seems to work fine.

Basically, in summary:

Reference DOS Server using UNC, DOS Server on-line: file copy works
Reference DOS Server using UNC, DOS Server OFF-LINE: system crashes, blue screen, have to restart
Reference DOS Server using mapped drive, DOS Server on-line: file copy

works
Reference DOS Server using mapped drive, DOS Server OFF-LINE: program

runs -
no file copy, when server back on-line again file copy works again.


Have you checked the error log?


Nothing in the Application/Security log.

System log has 2 errors that I believe are related to this problem:

=======

Event
Source: Save Dump
Event ID: 1001
Description:
The computer has rebooted from a bugcheck. The bugcheck was: 0x000000c2
(0x00000050, 0xe1bd5000, 0x00000bd5, 0x0a800000). A dump was saved in:
C:\WINDOWS\Mini dump\Mini010205-01.dmp.

=======

Event
Source: System Error
Category: (102)
Event ID: 1003
Description:
Error code 000000c2, parameter1 00000050, parameter2 e1bd5000, parameter3 00000bd5, parameter4 0a800000.

=======

There are acpi errors (on every reboot) and W32Time errors (every so

often,
including reboot) that are also listed in this system's error log.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:f7IBd.4299 4$KO5.14316@clg rps13...
> "Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in message > news:eLGBd.3168 49$HA.295458@at tbi_s01...
> > what do you mean by "crashes?"
> > Do you get an error message?
>
> No error message - VB.Net program on Windows XP crashes and reboots
> immediately
>
> >
> > How big are these files? Do they take more than 10 seconds to copy from
> one
> > place to another?
>
> No, only a fraction of a second.
>
>
> >
> > Are you testing this by taking down the server, or does this just

happen
> > without intervention? If the latter, how often?
> >
>
> I've done tests by taking down the server. But, in the production
> environment, this server goes through a number of reboots under
normal > operations daily.
>
> > I'm wondering if you aren't attempting to execute the timed code while it
> is
> > still running from the previous tick?
> >
>
>
> I've disabled the timer during the tick - so, that is not happening.
>
> > --
> > --- Nick Malik [Microsoft]
> > MCSD, CFPS, Certified Scrummaster
> > http://blogs.msdn.com/nickmalik
> >
> > Disclaimer: Opinions expressed in this forum are my own, and not
> > representative of my employer.
> > I do not answer questions on behalf of my employer. I'm just a
> > programmer helping programmers.
> > --
> > "Sarah" <sa********@pow ertechcanada.co m> wrote in message
> > news:uADBd.4151 2$KO5.40042@clg rps13...
> > > I need to access some data on a server. I can access it directly

using
> UNC
> > > (i.e. \\ComputerName\ ShareName\Path\ FileName) or using a mapped
network
> > > drive resource (S:\Path\FileNa me).
> > >
> > > Here is my problem: my vb.net program has problems with UNC. If the UNC
> > > server is restarted or goes off-line, my VB.net program crashes. The > code
> > > for UNC access to the file is included below and is put in the tick > event
> > of
> > > a form timer control running every 10 seconds. The program does not > crash
> > > when the network server goes down using the same code below except that
> > the
> > > network resource is referenced using a mapped drive (i.e. S:\).
> > >
> > > =======
> > >
> > > Try
> > >
> > > If File.Exists("\\ Server1\Files\D ata1.dbf") Then
> > >
> > > Try
> > > File.Copy(("\\S erver1\Files\Da ta1.dbf", > > > "C:\Data\tblDat a.dbf", True)
> > > Catch
> > > 'Do Nothing
> > > End Try
> > >
> > > End If
> > >
> > > Catch
> > >
> > > 'msgbox error
> > >
> > > End Try
> > >
> > > =======
> > >
> > > The reason I would prefer to use UNC is so that the drive does not have
> to
> > > be mapped on the clients computer - and the client cannot goof

around
> with
> > > the server files that easily (I do not have the ability to modify > > > permissions in this situation at all).
> > >
> > > Note: the program only crashes after the program has been running for
a
> > > while (i.e. after multiple ticks). So, I'm guessing that if it
is in the
> > > middle of a check and the server goes down, then it crashes.

Because,
if
> > you
> > > put an invalid UNC path and start up the program, it handles

that > without
> > a
> > > problem ( i.e. no crashes, just runs every 10 seconds).
> > >
> > >
> >
> >
>
>



Nov 21 '05 #7
The error is very likely caused by the network driver. Converging
Technologies may have a fix, especially if you send them a small app that is
able to recreate the problem, allowing them to debug the driver.

If XP is stopping, there is little or nothing that VB.Net can do about it.

If Converging Technologies cannot or will not provide a fix, you should look
at simply mapping the network drive yourself and using the mapped drive.
Apparently, the network driver doesn't collapse that way.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:z80Cd.4764 3$KO5.36787@clg rps13...
It is compatible with Windows XP - it says so. Artisoft sold Lantastic to
Converging Technologies. (http://www.spartacom.com/products/lantastic.htm).
The only problem is when the system is disconnected under UNC. Only when my program is running in loop mode, does it crash. When the network is
disconnected without my program running, there are no problems. When the UNC resource is mapped, no crashes either. So, I'm hoping there is some way to
handle the error.

This is a legacy network that I have NO control over - and, it has to use
Lantastic because of remote boot clients in DOS for POS systems.
"Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in message
news:DM%Bd.6091 34$wV.277235@at tbi_s54...
Lantastic! Why didn't you say so?

I didn't even think that Artisoft supported Lantastic any more!

The problem is clearly the Lantastic driver.

I wonder why you use Lantastic anyway. It is simple to set up a TCP
network. The drivers are built in to Windows XP/98/NT/2000/2003 as well as
every version of Unix and Linux that I know of. The hardware is cheap and
the wiring can be done by anyone (I have a TCP network in my house).

That's the reason that the market dried up for Lantastic... Microsoft

built
their functionality right into the OS, and Lantastic had no compelling
reason why someone should buy their product. They let their product go
stale and were overtaken.

I hate to say this, but you are asking a question on the wrong newsgroup. You need to see if you can find a Lantastic driver that is compatible with Windows XP. That's a question for Artisoft.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:2XNBd.4393 8$KO5.39123@clg rps13...
"Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in message news:keKBd.8230 $3m6.4869@attbi _s51...
> First off, if you can't see the error, you can't address it.
> Turn off "auto reboot on system crash" on your XP client.
> http://www.theeldergeek.com/auto_reb...stem_crash.htm
>
Ok, here is the blue screen that comes up when auto reboot on system crash is disabled:

==========
A problem has been detected and windows has been shut down to prevent

damage
to your computer.

BAD_POOL_CALLER

If this is the first time you've seen this stop error screen, restart your computer. If this screen appears again, follow these steps:

Check to make sure any new hardware or software is properly installed. If this is a new installation, ask your hardware or software manufacturer for any windows updates you might need.

If problems continue, disable or remove any newly installed hardware or software. Disable BIOS memory options such as caching or shadowing. If you need to use safe mode to remove or disable components, restart your
computer, press F8 to select Advanced Startup Options, and then select

safe
mode.

Technical Information:

*** STOP: 0x000000C2 (0x00000050, 0xE1BD5000, 0x00000BD5, 0x0A800000)

Beginning dump of physical memory
Physical memory dump complete
Contact your system administrator or technical support group for further assistance.
==========

This is a clean system on which I've installed XP cleanly from CD-ROM 3 times - I've also tried another brand new PC - same problem. This is the only software that is running besides the Lantastic Network software used
to
connect to the DOS Lantastic server. To test, I'm pulling the network
connection out from the DOS server to take it off-line -- and, that is

the only thing I am doing. When the VB.NET program is set to get the network file in the try block from a mapped drive to the DOS server (S:\), no

crash
occurs. When I use UNC to get the file in the try block, take the DOS

server
off-line, the program (system) crashes.
> Also, if you haven't installed XP SP2 yet, do it now. Your problem may > already have been fixed.

Same problem on XP SP2.

> An error in a .net app should never crash a system. In fact, I'm not sure
> your app is actually causing the system crash.

The only thing I change is the way the path is referenced when

communicating
with the DOS server. I've streamlined the code and tested a very simple version. When my program references a UNC path, it crashes when that UNC path is not available.

When I reference a mapped network drive (mapped to the very same UNC

path),
no crash occurs - it just does its check and fails (does not do the file copy). Then, after the fail, I have the code enable the timer again and it
checks again then as scheduled every 10 seconds. When I bring the DOS

server
on-line again, it will work again and do the file copy fine.

When everything is connected, identical code runs fine in both situations (UNC & Mapped Drive) and the remote files are copied without any
issues. So,
the simple file copy code seems to work fine.

Basically, in summary:

Reference DOS Server using UNC, DOS Server on-line: file copy works
Reference DOS Server using UNC, DOS Server OFF-LINE: system crashes, blue screen, have to restart
Reference DOS Server using mapped drive, DOS Server on-line: file copy

works
Reference DOS Server using mapped drive, DOS Server OFF-LINE: program

runs -
no file copy, when server back on-line again file copy works again.
>
> Have you checked the error log?
>

Nothing in the Application/Security log.

System log has 2 errors that I believe are related to this problem:

=======

Event
Source: Save Dump
Event ID: 1001
Description:
The computer has rebooted from a bugcheck. The bugcheck was:
0x000000c2 (0x00000050, 0xe1bd5000, 0x00000bd5, 0x0a800000). A dump was saved in:
C:\WINDOWS\Mini dump\Mini010205-01.dmp.

=======

Event
Source: System Error
Category: (102)
Event ID: 1003
Description:
Error code 000000c2, parameter1 00000050, parameter2 e1bd5000,

parameter3 00000bd5, parameter4 0a800000.

=======

There are acpi errors (on every reboot) and W32Time errors (every so

often,
including reboot) that are also listed in this system's error log.
> --
> --- Nick Malik [Microsoft]
> MCSD, CFPS, Certified Scrummaster
> http://blogs.msdn.com/nickmalik
>
> Disclaimer: Opinions expressed in this forum are my own, and not
> representative of my employer.
> I do not answer questions on behalf of my employer. I'm just a
> programmer helping programmers.
> --
> "Sarah" <sa********@pow ertechcanada.co m> wrote in message
> news:f7IBd.4299 4$KO5.14316@clg rps13...
> > "Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in

message
> > news:eLGBd.3168 49$HA.295458@at tbi_s01...
> > > what do you mean by "crashes?"
> > > Do you get an error message?
> >
> > No error message - VB.Net program on Windows XP crashes and reboots > > immediately
> >
> > >
> > > How big are these files? Do they take more than 10 seconds to copy from
> > one
> > > place to another?
> >
> > No, only a fraction of a second.
> >
> >
> > >
> > > Are you testing this by taking down the server, or does this just happen
> > > without intervention? If the latter, how often?
> > >
> >
> > I've done tests by taking down the server. But, in the production
> > environment, this server goes through a number of reboots under normal > > operations daily.
> >
> > > I'm wondering if you aren't attempting to execute the timed code

while
> it
> > is
> > > still running from the previous tick?
> > >
> >
> >
> > I've disabled the timer during the tick - so, that is not happening. > >
> > > --
> > > --- Nick Malik [Microsoft]
> > > MCSD, CFPS, Certified Scrummaster
> > > http://blogs.msdn.com/nickmalik
> > >
> > > Disclaimer: Opinions expressed in this forum are my own, and not
> > > representative of my employer.
> > > I do not answer questions on behalf of my employer. I'm just a > > > programmer helping programmers.
> > > --
> > > "Sarah" <sa********@pow ertechcanada.co m> wrote in message
> > > news:uADBd.4151 2$KO5.40042@clg rps13...
> > > > I need to access some data on a server. I can access it directly using
> > UNC
> > > > (i.e. \\ComputerName\ ShareName\Path\ FileName) or using a mapped > network
> > > > drive resource (S:\Path\FileNa me).
> > > >
> > > > Here is my problem: my vb.net program has problems with UNC. If the
> UNC
> > > > server is restarted or goes off-line, my VB.net program
crashes.
The
> > code
> > > > for UNC access to the file is included below and is put in the

tick
> > event
> > > of
> > > > a form timer control running every 10 seconds. The program
does not
> > crash
> > > > when the network server goes down using the same code below

except > that
> > > the
> > > > network resource is referenced using a mapped drive (i.e.
S:\). > > > >
> > > > =======
> > > >
> > > > Try
> > > >
> > > > If File.Exists("\\ Server1\Files\D ata1.dbf") Then
> > > >
> > > > Try
> > > >

File.Copy(("\\S erver1\Files\Da ta1.dbf",
> > > > "C:\Data\tblDat a.dbf", True)
> > > > Catch
> > > > 'Do Nothing
> > > > End Try
> > > >
> > > > End If
> > > >
> > > > Catch
> > > >
> > > > 'msgbox error
> > > >
> > > > End Try
> > > >
> > > > =======
> > > >
> > > > The reason I would prefer to use UNC is so that the drive does

not > have
> > to
> > > > be mapped on the clients computer - and the client cannot goof
around
> > with
> > > > the server files that easily (I do not have the ability to modify > > > > permissions in this situation at all).
> > > >
> > > > Note: the program only crashes after the program has been running for
> a
> > > > while (i.e. after multiple ticks). So, I'm guessing that if it is
in
> the
> > > > middle of a check and the server goes down, then it crashes.
Because,
> if
> > > you
> > > > put an invalid UNC path and start up the program, it handles

that > > without
> > > a
> > > > problem ( i.e. no crashes, just runs every 10 seconds).
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 21 '05 #8
Ok, thx for your help Nick!

"Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in message
news:3b2Cd.3208 77$HA.199013@at tbi_s01...
The error is very likely caused by the network driver. Converging
Technologies may have a fix, especially if you send them a small app that is able to recreate the problem, allowing them to debug the driver.

If XP is stopping, there is little or nothing that VB.Net can do about it.

If Converging Technologies cannot or will not provide a fix, you should look at simply mapping the network drive yourself and using the mapped drive.
Apparently, the network driver doesn't collapse that way.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:z80Cd.4764 3$KO5.36787@clg rps13...
It is compatible with Windows XP - it says so. Artisoft sold Lantastic to
Converging Technologies. (http://www.spartacom.com/products/lantastic.htm).

The only problem is when the system is disconnected under UNC. Only when

my
program is running in loop mode, does it crash. When the network is
disconnected without my program running, there are no problems. When the

UNC
resource is mapped, no crashes either. So, I'm hoping there is some way to handle the error.

This is a legacy network that I have NO control over - and, it has to use Lantastic because of remote boot clients in DOS for POS systems.
"Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in message
news:DM%Bd.6091 34$wV.277235@at tbi_s54...
Lantastic! Why didn't you say so?

I didn't even think that Artisoft supported Lantastic any more!

The problem is clearly the Lantastic driver.

I wonder why you use Lantastic anyway. It is simple to set up a TCP
network. The drivers are built in to Windows XP/98/NT/2000/2003 as well
as
every version of Unix and Linux that I know of. The hardware is cheap and the wiring can be done by anyone (I have a TCP network in my house).

That's the reason that the market dried up for Lantastic... Microsoft

built
their functionality right into the OS, and Lantastic had no compelling
reason why someone should buy their product. They let their product
go stale and were overtaken.

I hate to say this, but you are asking a question on the wrong

newsgroup. You need to see if you can find a Lantastic driver that is compatible with Windows XP. That's a question for Artisoft.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Sarah" <sa********@pow ertechcanada.co m> wrote in message
news:2XNBd.4393 8$KO5.39123@clg rps13...
> "Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in message > news:keKBd.8230 $3m6.4869@attbi _s51...
> > First off, if you can't see the error, you can't address it.
> > Turn off "auto reboot on system crash" on your XP client.
> > http://www.theeldergeek.com/auto_reb...stem_crash.htm
> >
>
>
> Ok, here is the blue screen that comes up when auto reboot on system

crash
> is disabled:
>
> ==========
>
>
> A problem has been detected and windows has been shut down to prevent damage
> to your computer.
>
> BAD_POOL_CALLER
>
> If this is the first time you've seen this stop error screen, restart your
> computer. If this screen appears again, follow these steps:
>
> Check to make sure any new hardware or software is properly
installed.
If
> this is a new installation, ask your hardware or software
manufacturer for
> any windows updates you might need.
>
> If problems continue, disable or remove any newly installed hardware or > software. Disable BIOS memory options such as caching or shadowing.
If you
> need to use safe mode to remove or disable components, restart your
> computer, press F8 to select Advanced Startup Options, and then
select safe
> mode.
>
> Technical Information:
>
> *** STOP: 0x000000C2 (0x00000050, 0xE1BD5000, 0x00000BD5, 0x0A800000) >
> Beginning dump of physical memory
> Physical memory dump complete
> Contact your system administrator or technical support group for

further > assistance.
>
>
> ==========
>
> This is a clean system on which I've installed XP cleanly from CD-ROM 3
> times - I've also tried another brand new PC - same problem. This is the > only software that is running besides the Lantastic Network software used
to
> connect to the DOS Lantastic server. To test, I'm pulling the
network > connection out from the DOS server to take it off-line -- and, that is the
> only thing I am doing. When the VB.NET program is set to get the network > file in the try block from a mapped drive to the DOS server (S:\),
no crash
> occurs. When I use UNC to get the file in the try block, take the DOS server
> off-line, the program (system) crashes.
>
>
> > Also, if you haven't installed XP SP2 yet, do it now. Your problem may
> > already have been fixed.
>
> Same problem on XP SP2.
>
> > An error in a .net app should never crash a system. In fact, I'm not > sure
> > your app is actually causing the system crash.
>
> The only thing I change is the way the path is referenced when
communicating
> with the DOS server. I've streamlined the code and tested a very simple > version. When my program references a UNC path, it crashes when that UNC > path is not available.
>
> When I reference a mapped network drive (mapped to the very same UNC
path),
> no crash occurs - it just does its check and fails (does not do the file > copy). Then, after the fail, I have the code enable the timer again and
it
> checks again then as scheduled every 10 seconds. When I bring the

DOS server
> on-line again, it will work again and do the file copy fine.
>
> When everything is connected, identical code runs fine in both

situations
> (UNC & Mapped Drive) and the remote files are copied without any

issues. So,
> the simple file copy code seems to work fine.
>
> Basically, in summary:
>
> Reference DOS Server using UNC, DOS Server on-line: file copy works
> Reference DOS Server using UNC, DOS Server OFF-LINE: system crashes,

blue
> screen, have to restart
> Reference DOS Server using mapped drive, DOS Server on-line: file copy works
> Reference DOS Server using mapped drive, DOS Server OFF-LINE: program runs -
> no file copy, when server back on-line again file copy works again.
>
>
> >
> > Have you checked the error log?
> >
>
> Nothing in the Application/Security log.
>
> System log has 2 errors that I believe are related to this problem:
>
> =======
>
> Event
> Source: Save Dump
> Event ID: 1001
> Description:
> The computer has rebooted from a bugcheck. The bugcheck was: 0x000000c2 > (0x00000050, 0xe1bd5000, 0x00000bd5, 0x0a800000). A dump was saved in: > C:\WINDOWS\Mini dump\Mini010205-01.dmp.
>
> =======
>
> Event
> Source: System Error
> Category: (102)
> Event ID: 1003
> Description:
> Error code 000000c2, parameter1 00000050, parameter2 e1bd5000,

parameter3
> 00000bd5, parameter4 0a800000.
>
> =======
>
> There are acpi errors (on every reboot) and W32Time errors (every so
often,
> including reboot) that are also listed in this system's error log.
>
>
> > --
> > --- Nick Malik [Microsoft]
> > MCSD, CFPS, Certified Scrummaster
> > http://blogs.msdn.com/nickmalik
> >
> > Disclaimer: Opinions expressed in this forum are my own, and not
> > representative of my employer.
> > I do not answer questions on behalf of my employer. I'm just a
> > programmer helping programmers.
> > --
> > "Sarah" <sa********@pow ertechcanada.co m> wrote in message
> > news:f7IBd.4299 4$KO5.14316@clg rps13...
> > > "Nick Malik [Microsoft]" <ni*******@hotm ail.nospam.com> wrote in
message
> > > news:eLGBd.3168 49$HA.295458@at tbi_s01...
> > > > what do you mean by "crashes?"
> > > > Do you get an error message?
> > >
> > > No error message - VB.Net program on Windows XP crashes and reboots > > > immediately
> > >
> > > >
> > > > How big are these files? Do they take more than 10 seconds to

copy
> from
> > > one
> > > > place to another?
> > >
> > > No, only a fraction of a second.
> > >
> > >
> > > >
> > > > Are you testing this by taking down the server, or does this just > happen
> > > > without intervention? If the latter, how often?
> > > >
> > >
> > > I've done tests by taking down the server. But, in the production > > > environment, this server goes through a number of reboots under

normal
> > > operations daily.
> > >
> > > > I'm wondering if you aren't attempting to execute the timed code while
> > it
> > > is
> > > > still running from the previous tick?
> > > >
> > >
> > >
> > > I've disabled the timer during the tick - so, that is not happening. > > >
> > > > --
> > > > --- Nick Malik [Microsoft]
> > > > MCSD, CFPS, Certified Scrummaster
> > > > http://blogs.msdn.com/nickmalik
> > > >
> > > > Disclaimer: Opinions expressed in this forum are my own, and not > > > > representative of my employer.
> > > > I do not answer questions on behalf of my employer. I'm just a
> > > > programmer helping programmers.
> > > > --
> > > > "Sarah" <sa********@pow ertechcanada.co m> wrote in message
> > > > news:uADBd.4151 2$KO5.40042@clg rps13...
> > > > > I need to access some data on a server. I can access it directly > using
> > > UNC
> > > > > (i.e. \\ComputerName\ ShareName\Path\ FileName) or using a mapped > > network
> > > > > drive resource (S:\Path\FileNa me).
> > > > >
> > > > > Here is my problem: my vb.net program has problems with UNC. If the
> > UNC
> > > > > server is restarted or goes off-line, my VB.net program crashes. The
> > > code
> > > > > for UNC access to the file is included below and is put in
the tick
> > > event
> > > > of
> > > > > a form timer control running every 10 seconds. The program

does not
> > > crash
> > > > > when the network server goes down using the same code below

except
> > that
> > > > the
> > > > > network resource is referenced using a mapped drive (i.e. S:\). > > > > >
> > > > > =======
> > > > >
> > > > > Try
> > > > >
> > > > > If File.Exists("\\ Server1\Files\D ata1.dbf") Then
> > > > >
> > > > > Try
> > > > >
File.Copy(("\\S erver1\Files\Da ta1.dbf",
> > > > > "C:\Data\tblDat a.dbf", True)
> > > > > Catch
> > > > > 'Do Nothing
> > > > > End Try
> > > > >
> > > > > End If
> > > > >
> > > > > Catch
> > > > >
> > > > > 'msgbox error
> > > > >
> > > > > End Try
> > > > >
> > > > > =======
> > > > >
> > > > > The reason I would prefer to use UNC is so that the drive does not
> > have
> > > to
> > > > > be mapped on the clients computer - and the client cannot
goof > around
> > > with
> > > > > the server files that easily (I do not have the ability to

modify
> > > > > permissions in this situation at all).
> > > > >
> > > > > Note: the program only crashes after the program has been

running
> for
> > a
> > > > > while (i.e. after multiple ticks). So, I'm guessing that if

it is
in
> > the
> > > > > middle of a check and the server goes down, then it crashes.
> Because,
> > if
> > > > you
> > > > > put an invalid UNC path and start up the program, it handles

that
> > > without
> > > > a
> > > > > problem ( i.e. no crashes, just runs every 10 seconds).
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
>
>



Nov 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
2197
by: John Howard | last post by:
I have the following in a jythonc program to be executed in a html file. f1 = open("filename","r") I get message about filePermission read error. Program compiles and jar file is created. Just the html code gives message. Any ideas?
6
2067
by: Jakob Bieling | last post by:
Hi, I was wondering why there are file access modes, which you have to specify when opening the file. I am specifically talking about the 'read', 'read-write' and 'write' distinction. As far as I can tell, it only makes sure, you (the programmer) do not accidently write to it when you opened it for reading. To me, this seems like another one of those things that just make life harder. I am asking this, because I am writing a wrapper...
6
2818
by: Cable | last post by:
Hello, I am hoping that someone can answer a question or two regarding file access. I have created an app that reads an image from a file then displays it (using OpenGL). It works well using fopen() with fgetc() to access each byte. I have decided to move further with this app and allow the user to select the first file of an image sequence and it will play the sequence back at at 24 frames per second. I have almost everything...
4
2115
by: Jason Hurder | last post by:
Hello folks, I am experiencing a rather strange problem. I have written a service that attempts to open a file on a network share via a FileStream object. When I try to open the file from my service, I get the "Access is denied" error. However, if I try to open the file from a GUI application, I can open the file without problem. I've tried using the FileIOPermissions object to get around the error with no luck. Obviously I am missing...
7
1442
by: Zach | last post by:
The formatting system of my HD is NTFS. When I right click on a file in Windows Explorer, I get a Properties Window with only two tabs: "General" and "Summary". I don't get a Security Tab, allowing me to set access permission. Given that the formatting system is NTFS, why am I not seeing the required tab, and why am I not seeing the appropriate Properties form? Please assist.
2
1375
by: Dave Cullen | last post by:
I'm really confused about how to use the .NET file and stream stuff. Can someone please show me how to do this... I have a text data file with semicolon delimited fields. I need to check if the file exists, and if it does open the file and read the data fields into local variables. Simple enough I'm sure, but I can't figure out from MSDN what methods to use. I will also need to write to the file (replacing the old fields).
1
8144
by: Duffman | last post by:
Hi, I have what seems to be a common problem, but the solutions I've found don't seem to work. I would like to use a web service to create a file at a UNC location in a shared file. Currently I'm just running it locally and saving the file locally using my machines UNC path. I have given user ASPNET full control over the folder I want to write the file to. I've also tried using the web config identity impersonation to use my user...
1
1035
by: Confessor | last post by:
Public Class Form1 Inherits System.Windows.Forms.Form Structure PointTemplate Dim Latitude As Single Dim Longitude As Single Dim Elevation As Integer End Structure Dim MaxPoint As Integer Dim Point() As PointTemplate
3
2236
by: Amie | last post by:
Hi, My .NET application has a script that checks whether an image file on a remote server exists using File.Exists. >From my localhost (Server A), I can access the image file via network path (\\servername\foldername\image.jpg) or virtual directory (../foldername/image.jpg) within my application. When I moved the app to a test server (Server B), it still works fine.
4
2266
by: rabidmonkey | last post by:
Hi all, I get a seg fault on the following line of code but not every time only after the program has been running for a while and has done the routine a few times successfully... FILE * geneticfileP; geneticfileP = fopen ("./Database/tempchild.gen","w"); I have tried hunting this down logically but there are other programes accessing the file too so I would much appreciate if someone could point me in the direction of building in...
0
9846
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9686
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10890
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10279
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9416
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7007
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5855
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4479
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3127
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.