<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: access violation in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951282#M32090</link>
    <description>Hi Chuck,

When you batch process these drawings, would there only be one drawing in
memory at a time?

ie I wonder if there's a difference with the fact that I am loading up to 20
or more of them concurrently

Still no joy, but very much appreciating the feedback. Thanks (and thanks
also to others - Alex in particular)

Andrew


"Chuck Gabriel" &lt;CHUCK.GABRIEL.11ODEM&gt; wrote in message
news:Chuck.Gabriel.11odem@vbdesign.net...
&amp;gt;
&amp;gt; I can say with a fair degree of confidence that the issue is not related
&amp;gt; to opening and saving multiple databases.  I have used
&amp;gt; AcDbDatabase::readDwgFile() and AcDbDatabase::saveAs() to batch process
&amp;gt; around 7500 drawings at a time without a hiccup.  However, depending on
&amp;gt; what you are doing with the drawings, you may run into some problems
&amp;gt; with older drawing (R13 and older).  At least that was my experience.
&amp;gt; I wrapped my code for saving the drawing in a try/catch(...) block, so
&amp;gt; I could abort in a controlled manner if anything went wrong with the
&amp;gt; save.
&amp;gt;
&amp;gt; I hope you get it all sorted out in time.  Happy hunting.
&amp;gt;
&amp;gt;
&amp;gt; -- 
&amp;gt; Chuck Gabriel
&amp;gt;
&amp;gt; Since when is ignorance a point of view?
&amp;gt; ------------------------------------------------------------------------
&amp;gt; Chuck Gabriel's Profile:
http://www.vbdesign.net/expresso/member.php?action=getinfo&amp;amp;userid=16
&amp;gt; View this thread:
http://www.vbdesign.net/expresso/showthread.php?threadid=25797
&amp;gt;&lt;/CHUCK.GABRIEL.11ODEM&gt;</description>
    <pubDate>Tue, 17 Feb 2004 09:54:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-02-17T09:54:29Z</dc:date>
    <item>
      <title>access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951268#M32076</link>
      <description>Hi all,

I'm at my wit's end trying to track down a seemingly random error message.
It comes up at random when I have a lot of documents that use my plugin in
the system. I open a lot of databases externally if that makes a difference.

I'm assuming that it's because I've left a record open somewhere but was
hoping (slender hope) that someone might have some magic ideas that will
help me narrow it down.

I'm using VC6 sp5 and coding for Autocad 2000 - completely arx/dbx app - and
I haven't been able to get debugging working.

error: FATAL ERROR: Unhandled access violation reading 0x8bbe9300 Exception
at 6c371381h

Thank you in advance if you can offer some assistance.

Best regards,
Andrew</description>
      <pubDate>Wed, 11 Feb 2004 07:56:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951268#M32076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-11T07:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951269#M32077</link>
      <description>AutoCAD 2000 (not "i") uses VB5, which may cause some instability.  

What OS is it?  If it's a NT kernel based system, then that could also
cause some issues.  Finding a cure for Access violations, for the most
part, is like trying to drag a scared cat out from under a bed.  4
hours later, you'll end up bloody, and the cat will STILL be under the
bed.


-- 
Ben - cheesy creamy cheesy

My mother called me that once.... once!
------------------------------------------------------------------------
Ben's Profile: http://www.vbdesign.net/expresso/member.php?action=getinfo&amp;amp;userid=201
View this thread: http://www.vbdesign.net/expresso/showthread.php?threadid=25797</description>
      <pubDate>Wed, 11 Feb 2004 13:22:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951269#M32077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-11T13:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951270#M32078</link>
      <description>Ben - Wake up man.  You are in the ObjectARX group. :)

Andrew - When you say you can't get debugging working, what do you mean
exactly?  I ask because it will be extremely difficult for you to track
down your problem without it.


-- 
Chuck Gabriel

