PC Review


Reply
Thread Tools Rate Thread

Bug outside IDE only in Release mode

 
 
Patrice Dargenton
Guest
Posts: n/a
 
      15th Apr 2010
Hello, I have a bug only is release mode outside IDE : in fact, if the debug
symbols are not set, the bug occurs :

<DebugSymbols>false</DebugSymbols>
<DebugType>None</DebugType>

But if the debug symbols are set, the bug does not occur :

<DebugSymbols>true</DebugSymbols>
<DebugType>pdbonly</DebugType>

The bug is : "Object Invalid or No Longer Set"
System.Runtime.InteropServices.COMException (0x800A0D5C):
at dao.Recordset.Close()

I tried to put the close statement in a try/catch bloc, and I tried also to
check IsNothing, but without success.

The bug occurs only if I try to read at least one value of my dao recordset:
Dim myVal% = CInt(myDaoRecorset.Fields("myField").Value)
(if I just travel the recordset without reading values, the bug does not
occur)

Within the IDE there is no bug, in release or debug mode.

Does anyone has an solution ?
Thanks.
-------------------------------------------------------
Patrice Dargenton
(E-Mail Removed)
http://patrice.dargenton.free.fr/index.html
-------------------------------------------------------




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
My application takes up 1.5GB of memory in release mode, but only 370mb in debug mode...why? John Sheppard Microsoft Dot NET 4 16th Jan 2008 11:16 AM
My application takes up 1.5GB of memory in release mode, but only 370mb in debug mode...why? John Sheppard Microsoft VB .NET 4 16th Jan 2008 11:16 AM
User Control access fails in debug mode, works in release mode rbg Microsoft C# .NET 0 17th Jan 2007 10:51 PM
User Control access fails in debug mode, works in release mode rbg Microsoft ASP .NET 0 17th Jan 2007 10:51 PM
MSDE 2000 Release A: Windows Authentication Mode or Mixed Mode? =?Utf-8?B?U0hD?= Microsoft Access VBA Modules 3 22nd Sep 2005 10:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:13 AM.