Home > Software engineering >  0 xc0000005: while reading position 0 XFFFFFFFFFFFFFFFF access conflict.
0 xc0000005: while reading position 0 XFFFFFFFFFFFFFFFF access conflict.

Time:11-26

Will read in using UG function, a PRT file and view the error message of a program, debugging when trying to import a PRT file, the results appear in the red line error: (0 xc0000005: access conflict, while reading position 0 XFFFFFFFFFFFFFFFF), as a result of program run directly imported PRT file card directly from the program, please, help to see what the causes of the new to c + + and MFC small white, and made a lot of days didn't understand what is the problem, the specific procedures are as follows:

If (bCADFileRight)
{
UF_CALL (UF_PART_open (strCADModelFile. GetBuffer (strCADModelFile. GetLength ()), & amp; M_tagCADPart, & amp; Error_status));
StrCADModelFile. ReleaseBuffer ();
UF_PART_free_load_status (& amp; Error_status);

If (error_status. Failed)
{
AfxMessageBox (" The part of The file it 's wrong!" );
return FALSE;
}
}

CodePudding user response:

UF_PART_open you this call failed, please check the following your parameters

CodePudding user response:

reference 1/f, 7-eleven's response:
UF_PART_open you this call failed, please check the following your parameter

Is strCADModelFile GetBuffer (strCADModelFile GetLength ()), this part has a problem??

CodePudding user response:

StrCADModelFile. GetBufferSetLength (MAX_PATH)

CodePudding user response:

The
reference 3 floor 7-eleven's response:
strCADModelFile. GetBufferSetLength (MAX_PATH)
0
(debugging failed, the following problems)
1> -- -- -- -- -- - has started to generate: project: TBGeoInspect, configuration: Debug x64 -- -- -- -- -- --
1> TBGeoInspectDoc. CPP
1> TBGeoInspectDoc. CPP (123) : warning C4002: "UF_CALL" macro arguments too much
1> TBGeoInspectDoc. CPP (123) : error C2660: "UF_PART_open:" function does not accept a parameter
1> TBGeoInspectDoc. CPP (123) : error C2059: grammar errors: ") "
==========: zero success, failure, latest 0, 0 skip==========

CodePudding user response:

You first solve the problem of compilation ~
The definition of UF_PART_open function is? Several parameters?
UF_CALL macro is how to define, there are several variables?

CodePudding user response:

refer to fifth floor 7-eleven's response:
you first solve the problem of compilation ~
The definition of UF_PART_open function is? Several parameters?
UF_CALL macro is how to define, there are several variables?

Where can see? I can't find in the UG10.0 help document,,,,

CodePudding user response:

The mouse selected as UF_CALL, right-click Goto define



  • Related