Since when is ignorance a point of view?
------------------------------------------------------------------------
Chuck Gabriel's Profile: http://www.vbdesign.net/expresso/member.php?action=getinfo&amp;amp;userid=16
View this thread: http://www.vbdesign.net/expresso/showthread.php?threadid=25797</description>
      <pubDate>Wed, 11 Feb 2004 18:27:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951270#M32078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-11T18:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951271#M32079</link>
      <description>Whoops, transposed a "C" with a "B" there.  

My bad.


-- 
Ben - cheesy creamy cheesy

My mother called me that once.... once!
------------------------------------------------------------------------
Ben's Profile: http://www.vbdesign.net/expresso/member.php?action=getinfo&amp;amp;userid=201
View this thread: http://www.vbdesign.net/expresso/showthread.php?threadid=25797</description>
      <pubDate>Wed, 11 Feb 2004 19:02:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951271#M32079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-11T19:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951272#M32080</link>
      <description>Hi Chuck,

I wasn't able to step through my code at that point but I've managed to get
it working now though thanks to links to an article called "Debugging a
release version" on msdn. Although I can't find where in my code the problem
is since the actual error appears to be occurring inside MFC.

First-chance exception in acad.exe (MFC42.DLL): 0xC0000005: Access
Violation.

At the point where the error occurs I'm not using any MFC dialogs or
anything so I'm not sure where to look.

I really appreciate yours and Ben's suggestions, since this is a real show
stopper and the deadline's tomorrow.

All the best,
Andrew

----- Original Message ----- 
From: "Chuck Gabriel" &lt;CHUCK.GABRIEL.11H5ON&gt;
Newsgroups: autodesk.autocad.objectarx
Sent: Thursday, February 12, 2004 4:27 AM
Subject: Re: access violation


&amp;gt;
&amp;gt; Ben - Wake up man.  You are in the ObjectARX group. :)
&amp;gt;
&amp;gt; Andrew - When you say you can't get debugging working, what do you mean
&amp;gt; exactly?  I ask because it will be extremely difficult for you to track
&amp;gt; down your problem without it.
&amp;gt;
&amp;gt;
&amp;gt; -- 
&amp;gt; Chuck Gabriel
&amp;gt;
&amp;gt; Since when is ignorance a point of view?
&amp;gt; ------------------------------------------------------------------------
&amp;gt; Chuck Gabriel's Profile:
http://www.vbdesign.net/expresso/member.php?action=getinfo&amp;amp;userid=16
&amp;gt; View this thread:
http://www.vbdesign.net/expresso/showthread.php?threadid=25797
&amp;gt;&lt;/CHUCK.GABRIEL.11H5ON&gt;</description>
      <pubDate>Wed, 11 Feb 2004 20:46:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951272#M32080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-11T20:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951273#M32081</link>
      <description>Sorry, just to clarify, I'm still getting the access violation and am still
panicking.

When I said "I managed to get it working" I meant that I can debug now but
that's not helping me a great deal.

Thanks again in advance for any ideas on what I could be doing to cause an
access violation in MFC.

Andrew



