Object Variable Error; Followed by Memory Error

  • Thread starter Thread starter Ross Culver
  • Start date Start date
R

Ross Culver

I've been working on a Windows application for several weeks now. Starting
late yesterday, I started getting the dreaded "Object variable or with block
variable not set" error when I close one of the forms. By process of
elimination I determined I found that if I commented out one
datatableadapter.fill statement, then the error went away. This was a
dataset (pulling data from SQL) created using the normal data binding wizard
for a listbox. The datatableadapter.fill statement was auotcreated by the
databinding wizard.

Then I started getting this error after clicking 'OK' to the 'Object
variable...' message: Application Error - The instruction at "Ox30cbobad"
referenced memory at "0x000000000". The memory could not be "written".
Click on OK to terminate the program".

I even get the memory error after commenting out the datatableadapter.fill
statement.

The only other changes that have occurred with to my computer over the past
two days are: installing Canon multifunction software and drivers;
installing a TwainControlAX 2.0 API for scanning. I have not yet added the
TwainControl assembly to this project.

Is there any reason to think that uninstalling either or both of the Canon
or TwainControl programs would resolve this problem?

Thanks,

Ross
 
I should add, that if I 'stop debugging' instead of closing the form,
neither error occurs.
 
Back
Top