Error "pure virtual function call"

Hi,
Windows7, PCI-GPIB, NI-488.2 Version 3.1.1, Visual Studio 2010 C++ Application.
Randomly between 10 minuntes and 4 hours I get the error "pure virtual function call"
With the debbuger attached to the process in error I identified NI4882.dll as the source of the error.
Then I deinstalled NI-488.2 Version 3.1.1 and installed NI488.2 July 2000. Then my application runs without any error!
I tried to attach the source files which represents the interface between my application and the NI-4882 driver but it did not work for the C++ file.
Any help appreciated.
Best Regards
Walter
Attachments:
_GPIB.h ‏4 KB

Part 2:
Int TGpib::Open (UShort adr, ULong timeoutMs)
if (mDevices.empty ())
Reset ();
Int ud = ibdev (mBoardID, adr, 0, TimeoutCode (timeoutMs), 1, 0);
if (ud < 0)
MCTraceLib (this, eTraceError, TFCTX, _T("open device '%d' failed"), adr);
GPIBError (-1, FCTX, true);
return -1;
SDevInfo devInf;
devInf.mGpibAdr = adr;
mDevices[ud] = devInf;
if (!DeviceClear (ud))
MCTraceLib (this, eTraceError, TFCTX, _T("no device on address '%d'"), adr);
GPIBError (ud, FCTX, true);
Close (ud);
return -1;
if (Send (ud, "*IDN?"))
Tstring s = String2Tstring (Enter (ud));
StringList l = Split (s, _T(','));
if (l.size () == 4)
mDevices[ud].mVendorName = l[0];
mDevices[ud].mModelName = l[1];
else
MCTraceLib (this, eTraceError, TFCTX, _T("no device on address '%d'"), adr);
GPIBError (ud, FCTX, true);
Close (ud);
return -1;
Local (ud);
return ud;
bool TGpib::Close (Int ud)
GPIBDevMap::iterator it = mDevices.find (ud);
if (it != mDevices.end ())
Local (ud);
Int stat = ibonl (ud, 0);
if ((stat & ERR) != 0)
MCTraceLib (this, eTraceError, TFCTX, _T("close device ud = '%d' failed"), ud);
GPIBError (ud, FCTX, true);
return false;
mDevices.erase (it);
return true;
return false;
bool TGpib::SetTimeout (Int ud, ULong timeoutMs)
Int stat = ibtmo (ud, TimeoutCode (timeoutMs));
if ((stat & ERR) != 0)
MCTraceLib (this, eTraceError, TFCTX, _T("set timeout device ud = '%d' failed"), ud);
GPIBError (ud, FCTX, true);
return false;
return true;
ULong TGpib::Timeout ()
return mTimeout;
bool TGpib::EnableSRQ (Int ud, HANDLE srqEvent)
if (srqEvent != INVALID_HANDLE_VALUE)
GPIBDevMap::iterator it = mDevices.find (ud);
if (it != mDevices.end ())
(it->second).mSRQEvent = srqEvent;
Int stat = ibnotify (mBoardID, SRQI, GpibSRQ, (void*)this);
if ((stat & ERR) != 0)
MCTraceLib (this, eTraceError, TFCTX, _T("on device ud = '%d' failed"), ud);
GPIBError (ud, FCTX, true);
return false;
MCTraceLib (this, eTraceDebug, TFCTX, _T("(SRQ)on device ud = '%d' success"), ud);
return true;
else
MCTraceLib (this, eTraceError, TFCTX, _T("srqEvent == INVALID_HANDLE_VALUE"));
return false;
bool TGpib::DisableSRQ (Int /*ud*/)
return true;
bool TGpib::Remote (Int ud)
Int adr;
ibask (ud, IbaPAD, &adr);
adr += 32; // Talk Address = Listen Address + 32
char cmdbuf[] = {MTA0, 0, LLO, UNT, UNL};
cmdbuf[1] = char(adr);
Int stat = ibcmd (mBoardID, &cmdbuf, 5);
if ((stat & ERR) != 0)
MCTraceLib (this, eTraceError, TFCTX, _T("on device ud = '%d' failed"), ud);
GPIBError (ud, FCTX, true);
return false;
mDevices[ud].mRemote = true;
return true;
bool TGpib::Local (Int ud)
mDevices[ud].mRemote = false;
Int stat = ibloc (ud);
if ((stat & ERR) != 0)
MCTraceLib (this, eTraceError, TFCTX, _T("on device ud = '%d' failed"), ud);
GPIBError (ud, FCTX, true);
return false;
return true;
char TGpib::SerialPoll (Int ud)
char pollChr;
Int stat = ibrsp (ud, &pollChr);
if ((stat & ERR) != 0)
MCTraceLib (this, eTraceError, TFCTX, _T("on device ud = '%d' failed"), ud);
GPIBError (ud, FCTX);
return false;
return static_cast<char> (pollChr & 0x9F); // VM QueryError eliminieren
bool TGpib::DeviceClear (Int ud)
Int stat = ibclr (ud);
if ((stat & ERR) != 0)
MCTraceLib (this, eTraceError, TFCTX, _T("on device ud = '%d' failed"), ud);
GPIBError (ud, FCTX, true);
return false;
return true;
bool TGpib::Trigger (Int ud)
Int stat = ibtrg (ud);
if ((stat & ERR) != 0)
MCTraceLib (this, eTraceError, TFCTX, _T("on device ud = '%d' failed"), ud);
GPIBError (ud, FCTX);
return false;
return true;
bool TGpib::Send (Int ud, const std::string& str)
Int stat = ibeot (ud, 1);
if ((stat & ERR) != 0)
MCTraceLib (this, eTraceError, TFCTX, _T("'EOI on' on ud = '%d' failed"), ud);
GPIBError (ud, FCTX);
return false;
stat = ibwrt (ud, (void*)str.c_str (), str.length ());
Long sent = ThreadIbcntl ();
if ((stat & ERR) != 0)
MCTraceLib (this, eTraceError, TFCTX, _T("on device ud = '%d' failed"), ud);
GPIBError (ud, FCTX);
return false;
if (sent != static_cast<Long> (str.length ()))
MCTraceLib (this, eTraceError, TFCTX, _T("only %d of %d characters sent"), sent, str.length ());
return false;
return true;
bool TGpib::SendNoEOI (Int ud, const std::string& str)
Int stat = ibeot (ud, 0);
if ((stat & ERR) != 0)
MCTraceLib (this, eTraceError, TFCTX, _T("'EOI off' on ud = '%d' failed"), ud);
GPIBError (ud, FCTX);
return false;
stat = ibwrt (ud, (void*)str.c_str (), str.length ());
Long sent = ThreadIbcntl ();
if ((stat & ERR) != 0)
MCTraceLib (this, eTraceError, TFCTX, _T("on device ud = '%d' failed"), ud);
GPIBError (ud, FCTX);
return false;
if (sent != static_cast<Long> (str.length ()))
MCTraceLib (this, eTraceError, TFCTX, _T("only %d of %d characters sent"), sent, str.length ());
return false;
return true;
std::string TGpib::Enter (Int ud)
std::string str = "";
char* buf = new char[2048];
Int stat = ibrd (ud, (void*)buf, 2047);
Long got = ThreadIbcntl ();
if ((stat & ERR) != 0)
MCTraceLib (this, eTraceError, TFCTX, _T("on device ud = '%d' failed"), ud);
GPIBError (ud, FCTX);
else
buf[got] = '\0';
str = buf;
// eventuelle LF und CR vom Ende entfernen!
string::size_type idx = str.find_last_of (k_CR);
str = str.substr (0, idx);
idx = str.find_last_of (k_LF);
str = str.substr (0, idx);
delete[] buf;
return str;