"Andrew Hoadley" &lt;ANDREW&gt; wrote in message
news:402a9439_2@newsprd01...
&amp;gt; Hi Chuck,
&amp;gt;
&amp;gt; I wasn't able to step through my code at that point but I've managed to
get
&amp;gt; it working now though thanks to links to an article called "Debugging a
&amp;gt; release version" on msdn. Although I can't find where in my code the
problem
&amp;gt; is since the actual error appears to be occurring inside MFC.
&amp;gt;
&amp;gt; First-chance exception in acad.exe (MFC42.DLL): 0xC0000005: Access
&amp;gt; Violation.
&amp;gt;
&amp;gt; At the point where the error occurs I'm not using any MFC dialogs or
&amp;gt; anything so I'm not sure where to look.
&amp;gt;
&amp;gt; I really appreciate yours and Ben's suggestions, since this is a real show
&amp;gt; stopper and the deadline's tomorrow.
&amp;gt;
&amp;gt; All the best,
&amp;gt; Andrew
&amp;gt;
&amp;gt; ----- Original Message ----- 
&amp;gt; From: "Chuck Gabriel" &lt;CHUCK.GABRIEL.11H5ON&gt;
&amp;gt; Newsgroups: autodesk.autocad.objectarx
&amp;gt; Sent: Thursday, February 12, 2004 4:27 AM
&amp;gt; Subject: Re: access violation
&amp;gt;
&amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Ben - Wake up man.  You are in the ObjectARX group. :)
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Andrew - When you say you can't get debugging working, what do you mean
&amp;gt; &amp;gt; exactly?  I ask because it will be extremely difficult for you to track
&amp;gt; &amp;gt; down your problem without it.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; -- 
&amp;gt; &amp;gt; Chuck Gabriel
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Since when is ignorance a point of view?
&amp;gt; &amp;gt; ------------------------------------------------------------------------
&amp;gt; &amp;gt; Chuck Gabriel's Profile:
&amp;gt; http://www.vbdesign.net/expresso/member.php?action=getinfo&amp;amp;userid=16
&amp;gt; &amp;gt; View this thread:
&amp;gt; http://www.vbdesign.net/expresso/showthread.php?threadid=25797
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/CHUCK.GABRIEL.11H5ON&gt;&lt;/ANDREW&gt;</description>
      <pubDate>Wed, 11 Feb 2004 22:29:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951273#M32081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-11T22:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951274#M32082</link>
      <description>An AV can be caused by just about anything.

Problems like this are usually a result of
inadequate testing.  In general, you need to
do a lot of testing every time you make even
minor code change, in order to validate that
the changes didn't break something.

If you adopt a more rigorus testing regime,
the chances that you'll discover what code
changes lead to the introduction of a bug
are much better.

If you spend hours revising code, and do not
test, then any changes made in that time can
be the cause, and that's what makes it much
harder to track down.

While I realize this isn't addressing your
immediate need, you have to understand that
the problem can be caused by any number of
things, and what you've told everyone here
is not nearly enough to take a wild guess
about what it may be.

The fact that the AV is occurring in MFC only
indicates how it manifests, not where the
actual bug that causes it is.

When the AV occurs, what was your app doing?
Does it always happen at the same point, or
at different points in the application?

-- 
AcadXTabs: MDI Document Tabs for AutoCAD
http://www.acadxtabs.com

AcadX for AutoCAD 2004 Beta 1
http://mysite.verizon.net/~vze2vjds/acadx/AcadX16.zip


"Andrew Hoadley" &lt;ANDREW&gt; wrote in message news:402aac00$1_2@newsprd01...
&amp;gt; Sorry, just to clarify, I'm still getting the access violation and am still
&amp;gt; panicking.
&amp;gt;
&amp;gt; When I said "I managed to get it working" I meant that I can debug now but
&amp;gt; that's not helping me a great deal.
&amp;gt;
&amp;gt; Thanks again in advance for any ideas on what I could be doing to cause an
&amp;gt; access violation in MFC.
&amp;gt;
&amp;gt; Andrew
&amp;gt;&lt;/ANDREW&gt;</description>
      <pubDate>Wed, 11 Feb 2004 22:45:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951274#M32082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-11T22:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951275#M32083</link>
      <description>Hi Tony,

Thanks for your reply, it's much appreciated.

My app is designed to calculate sizes of water pipes in buildings.

It does this by using a "project" file which contains the paths of a certain
number of drawings, where each drawing is a 2d floor plan.

The recalculation procedure takes all files in the project, gets the
database info for them if they are in memory and loads the database from
disk if they're not. This allows you to create a "virtual" 3d model from a
series of flat floor plans.

The error occurs when control returns to Autocad after the recalculation
procedure, but the error is intermittent depending on the number of drawings
in the project. It goes from happenning very rarely with 7-10 drawings to
happening every single time with 20-21 drawings.

