nagyistoce / platinum-image

Automatically exported from code.google.com/p/platinum-image
0 stars 0 forks source link

Crash in second call to new image_binary in Release-version (not in Debug) #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

void crash_test (int userIO_ID,int par_num)
    {
    if (par_num == USERIO_CB_OK)
        {
        image_integer<unsigned char, 3> * test_image = 
dynamic_cast<image_integer<unsigned char, 3> *>(datamanagement.get_image
(userIOmanagement.get_parameter<imageIDtype>(userIO_ID,0)));
        if(test_image==NULL)
            {
            image_integer<short, 3> * temp_image = 
dynamic_cast<image_integer<short, 3> *>(datamanagement.get_image
(userIOmanagement.get_parameter<imageIDtype>(userIO_ID,0)));
            if(temp_image!=NULL)
                {
                temp_image->scale(0,255);
                test_image = 
scalar_copycast<image_integer, unsigned char, 3>(temp_image);
                }
            }
        cout <<"Initial test"<<endl;
        image_binary<3>* binary_test = new image_binary<3>
(test_image, false);
        cout <<"Passed Initial test"<<endl;
        cout <<"Second test"<<endl;
        image_binary<3>* binary_test2 = new image_binary<3>
(test_image, false);//Crashes here in Release version!!!
        cout <<"Passed Second test"<<endl;
        }
    }

Original issue reported on code.google.com by petter.r...@gmail.com on 27 Jun 2007 at 7:21

GoogleCodeExporter commented 9 years ago
Error message:
The instruction an "0x00425e01" referenced memory at "0x0000000".
The memory could not be "written".

Original comment by petter.r...@gmail.com on 27 Jun 2007 at 8:03

GoogleCodeExporter commented 9 years ago
Have not been able to reproduce the error after restart of the computer.

Original comment by petter.r...@gmail.com on 3 Jul 2007 at 6:27

GoogleCodeExporter commented 9 years ago

Original comment by arvi...@gmail.com on 3 Aug 2007 at 5:30