HighTechTalks DotNet Forums  

IsDirty returns false all the time

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss IsDirty returns false all the time in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Songtao Qiu
 
Posts: n/a

Default IsDirty returns false all the time - 01-22-2005 , 01:09 PM






I just wrote a script engine to run some VB.NET source code. An
IVsaGlobalItem obj is created and passed to the VBScript. The VBScript
modifies the member of the IVsaGlobalItem object, however, when I check with
obj.IsDirty and I find it is always false. Did anyone encounter this ?

I also found that when I wanted to debug the VB.NET source code loaded from
file, the VS.NET 2003 gave me info that the source code is not available. How
can I enable this just like doing VBscript under VC++ engine through script
debugger ?

Thanks,

Reply With Quote
  #2  
Old   
Nicole Schenk
 
Posts: n/a

Default Re: IsDirty returns false all the time - 01-22-2005 , 02:35 PM






Songtao Qiu wrote:

Quote:
I just wrote a script engine to run some VB.NET source code. An
IVsaGlobalItem obj is created and passed to the VBScript. The VBScript
modifies the member of the IVsaGlobalItem object, however, when I check
with obj.IsDirty and I find it is always false. Did anyone encounter this
?

I also found that when I wanted to debug the VB.NET source code loaded
from file, the VS.NET 2003 gave me info that the source code is not
available. How can I enable this just like doing VBscript under VC++
engine through script debugger ?

Thanks,
Perhaps, about the first, is that you have ViewState disabled. The
mechanisms to detect change in most controls use ViewState

Have you tried to click on F11 anyway?. Sometimes the debugger will find the
missing source.


Reply With Quote
  #3  
Old   
Songtao Qiu
 
Posts: n/a

Default Re: IsDirty returns false all the time - 01-22-2005 , 06:31 PM



Thanks for the suggestion.

The engine is a console application. There is no web involved at all.

For the debugging part, I got the problem when I pressed F11.

"Nicole Schenk" wrote:

Quote:
Songtao Qiu wrote:

I just wrote a script engine to run some VB.NET source code. An
IVsaGlobalItem obj is created and passed to the VBScript. The VBScript
modifies the member of the IVsaGlobalItem object, however, when I check
with obj.IsDirty and I find it is always false. Did anyone encounter this
?

I also found that when I wanted to debug the VB.NET source code loaded
from file, the VS.NET 2003 gave me info that the source code is not
available. How can I enable this just like doing VBscript under VC++
engine through script debugger ?

Thanks,
Perhaps, about the first, is that you have ViewState disabled. The
mechanisms to detect change in most controls use ViewState

Have you tried to click on F11 anyway?. Sometimes the debugger will find the
missing source.


Reply With Quote
  #4  
Old   
bruce barker
 
Posts: n/a

Default Re: IsDirty returns false all the time - 01-24-2005 , 11:59 AM



you have to write the script file to disk for the debugger to access it.
also with vb.net, you have to include the path in the source. in the source
text, add the line:

#ExternalSource("\\mypath")

at the beginning, then write the script text to that path. you will then be
able to debug the script.


-- bruce (sqlwork.com)




"Songtao Qiu" <Songtao Qiu (AT) discussions (DOT) microsoft.com> wrote

Quote:
I just wrote a script engine to run some VB.NET source code. An
IVsaGlobalItem obj is created and passed to the VBScript. The VBScript
modifies the member of the IVsaGlobalItem object, however, when I check
with
obj.IsDirty and I find it is always false. Did anyone encounter this ?

I also found that when I wanted to debug the VB.NET source code loaded
from
file, the VS.NET 2003 gave me info that the source code is not available.
How
can I enable this just like doing VBscript under VC++ engine through
script
debugger ?

Thanks,



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.