Testing uncovered no problems with up to about 5 drawings, but the code has
recently been expanded to cover an unlimitted (from our point of view,
although not neccessarily Autocad's) number of drawings.

I understand what a long shot it is when someone rocks up and says "how do I
fix an access violation", but any thoughts on areas for me to look for would
be most welcome.

Regards,
Andrew

p.s. It's around 45,000 lines of code with a range of custom objects set up
in DBX if that makes any difference.



"Tony Tanzillo" &lt;TONY.TANZILLO at="" caddzone="" dot="" com=""&gt; wrote in message
news:402ab036_2@newsprd01...
&amp;gt; An AV can be caused by just about anything.
&amp;gt;
&amp;gt; Problems like this are usually a result of
&amp;gt; inadequate testing.  In general, you need to
&amp;gt; do a lot of testing every time you make even
&amp;gt; minor code change, in order to validate that
&amp;gt; the changes didn't break something.
&amp;gt;
&amp;gt; If you adopt a more rigorus testing regime,
&amp;gt; the chances that you'll discover what code
&amp;gt; changes lead to the introduction of a bug
&amp;gt; are much better.
&amp;gt;
&amp;gt; If you spend hours revising code, and do not
&amp;gt; test, then any changes made in that time can
&amp;gt; be the cause, and that's what makes it much
&amp;gt; harder to track down.
&amp;gt;
&amp;gt; While I realize this isn't addressing your
&amp;gt; immediate need, you have to understand that
&amp;gt; the problem can be caused by any number of
&amp;gt; things, and what you've told everyone here
&amp;gt; is not nearly enough to take a wild guess
&amp;gt; about what it may be.
&amp;gt;
&amp;gt; The fact that the AV is occurring in MFC only
&amp;gt; indicates how it manifests, not where the
&amp;gt; actual bug that causes it is.
&amp;gt;
&amp;gt; When the AV occurs, what was your app doing?
&amp;gt; Does it always happen at the same point, or
&amp;gt; at different points in the application?
&amp;gt;
&amp;gt; -- 
&amp;gt; AcadXTabs: MDI Document Tabs for AutoCAD
&amp;gt; http://www.acadxtabs.com
&amp;gt;
&amp;gt; AcadX for AutoCAD 2004 Beta 1
&amp;gt; http://mysite.verizon.net/~vze2vjds/acadx/AcadX16.zip
&amp;gt;
&amp;gt;
&amp;gt; "Andrew Hoadley" &lt;ANDREW&gt; wrote in message
news:402aac00$1_2@newsprd01...
&amp;gt; &amp;gt; Sorry, just to clarify, I'm still getting the access violation and am
still
&amp;gt; &amp;gt; panicking.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; When I said "I managed to get it working" I meant that I can debug now
but
&amp;gt; &amp;gt; that's not helping me a great deal.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Thanks again in advance for any ideas on what I could be doing to cause
an
&amp;gt; &amp;gt; access violation in MFC.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Andrew
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/ANDREW&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Thu, 12 Feb 2004 00:10:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951275#M32083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-12T00:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951276#M32084</link>
      <description>Hi Andrew,

Some time ago I tried somthing similar (I mean opening a lot of dwgs) like
so:

AcDbDatabase *pDwg = new AcDbDatabase(..);
es = pDwg-&amp;gt;readDwgFile(...);

//open the database and do something
//do NOT pass ownership to ACAD
.....
delete pDwg;

and it crashed Autocad - but only after opening a number of dwgs.
The number of dwgs causing the crash also depended on the dwg sizes.
I concluded it was a memory (leak ?) thing.

Does it make any sense to you?

alex</description>
      <pubDate>Fri, 13 Feb 2004 06:15:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951276#M32084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-13T06:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951277#M32085</link>
      <description>Hi Alex,

It makes far too much sense to be comfortable actually. I really hope it's
an error in my code and not a leak inside Autocad. Although if it was a leak
in Autocad it would explain why it's been impossible to find the error in my
code... small comfort though.

If it makes any difference I'm not just viewing the databases either, I'm
modifying them and then using SAVEAS() to save them back to the hard drive
with updated flow rates and pipe sizes.

I so hope this is not an undocumented bug in Autocad.

Andrew



"alex" &lt;ALEXB&gt; wrote in message news:402c6b7c$1_2@newsprd01...
&amp;gt; Hi Andrew,
&amp;gt;
&amp;gt; Some time ago I tried somthing similar (I mean opening a lot of dwgs) like
&amp;gt; so:
&amp;gt;
&amp;gt; AcDbDatabase *pDwg = new AcDbDatabase(..);
&amp;gt; es = pDwg-&amp;gt;readDwgFile(...);
&amp;gt;
&amp;gt; //open the database and do something
&amp;gt; //do NOT pass ownership to ACAD
&amp;gt; .....
&amp;gt; delete pDwg;
&amp;gt;
&amp;gt; and it crashed Autocad - but only after opening a number of dwgs.
&amp;gt; The number of dwgs causing the crash also depended on the dwg sizes.
&amp;gt; I concluded it was a memory (leak ?) thing.
&amp;gt;
&amp;gt; Does it make any sense to you?
&amp;gt;
&amp;gt; alex
&amp;gt;
&amp;gt;&lt;/ALEXB&gt;</description>
      <pubDate>Sat, 14 Feb 2004 01:58:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951277#M32085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-14T01:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951278#M32086</link>
      <description>Hi Andrew,

&amp;gt; It makes far too much sense to be comfortable actually. I really hope it's
&amp;gt; an error in my code and not a leak inside Autocad. Although if it was a
leak
&amp;gt; in Autocad it would explain why it's been impossible to find the error in
my
&amp;gt; code... small comfort though.

I even tried to discover memory leaks using an external tool.(Sysinternals
DebugView)
but it didn't detect any.

&amp;gt; If it makes any difference I'm not just viewing the databases either, I'm
&amp;gt; modifying them and then using SAVEAS() to save them back to the hard drive
&amp;gt; with updated flow rates and pipe sizes.

I don't think it matters what you do with the db, as long as you do it
properly and in a
rule-abiding, god-fearing manner -:).

