🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #360

"Access Violation" error

#360
From: Bernie Steiert
Date: Fri, 28 Apr 2006 06:47
17 lines
1483 bytes
Hi All,

We upgraded a project from C++ Builder 5 to C++ Builder 6 which opened a 
Microsoft word template and inserted some data..  very simple.
Since the upgrade we are getting an "Access Violation" error every time we 
try to open the word doc.

MSWord = CreateOleObject("Word.Basic");
MSWord.Exec (Procedure("ChDefaultDir") << dir.c_str() << 0);
MSWord.Exec (Procedure("FileOpen") << doc.c_str());

The strange thing is that when we run it in full debug mode its okay.
And the project compiles okay.

Any Ideas?
Thanks
Regards Bernie 
Technical Details
Message-ID: <4451ba8b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10529a,ce4fd0b38c0c7250,start
X-Google-Attributes: gid10529a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Bernie Steiert" <bernies@legalinteract.com.au>
From: "Bernie Steiert" <bernies@legalinteract.com.au>
Newsgroups: borland.public.cppbuilder.upgrade
Subject: "Access Violation" error 
Date: Fri, 28 Apr 2006 16:47:55 +1000
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 58.166.11.69
Message-ID: <4451ba8b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1146206859 58.166.11.69 (27 Apr 2006 23:47:39 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail