在C字符串运行时错误中找到索引

问题描述

这段代码运行良好,但是我收到一个运行时错误,最后,它说A周围的内存已损坏....有人可以告诉我发生了什么吗?以及如何纠正?

  rootRef = FirebaseDatabase.getInstance().getReference();
 DatabaseReference chat = rootRef.child("chat").child(myUID);
 DatabaseReference chat_info = rootRef.chipd("chat_info");
 chat.addValueEventListener(new ChildEventListener(){
 @Override
 private void onChildAdded(DataSnapshot snapshot,String s){
 chatliveData.setValue(snapshot.getKey());
 }
});

//Here I retrieve Chat_Info one by one
chat_infoliveData = Transformations.switchMap(chatliveData,room_id->{
  ChatInfo.getInstance().getChatInfo(room_id);
  });

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)