&amp;gt; I so hope this is not an undocumented bug in Autocad.

We all do. It would be nice to hear something from the Autocad people
about this, or maybe from the gurus.
BTW, did you notice that Autodesk staff involvement in this group has
thinned out in the last
few months?

Please let me know if you discover anything on the subject. I'll do the
same.

alex</description>
      <pubDate>Sat, 14 Feb 2004 05:14:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951278#M32086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-14T05:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951279#M32087</link>
      <description>I believe that there is a boolean input flag to the AcDbDatabase
constructor, whether it should build a complete database or not. I think
that you should pass 'false' if you intend to use readDwgFile. This is from
the top of my head - I don't have the docs here.

Good Luck!

Henrik Vallgren
www.stream-space.com

&amp;gt; "alex" &lt;ALEXB&gt; wrote in message
news:402c6b7c$1_2@newsprd01...
&amp;gt; &amp;gt; Hi Andrew,
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Some time ago I tried somthing similar (I mean opening a lot of dwgs)
like
&amp;gt; &amp;gt; so:
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; AcDbDatabase *pDwg = new AcDbDatabase(..);
&amp;gt; &amp;gt; es = pDwg-&amp;gt;readDwgFile(...);
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; //open the database and do something
&amp;gt; &amp;gt; //do NOT pass ownership to ACAD
&amp;gt; &amp;gt; .....
&amp;gt; &amp;gt; delete pDwg;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; and it crashed Autocad - but only after opening a number of dwgs.
&amp;gt; &amp;gt; The number of dwgs causing the crash also depended on the dwg sizes.
&amp;gt; &amp;gt; I concluded it was a memory (leak ?) thing.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Does it make any sense to you?
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; alex
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/ALEXB&gt;</description>
      <pubDate>Sat, 14 Feb 2004 19:24:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951279#M32087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-14T19:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951280#M32088</link>
      <description>Hi Henrik,

You are right and we (at least I) certainly did it like the docs say - and
it throws exceptions nevertheless.
I didn't want to clutter my massage so I omitted the inputs.

alex