Similar Messages

  • Intermittent Runtime error - pure virtual function call

    I have an intermittent runtime error - pure virtual function call & don't know what cause it? Since It only occurs & crashes once awhile therefore it's difficult to trap it for debugging.I suspect it come from TestStand ActiveX API which I use in my User Interface Application project but I'm not really sure.
    Does anyone experience this kind of problem when working with TestStand API ? If so any
    suggestion? I have noticed in the TestStand API header file teapi.tlh contain many raw_.... function defined as pure virtual function. What are these raw_... function ? I don't think I use any of these function in my project.
    Many thanks!

    Danh,
    I don't believe that your problem can be solved with the information you have provided unless someone else has experienced the same symtpoms which coincidentally have the same cause as in your case.
    Is there any other information you can provide that can help localize the problem?
    1) What is happening when the error occurs?
    2) Does the error always occur in the same place?
    3) Does it always occur with use of certain resources (e.g. DAQ, GPIB, VISA, printer)?
    4) Does it occur when using the sequence editor?
    5) Does it occur when using one of the shipping operator interfaces?
    6) Does it occur only when using your operator interfaces?
    7)Is it related to a specific sequence or any sequence?
    8) Does it happen when you executed your sequence with/without a process model entr
    y point (i.e. Execute>>Test UUTs, Execute>>Singal Pass or Execute>>Run MainSequence)?
    9) How often does it happen?
    10) What version of TestStand are you using?
    11) With what language (include versions) are you programming your code modules?
    12) With what language (include versions) are you programming your operator interface?
    13) Is there any error code reported with this error message?
    14) Is this error reported in a TS run-time error dialog or is it reported directly 1by the operating system?
    15) Have you searched the web for related errors? For example, the following link describes a particular programming mistake that can lead to this error
    http://support.microsoft.com/support/kb/articles/Q125/7/49.asp
    By investigating answers to the above questions you may be able to narrow the cause of this error, which might allow you or others to help solve the problem.

  • After Installing after effects I get a Runtime Error Pure Virtual Function Call

    I installed After Effects, the trial, onto my pc which meets all the requirments, and I keep getting a runtime error.  I have reinstalled windows, i have used several registry programs and still nothign.  Please help!

    onto my pc which meets all the requirments
    Well, if you are so sure, then why don't you tell us in more detail what PC it actually is? If you have re-installed the operating system and all and AE still doesn't run, then most likely your PC does not meet the requirements or at least uses some strange hardware/ software combination that is not compatible with AE... What operating system? Processor? Graphics card? Other components?
    Mylenium

  • HT203175 I have no problem signing on to iTunes my issue is once on the site I can not use the "search". It says there is a runtime error R6025 pure virtual function call. Has anyone had this problem and how do I fix it. Thanks

    I do not have a problem getting in the iTunes stores. My issue is once on the site I can not use the "search". It says there is a pure virtual function call R6025. How can I solve this problem? Do I have to create a new account? Do I have to uninstall and re-install? Thanks

    Thanks so much for your feedback. I really appreciate any input here.
    If someone from Adobe could GUARANTEE that this problem would go away if I
    purchased CS4, I would pony up the cash and do it. However, I'm skeptical
    about that because I just saw someone else post a message on the forum today
    who is running CS4 and getting the exact same runtime error as me.
    I'll try un-installing and re-installing as Admin, and if that doesn't work,
    maybe I can find a used copy of CS3.
    In the meantime, I'm also wondering if a Photoshop file can carry any sort
    of corrupt metadata inside it once it has errored out? Reason I ask is, I
    had to port all of my old PSD files to the new computer, and I only seem to
    be getting this error when I attempt to work on one of the files that
    previously got the runtime error when they were sitting on my XP machine.
    When I create new files from scratch on this new computer, they seem to be
    working just fine (at least, for now).
    If so, I would probably be smart to never open those troublesome
    "errored-out" files again.

  • When i open my i3tunes on my computer i get an error message telling me that iTunes has stopped working..the message is as follows...Microsoft Visual C  runtime library Program C:\program files (86) iTunes\iTunes.exe  R6025 -Pure virtual function call..

    when i open my i3tunes on my computer i get an error message telling me that iTunes has stopped working..the message is as follows...Microsoft Visual C  runtime library Program C:\program files (86) iTunes\iTunes.exe  R6025 -Pure virtual function call.. How do i fix this

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • ITunes crashes when doing a power search. I get a Microsoft Visual C   Runtime Library Error message: Program C:\Program Files (x86)\iTunes\iTunes.exe R6025.  Pure virtual functional call.  If I select ok, Windows 7 pops up with iTunes has stopped working

    iTunes crashes when doing a power search. I get a Microsoft Visual C   Runtime Library Error message: Program C:\Program Files (x86)\iTunes\iTunes.exe R6025.  Pure virtual functional call.  If I select ok, Windows 7 pops up with iTunes has stopped working and then it shuts iTunes down.  Anyone else every have this issue.  Any ideas on a fix?
    Thanks,

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • "R6025 -pure virtual function call" Error While Use Adobe Media Encoder

    I'm trying to use Adobe Media Encoder (CS3) to output a project to H.264. I have about 3 minutes of footage on the Premier Pro CS3 Timeline, all of it in Cineform AVI intermediate format. When I export the movie through AME and select 2-pass VBR, it gets through the first pass, but crashes at 50% on the second pass with the error:
    "Microsoft Visual C++ Runtime Library
    Runtime Error!
    Program E:\Progra...
    R6025
    -pure virtual function call"
    Any ideas what may be causing this error?

    Point taken...
    I'm on a Dell XPS 720 Windows XP (32-bit) system, with all up-to-date service packs and patches. I have 4GB RAM installed, and Production Premium CS3, TMPGEncXPress and Cineform's Neo Scene. Neo Scene is a recent addition and the problem existed prior to its installation. I have two 7900GS graphics cards (each with 256MB video RAM), running in SLI mode.
    I dual boot Windows XP: One system is "Messy" with all kinds of stuff installed. The other is "Clean" and has virtually nothing installed, except for the three suites previously mentioned. No anti-virus or anti-spyware software is installed on the Clean system. I get the error on both systems.
    I saw the post from September 2007 reference vcredist_x86. I'll be trying that at my next opportunity, however, I'm not sure that will fix it, as I don't see why both systems would suffer from the same corruption. I'll also be swapping out RAM to see if that fixes the issue.

  • I can't search a song or an artist.  i get an error R6025/pure virtual function call. then itunes stops working.  PLEASE HELP

    I can't search a song or an artist without getting an error R6025 - pure virtual function call. Then itunes stops working. How do I fix it?  PLEASE HELP

    I have had numerous issues with Itunes 64 bit 11.1.38 (and other previous versions) locking up and crashing upon start with "Itunes has stopped working" or "R6027 pure virtual function call".  I have researched the answers around the forums as well as having tried some extensive and repetitious troubleshooting myself and thought I'd list them here... in order of troubleshooting...
    1. Install all Windows updates and reboot.  This seems to clear issues from time-to-time... I suspect Itunes expects the latest-and-greatest as far as Windows is concerned.. see if this clears your issue.
    2. Uninstall all Itunes and Apple products & reboot, remove their directories, remove lingering Itunes registry entries, reboot again, reinstall using "RUN AS ADMINISTRATOR" to install the Itunes executable. See if this allows Itunes to stabilize.  Pelase be sure to use the following guide from Apple as far as removing the apps and directories are concerned...
    http://support.apple.com/kb/ht1923
    3. Remove the contents of the "iphone photo cache"  (or other related product photo cache)  directory.
    4. Try editing the shortcut properties and configure the shortcut (for all users) to run as Administrator.
    5. Try editing the shortcut and configure it to run in Compatibility Mode for Windows 7 (for all users).
    6. a.Try using MSCONFIG to locate a potential conflicting application or service using the following...
    http://support.apple.com/kb/ht2292
    or
    6. b. Remove the last recent software application(s) you may have installed... in my case removing GREENSHOT http://getgreenshot.org/  stopped my Itunes from crashing on startup and it stabilized after
    driving my nuts for weeks.
    Message was edited by: DaCheeze

  • URGENT: Bug in Adobe Acrobat X /// Acrobat.exe Runtime Error! R6025 - pure virtual function call

    Hello
    I work usually with large PDF documents, and I was trying to convert a PDF document of 1000 pages ONE THOUSAND PAGES, to little PDF documents of 10 MB each one.
    When I tried to convert the PDF file into little ones, craaashhhhhhhhhhhhhhhhhh
    I got this message:
    Acrobat.exe Runtime Error! R6025 - pure virtual function call - Microsoft Visual C++ Runtime Library
    This seems to be a BUG AS BIG A GRAND PIANO... so I would like someone from Adobe tell me how may I solve this problem or if they will release an update soon?
    Thank you

    This is a user to user forum and we don't post information here (or anywhere else public) about what may or may not be in future patch releases.
    If you have a bug with an Adobe product you must report it using the correct form.

  • Runtime error R6025 - pure virtual function call

    I'm running the latest version 10.6.3.25 of iTunes on Windows Vista. When I tried to search in app store using the search pane on the righthand top, it crushes and a box appears saying "Runtime error! R6025 - pure virtual function call".
    I cannot search in the app store at all.
    Any help?

    This bug still exists in Firefox.  I tested version 28 and version 32.0.1, which is the latest mainstream release at the time of writing.
    Steps to reproduce:
    1.  It's much easier to reproduce this bug if you are using a computer that has 2 monitors.
    2.  Load up any Youtube video.
    3.  Skip advert if required.
    4.  Click "Full Screen" button in lower right hand corner.  The video fills up the whole of the 1st monitor.
    5.  Click on the desktop on the 2nd monitor - this reveals the taskbar and start menu overlayed above the video.
    6.  Close Firefox;  For example, by right-clicking the "Firefox" taskbar button on the taskbar, and choosing "Close" from the context menu.
    7.  Firefox closes, but adobe flash player does not close gracefully, and instead throws up "R6025 - pure virtual function call" error message.

  • Runtime error R6025 Pure virtual function call....the program shuts down as soon as its opened

    iTunes shuts down as soon as it is opened.  Message says Runtime error R6025.  pure virtual function call.  What is this and can it be fixed???

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you've already tried a complete uninstall and reinstall try opening iTunes in safe mode (hold down CTRL+SHIFT) as you start iTunes, then going to Edit > Preferences > Store and turing off Show iTunes in the Cloud purchases. You may find iTunes will now start normally.
    tt2

  • Captivate 8 - Runtime Error R6025 - Pure Virtual Function Call

    My teammates and I have Captivate 8 installed recently and while working on a big project for a client, some of our files got corrupted. We couldn't open them and we'd get a Runtime Error R6025 - Pure Virtual Function Call. Some members of the team could still open those CP8 files but eventually, everyone got the error and we couldn't open the files anymore, even if they were backed up several times.
    Anyone have the same problem? We are suddenly having regrets purchasing all those Captivate 8 licenses. Captivate 6 never gave us this problem and it really had to happen with a big project for a client.

    Just responded to this in another thread (note we used Captivate 7 so it might be a different error).
    We found that when we created files with embedded swf files that existed ABOVE widgets in the timeline, when someone else tried to open our file it broke/we got the runtime error. The original person could still open it for a time, but eventually the cache would clear and they couldn't.
    However, if we ensured swf files are BELOW widgets in the source files, it didn't break. In fact, if we found one that was breaking and got the author to move the swf file on the timeline, it would start working for others.
    STRANGE! Let me know if this works for you to!

  • Adobe illustrator runtime error R6025 pure virtual function call

    Buenas tardes amigos,
    Estoy trabajando sobre una versión Oficial de adobe Illustrator CS 6 con licencia, he realizado una extensión en Acción Script, luego de haber tenido numerosos problemas con la manipulación de imágenes de manera vectoriales en Illustrator con la tarjeta gráfica nvidia GeForce GT 625, decidí cambiar la tarjeta haber si se mejoraba los fallos obtenidos, y si que se nota diferencia ya se cae menos el programa, mostrando el error de runtime error R6025 pure virtual function call, y la tarjeta que estoy usando ahora es una AMD SAPPHIRE R7 250 1GB GDDR5, según he consultado en algunas páginas la tarjeta Gráfica cumple una función muy importante en esta aplicación, por lo que pido ayuda a quien sepa del tema, que solución podría tener en caso de tener que cambiar la tarjeta gráfica por favor decirme por cual, ya que quiero solucionar este problema lo más pronto,

    Esta actualizada la versión de Illustrator CS6?
    Mac/PC? Sistema operativo?
    Qué dice el resto del informe de error al fallar?
    Cúal es el nombre del módulo que falla?
    Si desinstalas esa extensión, aparece el fallo?
    Es decir está asociado el problema a la instalación de esa extensión?

  • Runtime Error! R6025-pure virtual function call when using Project Manager

    Hi
    I am trying to consolidate a project.  I have plenty of destination HD space, 16gb RAM and am wearing the correct color socks today.
    However, when I go to run media manager, I get a run time error R6025 - pure virtual function call.
    I've tried the same project on two different machines and get the same result.
    Has anyone come across this, and is there a fix?
    Many Thanks
    ADAM READ
    Intermedia

    Thanks for the reply John, but it's a codey, windows error thing.  It's happening on 2 different machines, each with the same install of Premiere Pro, so I'm liable to think it's a PP issue.  The MS website info on the error is very vague and certainly out of my skill set.
    Perhaps I'll try the famous import into another project option.
    Any other advice appreciated.
    ADAM

  • Runtime Error. R6025 - pure virtual function call. What is that?!

    Hi, would like to know what is wrong with my ipod. Since abt 3 wks ago, my ipod is functioning very slow upon connection to the computer for charging. The iTune is always lagging with it was charging too. But last week, it got worse. My computer does not recognise the hard disk nor the generic volume at all, but was still chargeable. Bu today, when i on my iTunes i was being "chase out" with the Runtime Error: R6025 - pure virtual function call. May i know what is it and how i can solve the problem??? Would really appreciate all the help i can get! Thanks!

    I'm getting this same problem.

