473,385 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

**Bug** in jitter

Hello,
I have spent the past four days nailing down what looks to me like a bug in
the jitter.

Problem
~~~~~~
When my program is run without the debugger attached in release an object is
disposed of whilst execution is still in one of it's methods. I have a C#
application talking to a managed C++ data access layer that then talks to a
managed/unmanaged data access engine. It's whilst in the unmanaged portion
that the object is incorrectly disposed via a system triggered GC.

Workaround
~~~~~~~~~
I have turned off via the linker optimisations for the offending module.

Reproducible code
~~~~~~~~~~~~~
I have a reproducible console based test application that demonstrates the
problem. Unfortunately because it uses the data access engine I cannot post
the code directly here. I only have authorisation to email the source / test
app to a MS employee.

Regards
Lee
Nov 16 '05 #1
2 1113
"Lee Alexander" <lee@No_Spam_Please_Digita.com> wrote in message
news:ut*************@TK2MSFTNGP12.phx.gbl...
Hello,
I have spent the past four days nailing down what looks to me like a bug in
the jitter.

Problem
~~~~~~
When my program is run without the debugger attached in release an object is
disposed of whilst execution is still in one of it's methods. I have a C#
application talking to a managed C++ data access layer that then talks to a
managed/unmanaged data access engine. It's whilst in the unmanaged portion
that the object is incorrectly disposed via a system triggered GC.


Sounds like a known issue:

http://blogs.gotdotnet.com/cbrumme/c...0-f0fa27ab6cc0
http://blogs.gotdotnet.com/anathan/c...7-1b6c677214cb

Ken
Nov 16 '05 #2
Ken,

Thanks very much for that. GC.KeepAlive fixed it! Unbelievable I never would
have thought that the GC could collect an object whose methods are still
running. I'll have to run some of these debug probes on my application.

Thanks again

Regards
Lee

"Ken Alverson" <Ke*@Alverson.net> wrote in message
news:uE**************@TK2MSFTNGP10.phx.gbl...
"Lee Alexander" <lee@No_Spam_Please_Digita.com> wrote in message
news:ut*************@TK2MSFTNGP12.phx.gbl...
Hello,
I have spent the past four days nailing down what looks to me like a bug in the jitter.

Problem
~~~~~~
When my program is run without the debugger attached in release an object is disposed of whilst execution is still in one of it's methods. I have a C# application talking to a managed C++ data access layer that then talks to a managed/unmanaged data access engine. It's whilst in the unmanaged portion that the object is incorrectly disposed via a system triggered GC.
Sounds like a known issue:

http://blogs.gotdotnet.com/cbrumme/c...0-f0fa27ab6cc0 http://blogs.gotdotnet.com/anathan/c...7-1b6c677214cb
Ken

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Baoqiu Cui | last post by:
Today I was playing with a small Python program using Python 2.4 on Cygwin (up-to-date version, on Windows XP), but ran into a strange error on the following small program (named bug.py): ...
5
by: K. Shier | last post by:
when attempting to edit code in a class file, i see the bug "Visual Basic ..NET compiler is unable to recover from the following error: System Error &Hc0000005&(Visual Basic internal compiler...
102
by: Xah Lee | last post by:
i had the pleasure to read the PHP's manual today. http://www.php.net/manual/en/ although Pretty Home Page is another criminal hack of the unix lineage, but if we are here to judge the quality...
16
by: Edward Diener | last post by:
After spending more than a day reducing a complicated compiler bug to a simple case I reported it to the MSDN Product Feedback Center as a bug just now. However this bug is completely stymying my...
26
by: Patient Guy | last post by:
The code below shows the familiar way of restricting a function to be a method of a constructed object: function aConstructor(arg) { if (typeof(arg) == "undefined") return (null);...
158
by: Giovanni Bajo | last post by:
Hello, I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the "PSF infrastracture committee", after weeks of evaluation, recommends...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 385 open (+21) / 3790 closed (+21) / 4175 total (+42) Bugs : 1029 open (+43) / 6744 closed (+43) / 7773 total (+86) RFE : 262 open...
0
by: LiveTecs | last post by:
http://www.livetecs.com TimeLive Web Collaboration Suite is an integrated suite that allows you to manage project life cycle including tasks, issues, bugs, timesheet, expense, attendance. ...
12
by: Juan T. Llibre | last post by:
re: !I found an MSDN document that explains why what I'm trying to do should work Lee, From : http://www.w3.org/TR/REC-xml/ "A special attribute named xml:lang may be inserted in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.