Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fatal Exception C000000E

Status
Not open for further replies.

chpicker

Programmer
Apr 10, 2001
1,316
Does anyone have any ideas why this line would cause a fatal error with exception code C000000E?

thisform.grid1.columns(i+2).addobject("text1","schedbox")

This line is part of my form.activate code, which executes fine when the form comes up. Whenever I wish to reset the data on the form and redraw the grid, I call the activate code again manually. This works fine as many times as I do it until I actually make changes to the data. The next time I try to call the activate code after making any changes, it crashes.

The Microsoft MSDN web site lists quite a few possible causes of this particular exception code, and none of the items I found have any bearing on my situation. Does anyone have any ideas?
 
chpicker: FWIW. . .my workaround has been to do a brand new form just like the old one that is causing the problem. . .I could never figure it out. . .Good Luck from Bill
 
Yeah, that's what I ended up doing last time this happened.

I think I figured this one out, though. I have an object reference to one of the columns in the grid which keeps track of the 'active' column (the 'gotfocus' event of the textbox assigns the variable to the column object). When I call the activate method, it deletes all columns out of the grid, then adds the number I need for the new grid. By clearing the object variable before calling the activate method, the fatal error stopped happening.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top