Maybe you are looking for

  • Aspect Ratio settings -4:3 video doesn't look right on a 16:9 set

    Hello- I'm importing old vhs tape via a Canopus 300 into Final Cut Studio then exporting through Quick Time Movie and burning a DVD in iDVD. The problem ocours when I view the DVD on my 16:9 set- video looks to be the wrong size....for example graphi

  • Maverick finder not responding com.apple.iconServicesAgent consuming most of the resources

    I have had an interesting week.  Beginning on Tuesday, my computer began acting unstable. Tried to reinstall the operating system - caused me to replace the current disk with my weekly backup disk.  Yet, when I operate the current system, I find that

  • RTP Audio Transmitter/Receiver

    Hi, I am trying to realize a simple audio transmitter and receiver via RTP. At the receiver side I get following error message: RTP Handler internal error: javax.media.ControllerErrorEvent[source=com.sun.media.content.unknown.Handler@14384c2,message=

  • Illustrator CS4 doesnt detect Intel proc

    Hello, I have a new imac 2.8GHz C2D machine.. I installed the CS4 design premium upgrade.. While i didnt have the previous product installed, i did enter my CS1 serial and that enabled me to continue the install. What i was noticing was that the illu

  • Error 1602 when updating to 1.1.3 - please help!

    Hey all, i would really appreciate your help. I am wanting to download the january update. So far i installed itunes 7.6 and downloaded the 1.1.3 update without any problems. I seem to be having difficulty installing the 1.1.3 update onto my ipod as