microsoft / microsoft/vscode-cpptools
a confusing behaviour in c++ extension
@WardenGnaw is already working on this.
Since Mar 25, 2019.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Issue Type: Bug
I worte a program which applies for memory twice.when I debug it in vscode,it reported an exeption at the seccond application for memory.But when I run this compiled executive file in the work directory,it behaved right.Here is the function I used twice to applying for memory:
void init_list(struct arraylist * list){
list->list = (int *) malloc(5 * (sizeof 1));
if(list->list == NULL){
printf("内存分配错误\n");
}
list->length = 0;
list->list_size = 5 * (sizeof 1);
}
Extension version: 0.22.1
VS Code version: Code 1.32.3 (a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4, 2019-03-14T23:43:35.476Z)
OS version: Windows_NT x64 10.0.17763
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800) |
| GPU Status | 2d_canvas: enabled checker_imaging: disabled_off flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on native_gpu_memory_buffers: disabled_software rasterization: enabled surface_synchronization: enabled_on video_decode: enabled webgl: enabled webgl2: enabled |
| Memory (System) | 7.89GB (4.17GB free) |
| Process Argv | |
| Screen Reader | no |
| VM | 57% |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.