out of memory exception in XP but not 7

I am writing some code to retrieve data from SQL Server, including an image field.
I load the retrieved image data into a byte array and then convert the array into an image.
Finally, I want to show a thumbnail of the image in a picturebox control on my app's form.
All this works perfectly on my dev machine running windows 7, but the following code:
Dim myblankCallback As Image.GetThumbnailImageAbort = New Image.GetThumbnailImageAbort(AddressOf blankCallback)
PictureBox1.Image = newImage.GetThumbnailImage(180, 180, myblankCallback, New System.IntPtr())

produces an out of memory exception on Windows XP machines if the size of image is > 4 kb

Any help to rectify the situation will bw highly appreciated.

Smilar Topics

  • Memory exception following return from multithread

    I have encountered quite a strange problem (for me at least) when trying to code a multithread app.Years ago I created my own collection class using typedef ... CTypedPtrArray <CPtrArray, CColType*> TCollection;This has worked very well and allows me to create collections very easily.In my cur ...

  • Memory exception

    //----------------------------------Code--------------------------------------------------//#include<iostream>using namespace std;#define Q_SUCCESS 0#define Q_FAIL NULL#define Q_FULL -1#define Q_EMPTY -2#define NITEMS 5class Queue{int nItems;int nMax;int nSize;char *beg;char *ep;char *dp;char ...

  • jQuery Getting out of memory exception on using tablesorterFilter

    there   I'm getting out of memory exception on using tablesorterFilter. The plugin works fine when I've to filter out a row or two. But starts throwing exception if result dataset is larger.   Please help!!   ...

  • db2batch throwing a window memory exception

    this is weird, I am using UDB/DB2 v7.2 on a Win2000 prof with 1gig of memory and whenever I am using db2batch with the -cli option I am getting after every sql file is done a window memory exception.Has anybody seen this before and any means to fix this.txmarcos oliva ...

  • memory exception

    I have made a application and its crashing and suror points to this functionvoid __declspec(noreturn) AFXAPI AfxThrowMemoryException(){THROW(&_simpleMemoryException);}I understand its memory exception, but can anybody help me in unde3rstanding it better ...

  • Release Mode -- Its giving memory Exception

    When I am Working Debug mode my application working fine, if i changed it Release mode its giving "Memory Exception" please suggest me What is the problem???I am Using VC++ 6.0 version ...

  • Memory exception

    -----------------------------------Test.cpp---------------------------------------main(){char *p = "Hello";char *s;while((*s++ = *p++) != '');cout << s;}------------------------------------------------------------------------------------------------Why this progam is giving memory ex ...

  • How to enable SWAP memory in Fedora 7

    Can anybody please help me out with enabling SWAP memory in FEDORA 7. The SWAP partition is of size 960 MB, but it uses only 28KB all the time. Is there any way I can increase it? Please refer the Screenshot in attachment.Please help me out with this one. ...

  • Out of Memory Exception

    I am a new Programmer in VB.I made an OCX containing 5 UserControls.I hav to use it in a seperate project.When opening that Project itself Out of Memory Exception is coming.I have put MsgBoxes in userControl_Initialize in my control.As Err.Description i am getting as Out of Memory.What may b the rea ...

  • Problem with Java agent : Out of memory exception.

    I have a java agent which automatically running on server.After a while, there is Out of memory exception. 04/02/2008 01:34:32 AM AMgr: Agent ('RSSReader' in 'whitesoft\ipo\rss.nsf') error message: JVMST109: Insufficient space in Javaheap to satisfy allocation request 04/02/2008 01:34:32 AM AMgr: Ag ...

  • .NET Out of memory exception!

    I am using the community edition of MySQL v 5.0.45 as the backend DB server and VB.NET as my frontend. As my database grows bigger and connections are becoming more frequent. I got an Out of memory exception. The exception goes like these: ------------------------------ Error 1 The build was aborted ...

  • VB.NET Out of Memory Exception

    Hi! I'm writing an application in VB.NET for drawing. The problem is, that when I try to draw in freehand, it allows me to draw one thing, then when I lift my mouse and go to draw another thing, i get an Out of Memory Exception. Any help would really be appreciated. ...

  • Get rid of out of memory exception

    I am having a problem in creating an image by using createImage() method when trying to load large files.FileConnection fc = (FileConnection) Connector.open("file:///" + path + "/",Connector.READ);InputStream fis = (InputStream) fc.openInputStream();image = Image.createImage(fis) ...

  • memory exception....code is given...

    i have created a treectrl in on the dialogbar...when i write the code there in mainframe OnCreate..it works well for inserting items into the tree...but i want the view class to insert items into the tree....for this i tried to call a public function in the mainframe from the view class....then i ge ...

  • memory exception...when calling a function from view class

    i tried to call a function which inserts items into a treectrl in the mainframe from the view class...but i am always getting a memory exception error....pls hlp ...

  • Encrypting a video file using this code gives out of memory exception

    public void EncryptFile(string input, string output,RijndaelManaged alg1){FileStream inputStream = new FileStream(input, FileMode.Open, FileAccess.Read);FileStream outputStream = new FileStream(output, FileMode.OpenOrCreate, FileAccess.Write);SymmetricAlgorithm alg = new RijndaelManaged();alg.Key = ...

  • How to generate an 'Out of Memory' exception

    How do I generate an 'Out of Memory' exception for testing purposes in c++?I tried real big arrays but the compiler came up with this:"total size of array must not exceed 0x7fffffff bytes"So i tried the maximum limit allowed by the compiler and still no exception generated... ...

  • Heap memory exception

    // find new sizenNewArraySize = StrNewSizeForCharReplace(pszString, pszFindString, pszReplaceString);// nNewArry size is 1063// alllocate memorypszTemp= (unsigned char*)malloc(nNewArraySize + 1);// add 1063 character in to pszTEmp// 1063nLength = strlen(pszTEmp) // length is 1063free(pszTemp);// Hea ...

  • HELP PLZ! Format new external 2TB HDD - use with ps3, ubuntu desktop and windows xp/7

    Hi, I just bought a Seagate Expansion 2TB HDD which i hooked up to my ps3 and was not recognised. I googled the problem and found out i need to format the HDD to fat32. How do format the HDD in Linux Ubuntu?I also want to use the HDD on windows XP/7 and Ubuntu. What format does the HDD need to be to ...

  • Out of memory Exception

    I have a question regarding Memory Leak. The below mentioned JSP code can generate any Out of memory exceptionString str = tempStrView.getSTR();String newStr = str+"'";String rpcStr = "&nbsp;";String convStr = newStr.replaceAll("'",rpcStr); ...

  • Accessing windows xp/7 from ubuntu 10.04+

    I am using ubuntu 10.04 and I want to access remote machine having windows xp/7 installed on it. I don't want GUI of it but I want it's command prompt to be opened in my machine so that I can execute various commands on remote machine. Is there any application available for it? I tried using "r ...

  • Accessing windows xp/7 from ubuntu 10.04+

    I am using ubuntu 10.04 and I want to access remote machine having windows xp/7 installed on it. I don't want GUI of it but I want it's command prompt to be opened in my machine so that I can execute various commands on remote machine. Is there any application available for it? I tried using "r ...

  • CRecordset::Requery() throw 'no enough memory' exception

    Requery() throw 'no enough memory' exceptionAfter a failed call to Update().AddNew();...TRY {Update();}CATCH (CDBException, pEx) {pEx->ReportError();Move(AFX_MOVE_REFRESH); // see MSDN for what to do// after a fail call to Update()}m_strFilter = ... // new filter stringRequery(); When running, if ...

  • memory exception error while calling a function from one dll to another

    I am using the explicit linking and I am not able to make a function call , i get memory exception error. The code is smth like thisa.h file (a.dll) contains the function prototypeextern "C"{void test_register(void);}a.cpp file (a.dll) contains the function defnitionvoidtest_register(void) ...

  • Out of memory Exception

    We have .net application installed on production server. It is using .net FrameWork 3.0 on windows server 2003 with RAM 4 GB.But there is a problem in application while running sometimes it throws system out of memory exception. I am very frustrating with this. Also I am unable to simulate the issue ...

  • Oracle Out-of-Memory exception while using NIO.filechannel

    Currently I implement an own index using the Extensible Indexing API of Oracle9i Data Cartridge and Oracle JAVA. The interface is working well in general. I store some index data in an external binary file by using NIO.filechannel. Binary file size is going up to 800 MByte.By creating the index I ha ...

  • Memory Exception

    Please have a look at the code below. Its compiled with UNICODE macro.short CUtils::ParseContactFile(t_string& FileData, StrVec& CEmailVec){TCHAR* szFileData = new TCHAR[_tcslen(FileData.c_str()) + 1];TCHAR* pChr = NULL;t_string CEmail;memset(szFileData, 0, sizeof(TCHAR) * (_tcslen(FileData. ...

  • Ubuntu Triple boot - windows xp, 7 and 10.04 lucid lynx

    This is to share my experience with this triple boot setup in a hasee laptop.1 install windows xp2 boot with lucid live usb/cd and create a ntfs partition with gparted for windows 7 (i used 90 gb for win xp and 30 for win 7)3 install windows 7 in the new partition using the custom option of the inst ...

  • Out of memory exception in UI

    I m getting Out of memory exception in my UI control.I m using images in my UI control.and I am using Image.Fromfile(filename) frequently in my code. ...