16,019,152 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by srastogi85 (Top 28 by date)
srastogi85
29-Mar-14 14:42pm
View
probably yes , but i thought someone in forum can guide me regarding possiblity , or some article where i can read about it
srastogi85
11-Oct-13 16:20pm
View
hi Mike ,
I see version of mscorelib as 2.0.50727.821,
I am currently using 2.0.50727.5472 , so this should inclide the fix, or i
should put this hotfix?
I think it includes from numbers i think
Thanks,
Shreyas
srastogi85
11-Oct-13 15:57pm
View
Hi Ron,
I understand , actually its a big enterprise application with using DTOs and objects from Infragistics , sorry cant post the code as its not possible wanted to have some idea how to debug or identify the issue.
Thanks
srastogi85
11-Oct-13 14:00pm
View
hi,
I tried to debug the issue using Debugdiag , it showed memory leak in below libs ,
these are the dlls where leak occurs , over i period time the leak for these dlls increases , leading to application crash, Please suggest what can be done.
I am using .NET framework 2.0 and my application is 32 bit.
mscorwks.dll is responsible for 121.05 MBytes worth of outstanding allocations. The following are the top 2 memory consuming functions:
mscorwks!EEVirtualAlloc+119: 120.69 MBytes worth of outstanding allocations.
mscorwks!DebuggerHeap::Alloc+2f: 284.07 KBytes worth of outstanding allocations. If this is unexpected, please contact the vendor of this module, Microsoft Corporation, for further assistance with this issue.
Warning WindowsCodecs.dll is responsible for 13.51 MBytes worth of outstanding allocations. The following are the top 2 memory consuming functions:
WindowsCodecs!WPF::ProcessHeapImpl::Alloc+16: 13.43 MBytes worth of outstanding allocations.
WindowsCodecs!zcalloc+1c: 86.67 KBytes worth of outstanding allocations. Thanks,
Shreyas
srastogi85
4-Oct-13 17:49pm
View
I didnt ignored Sergey , but couldnt get much info from it , nyways still looking for a solution
srastogi85
4-Oct-13 17:44pm
View
Sergey i debugged it through redgate memory profiler it showed memory consumed in unmanaged code , then used debugDiag to identigy libs it identify Widowscodes.dll and mscorworks.dll , so
i made app LARGEADDRESSAWARE to make it work part this file issue as otheroperations can be performed. debugDiag didnt identified leaks in code dlls , thats the issue
srastogi85
4-Oct-13 17:40pm
View
checked special folder , selected User Application Data Folder , but in which property you specify where it has to be created , for the machines i am developing C:\ drive will always be there
srastogi85
4-Oct-13 17:34pm
View
i am using VS 2005 .NET frameowrk 2.0
srastogi85
4-Oct-13 17:32pm
View
this directory will be kept for intermiadte logs during application run, and deleting them onle application run completes sucessfully in C:\, since in program files user has permission issues so we are creating in C:\ drive
srastogi85
4-Oct-13 17:30pm
View
I have a large file of around 5lakh rows with 10 numbers in each line , I reading this file into array, then making rows of 5000 and creating inserts and saving into database, bit complex requirement, and fetching it back into DTO and showing on screen memory lost 700 MB , and CLR already uses 600 MB so we reach the limit.
srastogi85
1-Oct-13 17:26pm
View
how can i add an empty folder to setup to be installed at specific location
srastogi85
25-Sep-13 13:59pm
View
Thanks it worked
srastogi85
25-Sep-13 12:35pm
View
Hi ,
thanks for reply ,
I wrote something similar here , but didnt work , can you point what can be the issue here
string filename="C:" + "\\x.bat";
string batlocation = @filename;
string battxt = String.Empty;
if (File.Exists(batlocation))
{
using (StreamReader reader = new StreamReader(batlocation))
{
battxt = reader.ReadToEnd();
}
}
battxt.Replace("UserName", dbUser);
battxt.Replace("Password", dbPassword);
battxt.Replace("Instance", dbInstance);
if (File.Exists(batlocation))
{
File.Delete(batlocation);
using (StreamWriter writer = new StreamWriter(batlocation,true))
{
writer.Write(battxt);
}
}
srastogi85
23-Sep-13 10:26am
View
This still didn't solved the problem
srastogi85
23-Sep-13 10:20am
View
yes sure sir :) thanks a lot
srastogi85
23-Sep-13 10:14am
View
Thanks Sergey,
I am planning to modify the code based on below lines , by having using clause and streamreader
, i think this might solve the issue for big files. Please suggest you views for this ?
using (StreamReader sr = new StreamReader("TestFile.txt"))
{
string line;
// Read and display lines from the file until the end of
// the file is reached.
while ((line = sr.ReadLine()) != null)
{
Console.WriteLine(line);
}
}
}
srastogi85
20-Sep-13 13:59pm
View
Hi Sergey,
There is no memory leak in the code written , we checked it , i wanted to have info have anyone encountered similar issue and what was done to resolve , did this hotfix from microsoft worked
srastogi85
20-Sep-13 12:38pm
View
Its an existing application which works fine when inserts are less , I cannot change logic at this moment , thanks for reply
srastogi85
10-Apr-13 0:01am
View
thanks , I had one extra column in curson and into had 1 less column
srastogi85
4-Apr-13 13:27pm
View
yes can say a sort of slideshow only as for each image time after which it should change will be defined
srastogi85
4-Apr-13 12:46pm
View
Hi Pablo,
thanks,
I will tell you the requirement , i will have 4-5 images saved in database with time in another column after which they should refresh,
Now once i get this info from DB , i need to generate an HTML which can perform this functionality .
your suggestions , should i generate an HTML with javascript to perform this, or
can it be done only throgh HTML
srastogi85
2-Apr-13 0:21am
View
I used CLob in Oracle , but it didnt worked
srastogi85
28-Mar-13 19:33pm
View
Hi sergey,
I am working with an existing application where we are using Infragistics control and Microsot Enterprise Library , i will try to identify any COM component being used, but not sure about it
srastogi85
26-Mar-13 15:24pm
View
Thanks for the Help
but i need to change the logic as you suggested initially some design fault.
will try to modify the solution accordingly.
As when it gets unique
we might have key as (a,b,c) ,(a,b,d)
and unique contraitn will be (a,b) (a,b) which will cause the issue , will see now for alternale solution
srastogi85
26-Mar-13 14:51pm
View
Thanks again , but the table where i am now going to make (A,B,C) as primary key i will be
saving multiple rows, which will have a,b,c as unique
Exact tables mentioned below:-
Table 1 -> Column A as foreign key
Table 2 -> column A,B vas primary key
Table 3 ->column A,B as foreign key
Table 4 ->column A as foreign key
srastogi85
26-Mar-13 14:41pm
View
Thanks Zoltán
, i already had table structure having (A,B) as primary and referecned by other tables, requirement is i added 1 new table, for this new table i needed one more Value so introduced column C, primary key made as (a,b,c) ,and wanted the other relations to work existing ones with (A,B) to work as earlier.
Please suggest .
srastogi85
17-Mar-13 18:11pm
View
Hi Maciej,
What i wass trying to do , have elaborated in below comment by me .
srastogi85
17-Mar-13 18:10pm
View
Hi Mike,
I did Accept Changes for the 1st dataset, it changes rowstate to Unchanged thats perfectly ok,
but since due to primary key connstraint i added rows from other dataset also to the dataset i saved, so for this dataset , if i will do Acceptchanges now it will give primary key constraint since rows are already there , so wanted a way to change the rowstate of this dataset to Unchanged , Please suggest
Show More