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
1 answer

Entity Framework not Lazy Loading FK Collection on Add

I have the following database structure for an Entity Framework (version 5) implementation that has been working for years, but is getting slower and slower because of some kind of circular referencing issues. [Table("Sensors", Schema =…
Psyfun
  • 353
  • 3
  • 15
1
vote
3 answers

Java- variable that's static, but extended subclasses don't share the value

Let's say I have a class: public abstract class Foo{ public static int i = 0; } I want to make it so that when I have 2 additional classes like so: public class Bar extends Foo{ public Bar(){ i=1; } } and public class t extends Foo{ …
user2411448
1
vote
0 answers

LPAE of ARMv7-A

I'm using TI Keystone II device within which there's ARMv7-A architecture for ARM core. When I try to use Large Physical Address Extension (LPAE), I use Long-descriptor translation table format. Here's the lines that I used for page table which is…
1
vote
1 answer

GMock doesn't compile, virtual function with user type reference argument

I am trying to mock an abstract class but I keep getting compiling errors from inside the GMock headers. I can't share the actual code, but is almost the same as bellow. The mocking was working fine, but I had to change the "DoStuff" function to…
user7002255
1
vote
1 answer

Do 16-bit programs run in Virtual 8086 Mode on a 32-bit OS?

I want to confirm a few things. I am making assembly language programs for 8086. I am assembling using masm611 assembler. If i run and debug the 8086 16bit real mode program under command prompt in 32 bit windows, Does it use and modify the actual…
user2277648
  • 121
  • 2
  • 7
1
vote
4 answers

C++ Get Virtual Function Table Index

Is it possible (and how) to obtain the index of a virtual function in the virtual method table? class A { virtual void foo(); } I know foo is the first (0) item in the virtual method table However can I have foo and get 0?
Adam W
  • 317
  • 1
  • 3
  • 15
1
vote
1 answer

Vector of virtual class in C++

I'm learning C++ and reading a book, A tour of C++. In section 9.2.1, this book says vector vs; # is bad, vector vps; # is better, and vector> vups; # is OK. My question is why…
Toshihiro
  • 61
  • 1
  • 1
  • 7
1
vote
2 answers

Torque/PBS can not find munge.socket.2

I am trying to create a virtual cluster for my MPI classes so i can work at home and not be at the university labs the whole day. I can not figure out for 2 days now how to fix this problem with munge. The output of the problem i have is…
Lum Zhaveli
  • 175
  • 2
  • 18
1
vote
1 answer

Virtual Keyboard Borderless Win 10

I'm trying to put the Virtual Keyboard of Win 10 Borderless But don't know why it's not working. I tried with NotePad and it's working. ( I did a Debug.log to check if IntPtr is not null and in both case it return true) Here's what I did using…
Kyan
  • 103
  • 12
1
vote
1 answer

Postfix virtual mailbox with authentication setup allows sending mails from unauthenticated users

I have a problem with my postfix setup that it allows unauthenticated and non-existing users to send mail. Postfix is configured to use virtual mailboxes. This is what happens: telnet hostname.com 25 Connected to hostname.com. Escape character is…
Stuka
  • 37
  • 1
  • 5
1
vote
0 answers

"Unable to resolve virtual method" when using GCM on Android

I'm working on an Android App which is using Google's GCM. It's also working pretty well, apart from the fact that it sometimes takes a huge amount of time to initialize the GCM receiver side (tested on a Galaxy S3 and OnePlus One). I now reviewed…
1
vote
1 answer

C++ Abstract a templated type, keep T (virtual)

I have written a set of two classes to help with polymorphism, more specifically in cases where we'd have a collection of pointers to a base class where we store derived classes. There are two implementations, one in current use and an experimental…
zeluisping
  • 213
  • 7
  • 17
1
vote
1 answer

Static abstract objects with virtual methods

I'm working on a personal project and I've run into an issue. I have object a couple of objects that have the same properties, methods, etc. The only things that differ are their names, values of properties, and the implementation of the methods.…
ilyketurdles
  • 113
  • 1
  • 11
1
vote
2 answers

How do you open a windows application as a source for OpenCV?

I would like to recognize objects of windows applications, mainly computer games. I would like to accomplish this by opening the window in OpenCV and applying all kinds of effects to the game application under execution and recognize objects such as…
Disane
  • 25
  • 4
1
vote
0 answers

Updating window (Directx) when Screen not present

I got pretty uncommon problem. I have a few virtual servers running Windows Server 2012 and bots playing game. This game uses DirectX5 or DirectX9 or OpenGL engine. Everything is fine when you connect to server via RDP, I start bot and it plays the…
psychoboi111
  • 108
  • 6