Results 1 to 2 of 2

Thread: Error when running sub - eNotOpenForWrite

  1. #1
    I could stop if I wanted to
    Join Date
    2003-03
    Location
    Alberta
    Posts
    260
    Login to Give a bone
    0

    Angry Error when running sub - eNotOpenForWrite

    If you look at the attached PDF you will see a sub from a button. When clicked the button will iterate through items in a ListView control and place text in the drawing. This is were the problem starts. The sub executes fine until it hits lines 410. The an error is thrown and I get an error message (see attached Err.png).

    I can't see what I'm doing wrong. The code is basically copied and pasted from other source and it worked fine there. Can somebody help?
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    I could stop if I wanted to
    Join Date
    2003-03
    Location
    Alberta
    Posts
    260
    Login to Give a bone
    0

    Default Re: Error when running sub - eNotOpenForWrite

    I figured it out. I needed to move my oTrans.Commit() statement outside of the loop and it works fine.

Similar Threads

  1. INTERNAL ERROR: !dbobji.cpp@7319: eNotOpenForWrite
    By eddie9024535672 in forum AutoCAD General
    Replies: 6
    Last Post: 2013-09-04, 10:30 PM
  2. INTERNAL ERROR: !dobji.cpp@672:eNotOpenForWrite
    By simonaster in forum AutoCAD Civil 3D - General
    Replies: 5
    Last Post: 2009-08-05, 02:24 PM
  3. INTERNAL ERROR: !dbobji.cpp@6769: eNotOpenForWrite
    By rlehman.124981 in forum Software
    Replies: 3
    Last Post: 2008-12-17, 02:17 PM
  4. INTERNAL ERROR: !dbobji.cpp@6769: eNotOpenForWrite
    By mserapiglia in forum Software
    Replies: 3
    Last Post: 2008-05-20, 09:41 PM
  5. Deleting Objects (eNotOpenForWrite error)
    By bweir in forum Dot Net API
    Replies: 1
    Last Post: 2007-01-15, 05:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •