From: RAG on
I have VC6 application which creates and writes into a Cfile object.It
is working fine with windows XP English version.If the same
application is executed in German version windows XP OS application is
crashing.I found out that while writing data into the German os
environment it is not allowing.(Access violation) return Error code 5

It will be great help if any buddy solves my problem

Thanks.
From: Alexander Grigoriev on
Run it under a debugger.

"RAG" <raghavender.b(a)ge.com> wrote in message
news:38555ad4-5408-469d-b827-23db046209c5(a)e39g2000hsf.googlegroups.com...
>I have VC6 application which creates and writes into a Cfile object.It
> is working fine with windows XP English version.If the same
> application is executed in German version windows XP OS application is
> crashing.I found out that while writing data into the German os
> environment it is not allowing.(Access violation) return Error code 5
>
> It will be great help if any buddy solves my problem
>
> Thanks.


From: RAG on
On May 20, 7:08 pm, "Alexander Grigoriev" <al...(a)earthlink.net> wrote:
> Run it under a debugger.
>
> "RAG" <raghavende...(a)ge.com> wrote in message
>
> news:38555ad4-5408-469d-b827-23db046209c5(a)e39g2000hsf.googlegroups.com...
>
>
>
> >I have VC6 application which creates and writes into a Cfile object.It
> > is working fine with windows XP English version.If the same
> > application is executed in German version windows XP OS application is
> > crashing.I found out that while writing data into the German os
> > environment it is not allowing.(Access violation) return Error code 5
>
> > It will be great help if any buddy solves my problem
>
> > Thanks.- Hide quoted text -
>
> - Show quoted text -

Iam debugging the application under German XP SP2 OS , Popblem still
there.Iam dubugging under admin login only still it is crashing
From: David Lowndes on
>Iam debugging the application under German XP SP2 OS , Popblem still
>there.Iam dubugging under admin login only still it is crashing

OK, if you need some help you need to give more details - show us the
code where it's crashing and explain what the appropriate variable
values are at that time.

Dave
From: RAG on
On May 21, 12:13 pm, David Lowndes <Dav...(a)example.invalid> wrote:
> >Iam debugging the application under German XP SP2 OS , Popblem still
> >there.Iam dubugging under admin login only still it is crashing
>
> OK, if you need some help you need to give more details - show us the
> code where it's crashing and explain what the appropriate variable
> values are at that time.
>
> Dave

CString str = "C:\\Documents and Settings\\All Users\\Datos de
programa\\GE Power Management\\745Rpc";

CreateFile(str, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_WRITE |
FILE_SHARE_READ, NULL,
OPEN_ALWAYS, FILE_FLAG_OVERLAPPED, NULL) ;
int nErrorCode = GetLastError();

CFile fileENVCheck;
nErrorCode = fileENVCheck.Open(str, CFile::modeWrite);
fileENVCheck.Write(str, 120);

this is my sample code executed on German OS Xp when write function is
called it is crashing what to do?