Article View: borland.public.cppbuilder.database.multi-tier
Article #1112strange access violation problem
From: Ioanis Manaras
Date: Thu, 27 Apr 2000 00:00
Date: Thu, 27 Apr 2000 00:00
46 lines
2096 bytes
2096 bytes
Hi,
I would be grateful, if you could help me with the following problem.
I have written two applications. The first one is an NT service and the
second a gui.
The service opens a TTable that is located on a network directory
and the gui just displays/edits the same table.
The problem occurs when we run first the service and then the gui.
When we do this, the service runs OK, but THE GUI gives an "Access
violation" exception.
It seems that the problem occurs when we change the alias where the
table
is located and the NetDir file (using the BDE admin.util.).
How to reproduce this problem
1) create two aliases on two different locations of the network
2) create a TTable with a simple structure and put one copy of it in
each alias
3) put a different NetDir file in each alias
4) make the TTables (of the service and of the gui)
to point at the same table of the same alias
5) set the NetDir file to the one that is located in the same directory
where the alias - that the service and the gui are using - is
located.
6) run the service, run the gui. Everything should be OK
Repeat the steps 4, 5 and 6 using the second alias and the second NetDir
file.
Now when you run the gui, you should get an "Access violation" exception
while the service is running OK.
Environment description
BCB3, BDE 5.1.1, Paradox 7 tables, Win NT 4 - service pack 4.
Cheers,
Yanis
PS : I have written a small demo if somebody is interested in
reproducing the problem.
Technical Details
Message-ID:
<390848D4.CFDFE6ED@pbx.ascom.ch>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,66e1cdbd2e4c101d,start X-Google-Attributes: gidfcd2b,public From: Ioanis Manaras <Ioanis.Manaras@pbx.ascom.ch> Subject: strange access violation problem Date: 2000/04/27 Message-ID: <390848D4.CFDFE6ED@pbx.ascom.ch> X-Deja-AN: 616350908 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-7 X-Trace: 27 Apr 2000 06:55:22 -0800, 127.0.0.1 Organization: Ascom Business Systems AG MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.multi-tier