Questions tagged [virtual]

An extensible or simulated artifact

Virtual memory: Giving the appearance of having greater system memory by paging infrequently used portions of memory out to disk, and reloading them from disk only when referenced.

Virtual hard disk: A software simulation of a hard disk.

Virtual method: a function that can be overridden in descendant classes to extend or replace existing functionality. This is a key aspect of polymorphism.

Virtual reality: A simulation of experience achieved by coordinating visual, audible, and tactile stimuli

3155 questions
1
vote
0 answers

Java Linux VIRT size is high

Currently, I have developed a Java application, and it runs under JDK 1.7, when I deployed this application on Linux and used command top to monitor it, I found that the VIRT is so high, please see following, PID USER PR NI VIRT RES SHR S %CPU…
1
vote
2 answers

C++ inheritance problem with namespaces

OK, I have been looking about but can not for the wits of me find a reason to why this should not work: Base class (misc/interface/handler.h) #ifndef __t__MISC_VIRTUAL_HANDLER_H #define __t__MISC_VIRTUAL_HANDLER_H #pragma message("Starting with…
JDW
  • 175
  • 3
  • 12
1
vote
4 answers

C++: derived classes and virtual methods

Possible Duplicates: C++ : implications of making a method virtual Why is 'virtual' optional for overridden methods in derived classes? I wonder, what is documented behavior in the following case: You have class A { virtual void A() { cout…
BarsMonster
  • 6,483
  • 2
  • 34
  • 47
1
vote
2 answers

inheritance c++

I have two class. class A: class B: public A { //new function void setHint(...); } And have struct data. typedef std::shared_ptr window_ptr; std::stack
Tipok
  • 675
  • 8
  • 26
1
vote
1 answer

Virtual call in constructor with additional method

I have the issue where I need to call a virtual function in my abstract class' constructor. internal abstract class Item { protected Item(...) { ... CreateBuyButton(...); } protected abstract void…
dB.Employee
  • 173
  • 3
  • 10
1
vote
1 answer

Make virtual copy of a device

I have a weird question. I would like to make a virtual copy of a device. In order to test some software I want to make a mirror copy of a particular scanner. Now I know there are some virtual TWAIN scanners out there, but I want Windows to…
1
vote
3 answers
1
vote
0 answers

Virtual memory exception when dealing with large binary files

I get a virtual memory exception error when transforming a (2~3 megabytes) binary file to a different format. This error only happens on low performance PCs with 100 Mbytes of virtual memory. Performance report in realtime (.net Memory…
Kh abbs
  • 11
  • 1
1
vote
2 answers

C++ - want virtual acting solely as redirection

Let's say I have a template: template void add(N* element, std::list & container, I (N::*f)() const, std::string successmsg, std::string exceptmsg) { //... } And I want to call it for a list of Base Class pointers to…
F. P.
  • 5,018
  • 10
  • 55
  • 80
1
vote
1 answer

How to delete the virtual directory entry from IIS?

I have written some code to delete Virtual Directories, however all that it is doing is that it deleted the folder structures beneath the Virtuals and not the actual virtual entries in IIS, so that if I open IIS I can still see the listings under…
user259286
  • 977
  • 3
  • 18
  • 38
1
vote
2 answers

Why aren't multiple bluetooth SPP devices with different COM port assignments unique?

Here's the setup: I have two bluetooth devices paired with a single PC. Both are SPP, intended to be used with separate virtual COM ports. One device is assigned COM9, the other is assigned COM11. If I open the COM9 port, it 'sees' the data from the…
1
vote
1 answer

Other computer on the same intranet can't connect to my web server on my virtual machine

I used vagrant to setup a virtual machine and then on that virtual machine, I set up a webserver with ip I config like below: config.vm.network "private_network", ip: "192.168.33.12" config.vm.network "public_network", ip: "192.168.33.13" …
1
vote
3 answers

Calling the right free function from a base pointer/reference

Let a class hierarchy : class Base { virtual ~Base() throw(); }; class DerivedA : public Base { }; class DerivedB : public Base { }; I would like to have some code specific to each of these derived classes. However that code also being specific…
Virus721
  • 8,061
  • 12
  • 67
  • 123
1
vote
2 answers

operating systems memory management - malloc() invocation

I'm studying up on OS memory management, and I wish to verify that I got the basic mechanism of allocation \ virtual memory \ paging straight. Let's say a process calls malloc(), what happens behind the scenes? my answer: The runtime library finds…
bloodcell
  • 601
  • 1
  • 9
  • 23
1
vote
1 answer

Unable to in install Pdftron Virtual Printer

In my ASP .Net application, I am using 'PDFTron 6.0.1.0'. Prior converting my docx files to xod(using pdftron.PDF.Convert.ToXod method), we are checking the presence of virtual printer, and install it if not present. For this we are using following…
Shubham
  • 15
  • 5