[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-developers] linphone Logging throws Access violation
From: |
kmtegtmeier |
Subject: |
[Linphone-developers] linphone Logging throws Access violation |
Date: |
Sat, 5 Jan 2019 13:08:23 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
Hi, everyone!
Just tried to enable linphone logging, but it throws an Access violation
at runtime.
FILE * logfile;
[......]
int main(int argc, char *argv[]){
LinphoneProxyConfig* proxy_cfg;
LinphoneCoreCbs* cbs;
LinphoneAddress *from;
LinphoneAuthInfo *info;
LinphoneFactory *fac;
logfile = fopen("C:\\Daten\\linphone.log", "w");
if (!logfile) {
printf("Cannot open logfile for writing logs because [%s]",
strerror(errno));
}
const char* server_addr;
signal(SIGINT, stop);
running = true;
printf("Setting up linphone core.\n");
if (running) {
fac = linphone_factory_get();
cbs = linphone_factory_create_core_cbs(fac);
linphone_core_set_log_file(logfile);
linphone_core_set_log_level(OrtpLogLevel::ORTP_DEBUG);
linphone_core_cbs_set_registration_state_changed(cbs,
regstate_changed);
linphone_core_cbs_set_call_state_changed(cbs, callstate_changed);
lc = linphone_factory_create_core(fac, cbs,NULL,NULL);
linphone_core_cbs_unref(cbs);
linphone_factory_create_core(fac,cbs,NULL,NULL) fails with Access
violation at 0x00000014 (ntdll.dll)
Platform is Windows 10 x64, Visual Studio 2017, libs are from
JUL-21-2017. If I set FILE to NULL (i.E. stdout),
everything works fine.
Has anyone experienced similar problems?
Regards
Kai Markus Tegtmeier
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Linphone-developers] linphone Logging throws Access violation,
kmtegtmeier <=