"Henrik Vallgren" &lt;HENRIK.VALLGREN&gt; wrote in message
news:402e75bd$1_1@newsprd01...
&amp;gt; I believe that there is a boolean input flag to the AcDbDatabase
&amp;gt; constructor, whether it should build a complete database or not. I think
&amp;gt; that you should pass 'false' if you intend to use readDwgFile. This is
from
&amp;gt; the top of my head - I don't have the docs here.
&amp;gt;
&amp;gt; Good Luck!
&amp;gt;
&amp;gt; Henrik Vallgren
&amp;gt; www.stream-space.com
&amp;gt;&lt;/HENRIK.VALLGREN&gt;</description>
      <pubDate>Sun, 15 Feb 2004 05:22:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951280#M32088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-15T05:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951281#M32089</link>
      <description>I can say with a fair degree of confidence that the issue is not related
to opening and saving multiple databases.  I have used
AcDbDatabase::readDwgFile() and AcDbDatabase::saveAs() to batch process
around 7500 drawings at a time without a hiccup.  However, depending on
what you are doing with the drawings, you may run into some problems
with older drawing (R13 and older).  At least that was my experience. 
I wrapped my code for saving the drawing in a try/catch(...) block, so
I could abort in a controlled manner if anything went wrong with the
save.

I hope you get it all sorted out in time.  Happy hunting.


-- 
Chuck Gabriel

Since when is ignorance a point of view?
------------------------------------------------------------------------
Chuck Gabriel's Profile: http://www.vbdesign.net/expresso/member.php?action=getinfo&amp;amp;userid=16
View this thread: http://www.vbdesign.net/expresso/showthread.php?threadid=25797</description>
      <pubDate>Sun, 15 Feb 2004 15:57:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951281#M32089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-15T15:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951282#M32090</link>
      <description>Hi Chuck,

When you batch process these drawings, would there only be one drawing in
memory at a time?

ie I wonder if there's a difference with the fact that I am loading up to 20
or more of them concurrently

Still no joy, but very much appreciating the feedback. Thanks (and thanks
also to others - Alex in particular)

Andrew


"Chuck Gabriel" &lt;CHUCK.GABRIEL.11ODEM&gt; wrote in message
news:Chuck.Gabriel.11odem@vbdesign.net...
&amp;gt;
&amp;gt; I can say with a fair degree of confidence that the issue is not related
&amp;gt; to opening and saving multiple databases.  I have used
&amp;gt; AcDbDatabase::readDwgFile() and AcDbDatabase::saveAs() to batch process
&amp;gt; around 7500 drawings at a time without a hiccup.  However, depending on
&amp;gt; what you are doing with the drawings, you may run into some problems
&amp;gt; with older drawing (R13 and older).  At least that was my experience.
&amp;gt; I wrapped my code for saving the drawing in a try/catch(...) block, so
&amp;gt; I could abort in a controlled manner if anything went wrong with the
&amp;gt; save.
&amp;gt;
&amp;gt; I hope you get it all sorted out in time.  Happy hunting.
&amp;gt;
&amp;gt;
&amp;gt; -- 
&amp;gt; Chuck Gabriel
&amp;gt;
&amp;gt; Since when is ignorance a point of view?
&amp;gt; ------------------------------------------------------------------------
&amp;gt; Chuck Gabriel's Profile:
http://www.vbdesign.net/expresso/member.php?action=getinfo&amp;amp;userid=16
&amp;gt; View this thread:
http://www.vbdesign.net/expresso/showthread.php?threadid=25797
&amp;gt;&lt;/CHUCK.GABRIEL.11ODEM&gt;</description>
      <pubDate>Tue, 17 Feb 2004 09:54:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951282#M32090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-17T09:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951283#M32091</link>
      <description>I never had more than two databases open at any given time, but I am still not
inclined to believe that opening and closing AcDbDatabase objects is the source
of your exception.  Did you try wrapping the open and close functions in
try/catch blocks?


