The call is ambiguous between the following methods or properties: 'QuickFix.Fields.Converters.DateTimeConverter.Nanosecond(System.DateTime)' - ambiguous

I try to run Quickfix\n project and I face the above error with 6846 warnings. Why does this happen ? I see that many resolve this error message by modifying the code (i mean general this error message & not especially for the project of quickfix\n) but I didn't write this code so that to be in somewhere mistake while I get the quickfix\n as project to run it

Related

iText7 null reference exception on PdfFontFactory.CreateFont(StandardFonts.TIMES_ROMAN) VS2019

Hi All: I have a VS2019 console app project that generates PDFs. Everything was working fine a month ago. When I re-opened the project and tried to run it, I am receiving a nullreferenceexception error when trying to create the first font in the PdfDocument.
PdfFont bfTimes = PdfFontFactory.CreateFont(StandardFonts.TIMES_ROMAN);
throws:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=itext.io
StackTrace:
at iText.IO.Font.FontCache..cctor()
I've confirmed the PdfDocument exists, and the font above returns "true" for "isRegistered".
Nothing changed in the project, but I did update VSCommunity to 16.11.2 at some point in the past couple of weeks. Is there any way to get a better error description for what's happening?
i searched for that specific exception error and found this other post from a few weeks ago:
https://csharpforums.net/threads/using-a-winform-to-create-a-pdf-using-itext7.6406/
The suggestion to turn on "just my code" in the debugging options made the error go away like magic :o

stm32f070rbt6 Stack pointer invalid address problem

I have currently changed to a new microcontroller, STM32F070RBT6, I have used the STM32CubeMx to set up the microcontroller, i currently have no code just HAL initialisation code, when i debug it comes up with error message saying " The stack pointer for stack 'CSTACK' (currently 0x20000E38) is outside the stack range (0x20000110 to 0x20000510)"
I have tried all today to find the error, thats why i created a new stm32cube project with only initialisation code to see if it was an error on my part or HALs, does anyone have any idea what is causing this error? I havn't provided code as the project only contains the startup file etc, I am also using IAR as the IDE

"help to fix ' error: unable to read property list from file: info.plist

I added Admob Google extension in to my Game Maker 2 project, when I try to test it on xcode for iOS, I am getting the error from xcode : unable to read property list from file: ...
Tried to fiddle around with the build settings in Xcode for plist to make it XML/Binary and same as input but nothing helped.
Made sure that the extensions in game maker have IOS enabled
Tried to clean build folder
Changed Locations: of Derived data to Relative
Looked for similar problems on google and stack overflow, but nothing exactly with the same issue
Below is the code given by Gamemaker
if os_type == os_ios
{
ads_app_id = "ca-app-pub-4724502015965127~5126911475";
banner_id = "ca-app-pub-4337965814269841/5893054134";
interstitial_id = "ca-app-pub-4724502015965127/8852681295";
rewarded_id = "ca-app-pub-4724502015965127/3717109960";
}
else
{
ads_app_id = "ca-app-pub-4337965814269841~8766033395";
banner_id = "ca-app-pub-4337965814269841/5893055122";
interstitial_id = "ca-app-pub-4337965814269841/5893055258";
rewarded_id = "ca-app-pub-4337965814269841/5893055399";
}
GoogleMobileAds_Init(interstitial_id, ads_app_id);
GoogleMobileAds_LoadInterstitial();
interstitial_loaded = false;
error:
unable to read property list from file:
/Users/faisalnaamani/GameMakerStudio2/iOS/GMS2IOS/Pixel_Bricks_iOS/Pixel_Bricks_iOS/Pixel_Bricks_iOS/Supporting
Files/Pixel_Bricks_iOS-Info.plist: The operation couldn’t be
completed. (XCBUtil.PropertyListConversionError error 1.)
The error is happening at Build time
I opened the plist file with ATOM, the one generated by GameMaker Studio when I noticed xcode could not read it. I noticed a bit of code that was causing an error and when I deleted it xcode was able to build. The code is below:
<key>NSAppTransportSecurity</key>\n\r<dict>\n\r
<key>NSAllowsArbitraryLoads</key>\n\r <true/>\n\r
<key>NSAllowsArbitraryLoadsForMedia</key>\n\r <true/>\n\r
<key>NSAllowsArbitraryLoadsInWebContent</key>\n\r <true/>\n\r</dict>
But I am not sure how to fix it to make it look correct. I am afraid if I delete it somehow the code will not be correct. Does anyone have a solution? And how would I fix it from GameMaker.
As Faisal suggested, the file cannot be read if it's malformed.
Trying to open the file with Xcode helped me find the problem: a syntax error. Xcode was very explicit about where the error might be: at line 32.
After fixing the error in another IDE I was able to open the file with Xcode and build/run my app.

Use of unresolved identifier false warning Swift 3 xcode

So I edited my post to be more clear. I am new in xcode and Swift 3 and I am facing to a strange problem. My project contains several swift files. I put all my simple common methods to Utils.swift, for instance simple string functions, etc. For many days I had no problems but after a point xcode is all the time complaining with red exclamation marks in all the files where I use my method if I am calling my methods from Utils.swift file: "Use of unresolved identifier 'xxx'".
// debug is a bool variable declared before
Utils.swift:
func log(_ message: String) {
if debug {
print(message)
}
}
ViewController.swift:
log("Error happened")
This gives an error "Use of unresolved identifier 'Log' ". Obviously the function is there so I don't understand why I get this red warning with exclamation mark during coding however when I click on Build, it is successful, and it runs perfectly and the warning is gone. As soon as I start typing again in the code area, the red error comes back. If I build it once more it is successful again. It doesn't make any sense to me.
I thought it is maybe a cache problem, xcode live issues function doesn't recognise my Utils.swift or something like this... so I cleaned the build folder (cmd + shift + option + K), I cleaned the project (Product > Clean), restarted xcode, restarted Mac, removed Utils.swift, re-added Utils.swift to the project but can not get rid of these false warnings during coding but if build the project it is OK. I don't have this problem in my other projects. Any idea?
Okay I found the answer myself. Clicking on the swift file (now Utils.swift) I had to select "Location Relative to Group" in file inspector and set the appropriate target memberships as well.
It is weird that despite the previous 'wrong' settings the build completes with success however it gives an error in the code area.

Getting Fatal error when running ZF2 project on php 7.1.1 Zend\Stdlib\PriorityQueue contains 1 abstract method

I'm getting the following Fatal error when running a ZendFramework2 project on PHP 7.1.1.
The error is:
Fatal error: Class Zend\Stdlib\PriorityQueue contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Serializable::unserialize) in F:\xampp\htdocs\MyZF2Site\vendor\zendframework\zendframework\library\Zend\Stdlib\PriorityQueue.php on line 28
What could be the sulution?
I had the same problem. Already I solved it.
PHP 7.1.9
Fatal error: Class Zend\Stdlib\PriorityQueue contains 5 abstract methods...
Change PHP 7.0.23. To change is very easy for me because I use wampserver.
It's work 0k ¡
Againg to change to PHP 7.1.9.
It worked 0k forever. Why?¡¡ I don't know. I think it is issue cache.
slds
Almost always there are some backwards incompatible changes, in this case you can check out those changes here http://php.net/manual/en/migration71.incompatible.php.
Here http://php.net/manual/en/appendices.php you can see changes in previous versions.
You did not say which exactly version of ZF2 you use.

Resources