Board index » delphi » Access violation on NT workstation

Access violation on NT workstation

Hi all
I have made a program, which works find on my pc with delphi 1 & 2 on it.
The program was written in delphi 2 and works fine on my Pc
but when i install my program (Via Installsheild) onto a NT4 workstation
(with service pack4),

I get to the SQl.open part of the program. and get a Access violation error.
any idears.
I need the sql part because the database contains some 365 records X 2 to 3
year for about 20 users, i use the sql to collect the record for a users and
display them in a DBgrid.

thank You.
Steve

st...@gilril.freeserve.co.uk

 

Re:Access violation on NT workstation


Quote
Steve Riley wrote in message <7manrs$p9...@news4.svr.pol.co.uk>...
>Hi all
>I have made a program, which works find on my pc with delphi 1 & 2 on it.
>The program was written in delphi 2 and works fine on my Pc
>but when i install my program (Via Installsheild) onto a NT4 workstation
>(with service pack4),

>I get to the SQl.open part of the program. and get a Access violation
error.
>any idears.
>I need the sql part because the database contains some 365 records X 2 to 3
>year for about 20 users, i use the sql to collect the record for a users
and
>display them in a DBgrid.

>thank You.
>Steve

>st...@gilril.freeserve.co.uk

Steve,

Might you have *.ini or registry files you are using in Win95 /98?  If so
these files must be pointed to by your WinNT 4.0 install.  The root
directory become Winnt instead of windows, windows\system becomes
winnt\system + registry open /close/delete becomes a little different in NT
than Win95/98.

Sounds like maybe database files are not being pointed to with the Access
error you are receiving?

Marko
----------------------------------
m...@godex.com

Re:Access violation on NT workstation


I had a few problems with Delphi 2 and NT. The biggest problem was with
dates and regional settings. There was no fix and I had to recompile using
Delphi 3 which works fine.

The other problem could be Installshield. I found (with Delphi 3) that if I
created the Install files on a PC with Win 95 they would not run properly on
some NT machines. If the install files were created on an NT machine there
were OK.

This problem was ultimately solved by using the version of Installshield
which ships with Delphi 4.

Mike Best
Mike Best Programming
Brisbane
Australia

Quote
Steve Riley wrote in message <7manrs$p9...@news4.svr.pol.co.uk>...
>Hi all
>I have made a program, which works find on my pc with delphi 1 & 2 on it.
>The program was written in delphi 2 and works fine on my Pc
>but when i install my program (Via Installsheild) onto a NT4 workstation
>(with service pack4),

>I get to the SQl.open part of the program. and get a Access violation
error.
>any idears.
>I need the sql part because the database contains some 365 records X 2 to 3
>year for about 20 users, i use the sql to collect the record for a users
and
>display them in a DBgrid.

>thank You.
>Steve

>st...@gilril.freeserve.co.uk

Re:Access violation on NT workstation


I've had similar problems but with the regional date. When i changed it to
dd/MM/yyyy (4 digit year) the AV stopped.

Quote
Mike Best <lin...@bigpond.com.au> wrote in message

news:Lk9i3.5838$yD2.13422@newsfeeds.bigpond.com...
Quote
> I had a few problems with Delphi 2 and NT. The biggest problem was with
> dates and regional settings. There was no fix and I had to recompile using
> Delphi 3 which works fine.

> The other problem could be Installshield. I found (with Delphi 3) that if
I
> created the Install files on a PC with Win 95 they would not run properly
on
> some NT machines. If the install files were created on an NT machine there
> were OK.

> This problem was ultimately solved by using the version of Installshield
> which ships with Delphi 4.

> Mike Best
> Mike Best Programming
> Brisbane
> Australia

> Steve Riley wrote in message <7manrs$p9...@news4.svr.pol.co.uk>...
> >Hi all
> >I have made a program, which works find on my pc with delphi 1 & 2 on it.
> >The program was written in delphi 2 and works fine on my Pc
> >but when i install my program (Via Installsheild) onto a NT4 workstation
> >(with service pack4),

> >I get to the SQl.open part of the program. and get a Access violation
> error.
> >any idears.
> >I need the sql part because the database contains some 365 records X 2 to
3
> >year for about 20 users, i use the sql to collect the record for a users
> and
> >display them in a DBgrid.

> >thank You.
> >Steve

> >st...@gilril.freeserve.co.uk

Re:Access violation on NT workstation


The problem with programs compiled in Delphi 2 was that on NT boxes which
had previously had the regional setting changed the Delphi 2 program would
ignore any further changes to the date or time settings. I know it sounds
impossible but I have demonstrated it repeatedly. Neither Borland or
Microsoft could offer an explanation so I recompiled in Delphi 3 and the
problem was solved.

Mike Best
Mike Best Programming
Brisbane
Australia

Quote
Jim Cartlidge wrote in message <7mi1n9$9s...@panther.rmplc.co.uk>...
>I've had similar problems but with the regional date. When i changed it to
>dd/MM/yyyy (4 digit year) the AV stopped.

Other Threads