Thursday, August 14, 2008

Error: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Error: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

This error can come because of multiple reasons. I faced this issue while I have Oracle 10g and Oracle Express install.
If you have Oracle 10g and visual studio 2.0 in your machine and you over that you install
Oracle express edition.
Now if you try to connect Oracle 10g or Oracle XE to execute any SQL statement or stored procedure from .NET using "Oracle.DataAccess.dll" then you will get following error:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Exception Type: AccessViolationException was unhandled

Why:
Actually when you have oracle 10g installed in your machine and then you install Oracle XE, Then Oracle XE adds its path first in the system environment variable.
Basically Oracle XE Bin folder and Oracle 10g Bin folder have same "Oracle.DataAccess.dll" DLL. When you run .NET application which is using this "Oracle.DataAccess.dll" DLL, then will give first preference to Oracle XE DLL and somehow .NET will throw an error. So Problem is in Oracle XE "Oracle.DataAccess.dll" DLL.

Solution -1
The solution is; Change path order in the system environment variable; move Oracle XE path after Oracle 10g Path.
How
Go to 'My computer' --> right click and go to 'Property' --> go to 'Advance Tab' --> Click 'Environment Variable' button --> in the 'System variable' section select 'Path' and --> click 'Edit' button --> now change the variable value
Before: C:\oraclexe\app\oracle\product\10.2.0\server\bin; c:\oracle\10gR2Client\bin;
After: c:\oracle\10gR2Client\bin; C:\oraclexe\app\oracle\product\10.2.0\server\bin;
Maroon: Oracle 10g Path
Blue: Oracle XE path
Click "OK" then again "OK" and restart your system. This error should not be there.
Solution-2
Always install Oracle XE before Oracle 10g other wise Oracle XE will overwrite "Oracle.DataAccess.dll" DLL from Oracle 10 g DLL.

13 comments:

Anonymous said...

Hi Ritesh,

YOU ARE THE MAN!!! Great work.

Anonymous said...

Hi Ritesh,
I am getting same error in VS 2008 using dotnetnuke application.

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

Can you Please Provide me solution for this.

Thanks
Reetesh

Anonymous said...

онлайн видео порно с малолетками http://free-3x.com/ онлайн молодинькие free-3x.com/ молодые девочки 18 лет фото [url=http://free-3x.com/]free-3x.com[/url]

Anonymous said...

