[p4] p4api crash problem
Robert Cowham
robert at vaccaperna.co.uk
Wed May 24 10:27:43 PDT 2006
>From support:
<<<<<<<<<<<
The difference is that the APIs in the dynamic, 'dyn', directory are
compiled
using the 'Multi-threaded DLL (/MD)'. The other one is compiled using
standard
'/MT'.
The reason for this is that if our p4api is not built with the appropriate
flags
and linked against the appropriate DLLs, the resultant application will fail
to
build.
This is all due to Windows GUI developers using our p4api do two things that
our
standard p4api does not support. Firstly, they build multi-threaded
applications and secondly, they build in Debug mode until they go
production.
>>>>>>>>>>>>
> On 5/23/06, Shawn Hladky <p4shawn at gmail.com> wrote:
>
> I use VS for quite a few tools that use the
> API, and haven't seen this. Although, I'm not sure anything
> I do would re-create this situation. You can take a look at
> a project I have in the public depot, and see if it helps.
> It did take a while to get all the compiler switches just right.
> //guest/shawn_hladky/P4.Net/src/p4dn.sln
>
> Also, I always use the "dyn" version of the API
> (ftp://ftp.perforce.com/perforce/r05.2/bin.ntx86/dyn/p4api.zip
> ) and the /MD switch. That's different than the P4API docs
> say to use, but I think I got that from a thread on this
> list. I have been meaning to draft a message to Perforce
> support to verify exactly what the dyn version is intended for.
More information about the perforce-user
mailing list