"Andrew Hoadley" &lt;ANDREW&gt; wrote in message
news:4031e413_2@newsprd01...
&amp;gt; Hi Chuck,
&amp;gt;
&amp;gt; When you batch process these drawings, would there only be one drawing in
&amp;gt; memory at a time?
&amp;gt;
&amp;gt; ie I wonder if there's a difference with the fact that I am loading up to 20
&amp;gt; or more of them concurrently
&amp;gt;
&amp;gt; Still no joy, but very much appreciating the feedback. Thanks (and thanks
&amp;gt; also to others - Alex in particular)
&amp;gt;
&amp;gt; Andrew
&amp;gt;
&amp;gt;
&amp;gt; "Chuck Gabriel" &lt;CHUCK.GABRIEL.11ODEM&gt; wrote in message
&amp;gt; news:Chuck.Gabriel.11odem@vbdesign.net...
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; I can say with a fair degree of confidence that the issue is not related
&amp;gt; &amp;gt; to opening and saving multiple databases.  I have used
&amp;gt; &amp;gt; AcDbDatabase::readDwgFile() and AcDbDatabase::saveAs() to batch process
&amp;gt; &amp;gt; around 7500 drawings at a time without a hiccup.  However, depending on
&amp;gt; &amp;gt; what you are doing with the drawings, you may run into some problems
&amp;gt; &amp;gt; with older drawing (R13 and older).  At least that was my experience.
&amp;gt; &amp;gt; I wrapped my code for saving the drawing in a try/catch(...) block, so
&amp;gt; &amp;gt; I could abort in a controlled manner if anything went wrong with the
&amp;gt; &amp;gt; save.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; I hope you get it all sorted out in time.  Happy hunting.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; -- 
&amp;gt; &amp;gt; Chuck Gabriel
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Since when is ignorance a point of view?
&amp;gt; &amp;gt; ------------------------------------------------------------------------
&amp;gt; &amp;gt; Chuck Gabriel's Profile:
&amp;gt; http://www.vbdesign.net/expresso/member.php?action=getinfo&amp;amp;userid=16
&amp;gt; &amp;gt; View this thread:
&amp;gt; http://www.vbdesign.net/expresso/showthread.php?threadid=25797
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/CHUCK.GABRIEL.11ODEM&gt;&lt;/ANDREW&gt;</description>
      <pubDate>Tue, 17 Feb 2004 13:15:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951283#M32091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-02-17T13:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951284#M32092</link>
      <description>&amp;gt; You are right and we (at least I) certainly did it like the docs say - and
&amp;gt; it throws exceptions nevertheless.
&amp;gt; I didn't want to clutter my massage so I omitted the inputs.

We've had tons of trouble in this space.

1.    Make sure you maintain/restore the "current working database".  We
found that many methods fiddle around with this, despite claiming that they
dont.

2.    Watch the content of the drawing files you are opening - I think its
AcDbOleFrame that has a known bug where AutoCAD "defers" a fixup of the
object till the next time the command-line is reached.  If you close the
file before it gets there, then it crashes.</description>
      <pubDate>Wed, 03 Mar 2004 00:26:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951284#M32092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-03-03T00:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: access violation</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951285#M32093</link>
      <description>HI Jeff,
Could you elaborate,(particularly on your 1st)?
Thanks,
alex

"Jeff Laing" &lt;JEFFL&gt; wrote in message
news:40452668$1_3@newsprd01...
&amp;gt; We've had tons of trouble in this space.
&amp;gt;
&amp;gt; 1.    Make sure you maintain/restore the "current working database".  We
&amp;gt; found that many methods fiddle around with this, despite claiming that
they
&amp;gt; dont.
&amp;gt;
&amp;gt; 2.    Watch the content of the drawing files you are opening - I think its
&amp;gt; AcDbOleFrame that has a known bug where AutoCAD "defers" a fixup of the
&amp;gt; object till the next time the command-line is reached.  If you close the
&amp;gt; file before it gets there, then it crashes.
&amp;gt;
&amp;gt;&lt;/JEFFL&gt;</description>
      <pubDate>Tue, 09 Mar 2004 17:10:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/access-violation/m-p/951285#M32093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-03-09T17:10:52Z</dc:date>
    </item>
  </channel>
</rss>

