Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6127799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:33:12+00:00 2026-05-23T16:33:12+00:00

Little bit of background, I’m more experienced with Java, and have some C/C++ experience.

  • 0

Little bit of background, I’m more experienced with Java, and have some C/C++ experience.
I’m using Visual Studios 2010.

I created two classes inside a header file and gave them fields.
It compiles ok, and for the longest time it was running just fine.
I copied the entire project directory to a new folder (all files inside) and simply recompiled and ran it. Now whenever I run it I get “Unhandled exception at 0x637779ab in RegistrationExpLib2.exe: 0xC0000005: Access violation writing location 0x00000000.” At this line

FourierTrans[i] = fftwf_plan_dft_2d(imgRows, imgCols, in[i], out[i], FFTW_FORWARD, FFTW_MEASURE);

I checked the debugger, and all of the class fields return could not evaluate expression.
I’ve already checked and the image is being read in correctly. And as far as I can tell All of the memory has been allocated correctly. fftw3 is a C dll I’m linking against.
So I’m really puzzled and was hoping someone could point out a possible issue. I’m thinking its either, I’m doing something wrong with the set up when I copied the Visual Studios Project(Even though I didn’t change anything since it was working), or I’ve incorrectly allocated memory in the header. Another issue I thought of is each image is about 20MB, so I may be messing with the heap.
I really appreciate any help.

The Images being read in are frequently 10-20MB apiece. The code is compiled as a 32 bit binary.

This is the relevent simplified portion of the code that produces the crash.

#define TESTNUM 80

//A simple test main.
int main() {
   ComplexImageFFTW a;
   ComplexImageFFTW b[TESTNUM];
   ComplexImageFFTW* ptrB;
   ptrB = b;

   printf("start\n");
   a.readImage("imagefile1", true);
   printf("Mission\n");
   for(int i = 0; i < TESTNUM; i++) {

          b[i].readImage("imagefile2", true);
   } 
   //Crash occurs here.
   FourierTrans[i] = fftwf_plan_dft_2d(imgRows, imgCols, in[i], out[i], FFTW_FORWARD, FFTW_MEASURE);
         ...
} //End main
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:33:13+00:00Added an answer on May 23, 2026 at 4:33 pm

    Access violation writing location 0x00000000 means that you’re trying to write to memory location 0x00000000, i.e., you’re writing to a null pointer. I think the pointer p probably has the value 0.

    Possibly you’re forgetting to call your Registration::setUpRegistration method?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'll start here with a little bit of background. We have an ASP.Net MVC
I've been using PostgreSQL a little bit lately, and one of the things that
I have a friend that has a little bit of a holiday coming up
I'll give you a little bit of background first as to why I'm asking
I need to outline a little bit of background info for context. Please bear
Since coming from a pure C# background I am having a little bit of
When I load the dialog the background gets a little bit grey. I would
I have started a website with a redbackground and i want a little bit
I have a large image I would like as my background, but for some
I'm doing a little bit of work on a horrid piece of software built

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.