|
by: alan |
last post by:
Hi all,
I have a problem on release memory.
If I delcare the following pointer to pointer char, how can I free the
allocated memory ?
let say "myVar = 20" <---actually it is not a constant, but now I set
it to 20.
|
by: Mullin Yu |
last post by:
I write a Windows Application which uses db connections and some COM dll.
After running consecutively for 12 hours, the memory of the application
increased from 30MB to 130MB.
How can I trace the main cause of the memory used and how can I release
them?
Thanks!
Mullin
|
by: smartbeginner |
last post by:
main()
{
int i;
int *a;
a=calloc(4,sizeof(*a));
/* The above code I know will not compile .But why
cant I allocate space
for all 4 integers i need to store */
for(i=0;i<2;i++)
a=calloc(2,sizeof(*a));
|
by: prashant_sharma |
last post by:
Hi,
Following code is creating assertion
Please help me to release memory occupied by Char array..
char *nm = new char;
strcpy(nm,"Prashant");
delete nm;
Thanks in Advance
|
by: laikon |
last post by:
Hi, everyone, below is my program to test static pointer data member;
class A
{
private:
static A* p;
protected:
A() {}
public:
static A* init()
|
|
by: eflatunn |
last post by:
Hi all,
my problem is that the application doesn't terminate when I close the form using the close box on the caption bar. Actually it seems as if the program is closed but task manager's process list shows that it is not.
There is one thread that I manully create and start in forms load event. But I set the IsBackground property of the thread to true. So, it should terminate while exiting the application.
There are other threads that...
|
by: mina |
last post by:
hi
i am using vb.net 2005 to my desktop application.
my problem is like this
when i am running my project it occupies 100% cpu at 1st form load.
then again it release memory upto 95%.
when i am calling new / loading another form it agein occuipes 100%
cpu or near about it.
While loading each form i am doing like this:
me.close
me.dispose
|
by: mynews |
last post by:
I use free() function to release memory,
But the memory usage is still increasing.
cygwin
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct queue{
|
by: Samant.Trupti |
last post by:
HI,
I want to dynamically allocate array variable of type LPWSTR.
Code looks like this...
main() {
LPWSTR *wstr;
int count = Foo (wstr);
for (int i = 0; i < count; i++)
//print each element;
|
by: Trups |
last post by:
HI,
I want to dynamically allocate array variable of type LPWSTR.
Code looks like this...
main() {
LPWSTR *wstr;
int count = Foo (wstr);
for (int i = 0; i < count; i++)
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|