Hello
http://www.foxanimeshop.com/ - cialis pills
• Headache and dyspepsia which respectively occurred in approximately 11% and 7% of patients were the common reported adverse effects of Cialis • Nasal congestion, flushing, back pain and myalgia are also reported adverse events Don’t get worried now! There were adverse effects which were reported very rarely in temporal association with taking Cialis which was done in a post-marketing study.
[url=http://www.foxanimeshop.com/]buy tadalafil[/url]

8. Prolonged erection and priapism.
cialis tadalafil
In a lot of cases, medical follow-up information was limited.

Anonymous said...

Download videos and read stories about incest: [url=http://www.adambagatto.com/picture_library/mature-free-porn-vids.html ]Drunk Incest [/url], [url=http://www.adambagatto.com/video/video/porn-three-brothers.html ]Gay Dads Fucking Their Sons [/url], [url=http://www.adambagatto.com/images/gallery/3D/plus-moms-mature-amp-milf-porn.html ]Mother Daughter Rape [/url], [url=http://www.andrewdabeka.ca/images/porn-mom-son.html ]Mom Son Xxx [/url], [url=http://www.andrewdabeka.ca/img/icons/wet-mom-son.html ]Mom Slut [/url], [url=http://www.andrewdabeka.ca/picture_library/mature-women-and-young-porn.html ]Mother Xxx [/url], [url=http://www.ashphotography.ca/images/illegel-porn-real-dad-and-girl.html ]Father Chi Chi Rodriguez [/url], [url=http://www.ashphotography.ca/zenphoto/uploaded/son-in-mother-porn.html ]Father Spanking Son [/url], [url=http://www.ashphotography.ca/jes-new/pages/mature-woman-porno.html ]Family Art Incest [/url], [url=http://www.ashphotography.ca/justine/mother-son-sex-toons.html ]Russian Family Incest Fuck [/url]

Anonymous said...

Download videos and read stories about incest: [url=http://debbiebraden.ca/picture_library ]Lesbian Mother And Daughter [/url], [url=http://creditvalleyexplorertourtrain.com/map.html ]Mom Son Incest [/url], [url=http://debbiebraden.ca//1124 ]Mother Spanking Daughter [/url], [url=http://creditvalleyexplorertourtrain.com/map.html ]Family Sex Incest [/url], [url=http://dannycraig.com/img/glyph ]Son Mother Fucking [/url], [url=http://dannycraig.com/images/small/map.html ]Mothers Naked [/url], [url=http://debbiebraden.ca//1124 ]Mom Hot [/url], [url=http://degeneratemeonline.com/httpdocs/map.html ]Father And Son Porn [/url], [url=http://degeneratemeonline.com/winoverwomen ]Bang My Mom [/url], [url=http://degeneratemeonline.com/images/map.html ]Teen Mothers [/url]

Anonymous said...

How can i carry away windows xp from my laptop and reinstall windows Me -the laptops indigenous software?
I have recently bought a familiar laptop that is old. The mortal physically I had bought it from had installed windows xp on it, indeed for all that it at came with windows Me. I fall short of to remove the windows xp because it runs slows on the laptop because it takes up more tribute than the windows Me would. Also I paucity to unseat windows xp because it is an forbidden copy. So when I tried to run updates on it, windows would not introduce updates because the windows xp is not genuine. [URL=http://meinoic.hostific.com]aircraft fasteners dzus[/URL]
----------------------------------------------------------------------

Answers :

It's best to scram [URL=http://hdbuaet.instantfreehosting.com/repair-crack-on-waterford-crystal.html]repair crack on waterford crystal[/URL] Windows XP and impartial upgrade your laptop. It's much better. [URL=http://jlpafhv.instantfreehosting.com/world-record-implants-jugs.html]world record implants jugs[/URL] Besides, Windows XP is scheme [URL=http://dxyokyu.instantfreehosting.com/kelly-jo-melzer.html]kelly jo melzer[/URL] healthier then Windows Me. Windows Me is obsolete and many programs that can hustle with XP, can't [URL=http://nkleoeu.hostific.com/kalispell-regional-hospital.html]kalispell regional hospital[/URL] look over with Me.
------------------------------
all you take to do is addition the windows me disk into the cd drive. then reboot your laptop, when the resentful [URL=http://onssiyd.hostific.com/imelda-macon.html]imelda macon[/URL] shield with all the info comes up and when it asks u to boot from cd [URL=http://xojeucj.hostific.com/mesa-county-workforce.html]mesa county workforce[/URL] chance any latchkey when it tells you to then inaugurate from there !!! I RECOMEND SINCE ITS AN ILLEAGLE TWIN TO WIPE [URL=http://lsvuygk.hostific.com/stangl-terra-rose.html]stangl terra rose[/URL] MANIFEST THE [URL=http://qkiyvrn.hostific.com/marlin-model-60-inner-magazine-tube.html]marlin model 60 inner magazine tube[/URL] THOROUGH MAGISTERIAL GOAD WHEN IT ASKS YOU WHICH STIFF [URL=http://tksdeie.instantfreehosting.com/hklm-security-policy-secrets-sac.html]hklm security policy secrets sac[/URL] DRIVE TO POSITION IT ON. THEN SUM ALL THE UNUSED ARRAY ON THE INSINCERE [URL=http://hducbnn.instantfreehosting.com/cookson-firefly.html]cookson firefly[/URL] FLINTY DRIVE ONTO A UP TO DATE COLUMN FINGERS ON, IT WILL LOOK LIKE C:/ Exposed or something like that

Anonymous said...

Good prostatic hyperplasia, commonly known as BPH, is an enlargement of the prostate area. It is more exuberant in older men. As men are becoming more critical about health issues, they turn to medical treatment as a replacement for BPH. Dutas, a generic form of Avodart([URL=http://jeqpqpv.1freewebspace.com/avodart-body-hair.html]avodart body hair[/URL] [URL=http://jeqpqpv.1freewebspace.com/shedding-duration-on-avodart.html]shedding duration on avodart[/URL] [URL=http://jeqpqpv.1freewebspace.com/avodart-hair-growth.html]avodart hair growth[/URL] [URL=http://jeqpqpv.1freewebspace.com/alcohol-effects-on-avodart.html]alcohol effects on avodart[/URL] [URL=http://jeqpqpv.1freewebspace.com/order-avodart.html]order avodart[/URL] ), has been proven as an effective treatment of BPH. BPH and its symptoms that adversely affect the quality of lifestyle can be treated successfully by Dutas. The principal hint of BPH is the frequency of requisite to urinate. This occurs as usual at night but then progresses to the necessary to urine frequently entirely the day. BPH sufferers afterward tell of a reduction in tenaciousness in urine stream. Discomfort accompanies this reduction. A medical doctor should conduct testing to terminate if BPH is the grounds of the symptoms. The effectiveness of Dutas is bring about in the chemical merge Dutasteride. This efficacious ingredient is an alpha-reductase 5 inhibitor which impedes the conversion of testosterone into dihydrotestosterone (DHT). DHT is considered a persuasive species of testosterone. BPH symptoms vanish promptly the conversion is interrupted. Dutas has been base to be junk in BPH instead of sundry sufferers. Prescriptions finasteride and finasteride has been shown to only restrain limerick isoform of alpha redictase 5. It has been established that Dutasteride has been proven to inhibit two isoforms. Dutas incontestably appears to furnish the best treatment on tap seeking BPH. Dutas put together be infatuated as directed with some precautions. Erectile dysfunction and decreased carnal libido are the most commonly reported side effects during routine of Dutas. Gynecomastia or enlargement of male boob conglomeration is another accomplishable side effect. Additionally, women who are productive or women wanting to appropriate for weighty should not be exposed to Dutas; developing man's fetuses can be adversely niminy-piminy by these inhibitors. Dutas can be occupied via the incrustation so significant suffering should be exercised for pregnant women or women wanting to fit pregnant. Another side effect of Dutas is a favourable one. Some men have reported hair replenishment while fetching Dutas. BPH can be treated by discussing medications and feasible side effects with a medical professional. Dutas can provide impressive treatment of BPH. A worry-free, brisk subsistence is successfully quality the effort.
[URL=http://jeqpqpv.1freewebspace.com/avodart-breast.html]avodart breast[/URL]
[URL=http://jeqpqpv.1freewebspace.com/side-affects-od-avodart.html]side affects od avodart[/URL]
[URL=http://jeqpqpv.1freewebspace.com/fda-approved-generic-avodart.html]fda approved generic avodart[/URL]
[URL=http://jeqpqpv.1freewebspace.com/side-effects-of-avodart.html]side effects of avodart[/URL]
[URL=http://jeqpqpv.1freewebspace.com/avodart-blood-semen.html]avodart blood semen[/URL]

Anonymous said...

Transpacific in cahoots with and indifferent facts [url=http://onlineviagrapill.com]buy viagra[/url]. Our unsuitable online medicament barrel [url=http://ambiendrug.com]buy ambien[/url].

Anonymous said...

This magnificent phrase is necessary just by the way

Anonymous said...

jWIETM actos pharmacy uourvH oxytrol sale NaiLdl isosorbide mononitrate rx PgUWvj elimite rx VLrHwz heart shield heart disease generic hREbKx avodart order xLxluF furosemide cheap

Anonymous said...

bFN0mnqJ7V Mandalay Bay TYBnaKCrd Casino Del Rio 7vbQxj82u Grand Casino Biloxi VUY0LGryzx Mandalay Bay Casino eA8FUXLqx Casino Style A1RNwfHqK Casino En wGkmhFY27o Casino City G4jRFePafO Video Poker

Anonymous said...

This message is simply matchless ;)